You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`mixpanel-js` is also available via front-end package manager [Bower](http://bower.io/). After installing Bower, fetch into your project's `bower_components` dir with:
40
-
```sh
41
-
bower install mixpanel
42
-
```
43
-
44
-
### Using Bower to load the snippet
45
-
You can then load the lib via the embed code (snippet) with a script reference:
which loads the _latest_ library version from the Mixpanel CDN ([http://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js](http://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js)).
50
-
51
-
### Using Bower to load the entire library
52
-
If you wish to load the specific version downloaded in your Bower package, there are two options.
53
-
54
-
1) Override the CDN library location with the global `MIXPANEL_CUSTOM_LIB_URL` var:
### Upgrading from mixpanel-bower v2.2.0 or v2.0.0
69
-
If you originally installed Mixpanel via Bower at its previous home ([https://github.com/drubin/mixpanel-bower](https://github.com/drubin/mixpanel-bower)), the two old versions have remained functionally unchanged. To upgrade to v2.3.6 or later (the first Bower version in the official repo) from a previous Bower install, note the changed filenames: previous references to `mixpanel.js` should become `mixpanel-jslib-snippet.min.js` (the minified embed code), and previous references to `mixpanel.dev.js` should become `mixpanel.js` (the library source) or `mixpanel.min.js` (the minified library for production use).
0 commit comments