Skip to content

Instantly share code, notes, and snippets.

@auniverseaway
Created August 28, 2015 23:35
Show Gist options
  • Save auniverseaway/f40a5cfa3fe2ca598445 to your computer and use it in GitHub Desktop.
Save auniverseaway/f40a5cfa3fe2ca598445 to your computer and use it in GitHub Desktop.
// Current Generic GA Event Implementation
if (window.ga && dataLayer){
dataLayer.push({
'event': event,
'eventCategory':eventCategory,
'eventAction': eventAction,
'eventLabel':eventLabel
});
}
// GA Video Event Implementation
if (window.ga && dataLayer){
dataLayer.push({
'event': 'eventTracker',
'eventCategory': 'Videos',
'eventAction': playerState,
'eventLabel': currentTitle,
'eventVal': currentPercent
});
}
// GA Video Event Supplied by E-Nor via PowerPoint
dataLayer.push({
'event': 'eventTracker',
'eventCat': 'Videos',
'eventAct': 'Play',
'eventLbl': 'Extreme PRO USB 3.0 USB',
'eventVal': 0
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment