Skip to content

Instantly share code, notes, and snippets.

@mikeverbeck
Last active August 29, 2015 14:16
Show Gist options
  • Save mikeverbeck/6f80a881895ee391e893 to your computer and use it in GitHub Desktop.
Save mikeverbeck/6f80a881895ee391e893 to your computer and use it in GitHub Desktop.
GTM event name work around
//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