Post by NginUS » Fri Sep 11, 2015 6:48 pm

Hi,

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 -->
They exist for everything, like buttons, & I think form field submissions too.


If there's anyone familiar with MixPanel, would you kindly point me in the right direction?

Thanks in advance,
-N

Newbie

Posts

Joined
Fri Sep 11, 2015 9:49 am

Post by NginUS » Fri Sep 11, 2015 9:29 pm

I bought this module called 'custom js & css' thinking it would give me a field on every page, but its just a global field, & I'm not clear as to whether it inserts to every page like the Google Analytics field does. Does anyone know?

Link:
https://www.opencart.com/index.php?rout ... %20&%20css

Newbie

Posts

Joined
Fri Sep 11, 2015 9:49 am
Who is online

Users browsing this forum: No registered users and 4 guests