Apparently MixPanel doesn't provide an official extension, so I'm on my own on implementing their events on each & every page. Does someone know of a way to have javascript added to every page from a centrally administered location in the admin interface?
I have the 'custom javascript' extension installed, with the 'event handler enabler' pasted into it, & I believe it's a sitewide effect, so that I only have to add the 'event notifier' scripts to each page.
The 'event notifier's are little bits of javascript which interact with the 'event handler enabler' script to send events to my dashboard. A 'page loaded' one looks like this:
Code: Select all
<!-- start Mixpanel -->
<script type="text/javascript">
.
.
.
mixpanel.init('YOUR TOKEN', {'loaded':function() {
mixpanel.track('Page View')}
});
</script>
<!-- end Mixpanel -->
If there's anyone familiar with MixPanel, would you kindly point me in the right direction?
Thanks in advance,
-N