- Live URL: https://analytics.kickback.events
Because some browsers and ad-blockers prevent the Mixpanel client JS libary from working, we use this server to proxy requests from our app to Mixpanel.
First, deploy this server at a URL, e.g. mydomain.com
.
Follow the standard Mixpanel instructions to include Mixpanel into your HTML file.
Then, put the following code before the Mixpanel code you just embedded:
<script type="text/javascript">
window.MIXPANEL_CUSTOM_LIB_URL = "https://mydomain.com/client.js";
</script>
That's it! Now you can use all the normal Mixpanel APIs in your page and everything will get sent to Mixpanel despite ad blockers.
The master
branch is auto-deployed by Travis to the live URL.
AGPL v3