Analytics server which enables us to work around in-browser analytics blockers
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.eslintrc
.gitignore
.travis.yml
LICENSE.md
README.md
index.js
now.json
package.json
yarn.lock

README.md

KickBack analytics server

Build Status

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.

Usage

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.

Deployment

The master branch is auto-deployed by Travis to the live URL.

License

AGPL v3