0.0.3 • Published 4 years ago

browserslist-mixpanel v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Target browsers tailored to your audience. Integrate Mixpanel with Browserslist to keep your targeted browsers updated.

Inspired by browserslist-ga

Notes of caution

  • During development it has shown that many events did not include all the necessary properties. Often times either the browser, browser_version or both, were undefined. Depending on your data, your results could be incorrect because of this.

  • Due to limited test data, browsers such as YaBrowser or Cốc Cốc are not handled at all yet.

How to use

In the root directory of your project run:

npx browserslist-mixpanel --apiSecret=<mixpanel api secret> --event='["Page View"]' --days=90

Arguments:

ArgumentDescriptiondefaultrequired
apiSecretThe Mixpanel API Secret. Can be provided as Environment variable MIXPANEL_API_SECRETyes
daysThe amount of days to load events for30no
eventThe event or events that you wish to get data for, encoded as a JSON array. Example --event='["Page View", "Log In"]'allno

Afterwards, you can use your stats with Browserslist by adding the following to your Browserslist config:

> 0.5% in my stats

For more information about Browserslist and why it's useful, please take a look into the browserslist repository.