Thursday, 22 August 2013

Mixpanel tracking on a button isn't working

Mixpanel tracking on a button isn't working

The homepage load event works fine, and i copied the code from another
site of mine where the code has been working fine. It's a simple html page
so i don't know why it won't track. Here's the problematic code:
<script>
{
mixpanel.track('Mobile Landing Page Loaded',
{'page type': 'LandingPage'}
)
};
$('#iTunesDownloadBtn').bind('click', function() {
mixpanel.track('iTunes Download');
});
</script>

No comments:

Post a Comment