Forked from brianaohern/om-Analytics-conversion.js
Last active
October 26, 2020 21:13
-
-
Save jtsternberg/8f476b36e8fe62fca3dda4902a2f9d5e to your computer and use it in GitHub Desktop.
Runs any time we are tracking an impression or conversion.
This file contains hidden or 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
document.addEventListener('om.Analytics.track', function(event) { | |
// This event is passed the Campaign object | |
console.log(event.detail.Campaign); | |
// This event is passed the Analytics object | |
console.log(event.detail.Analytics); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment