Created
June 9, 2015 21:29
-
-
Save daveknapik/b77a477b94d147c1b8dd to your computer and use it in GitHub Desktop.
mixpanel mock
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
<script type="text/javascript"> | |
function MixPanelMock() { | |
this.track = track; | |
this.alias = alias; | |
this.identify = identify; | |
this.people = new People(); | |
function track(eventString) { | |
console.log(eventString); | |
} | |
function alias(id) { | |
console.log(id); | |
} | |
function identify(id) { | |
console.log(id); | |
} | |
function People() { | |
this.set = set; | |
function set(attributes) { | |
console.log(attributes); | |
} | |
} | |
} | |
window.mixpanel = new MixPanelMock(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment