Last active
August 29, 2015 14:16
-
-
Save mikeverbeck/6f80a881895ee391e893 to your computer and use it in GitHub Desktop.
GTM event name work around
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//copy and paste me into cjs | |
window.WWMobileNg.GoogleTagManager.createEventData = function (gtmTagName, event, wwEventAction, wwEventCategory, wwEventLabel) { | |
var event_data; | |
event_data = { | |
'GTM Tag Name': gtmTagName, | |
'wwEvent': event, | |
'wwEventAction': wwEventAction, | |
'wwEventCategory': wwEventCategory, | |
'wwEventLabel': wwEventLabel | |
}; | |
return event_data; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment