Last active
October 19, 2017 07:01
-
-
Save humphreybc/9ab2fe961faa2c00efd338773bc6b3d3 to your computer and use it in GitHub Desktop.
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
var events = []; | |
window.track = events.push.bind(events); | |
document.addEventListener("DOMContentLoaded", function() { | |
window.track = function(name) { | |
mixpanel.track(name) | |
}; | |
events.forEach(mixpanel.track); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment