Created
August 28, 2015 23:35
-
-
Save auniverseaway/f40a5cfa3fe2ca598445 to your computer and use it in GitHub Desktop.
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
// 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