Releases: mixpanel/mixpanel-js
Newer browser detection and better SDK-loading from relative URLs
Automatic browser and OS detection has been updated for:
- IE mobile
- MS Edge
- Windows Phone
- Opera 30+
Loading the library with the embed code (snippet) now works in all browsers via relative URL.
time_event and local snippet support
time_event
allows timing the duration until a certain event is tracked- loading the lib via the embed code (snippet) now works in HTML files loaded from the local filesystem
Track browser url automatically, expose info properties
Current url will be set automatically as string super property $current_url
. Super properties are now exposed through mixpanel._.info.properties
.
Track browser version automatically
Browser version will be set automatically as a numeric super-property $browser_version
, including major and minor version (e.g., 11.1).
localStorage support
Adds a new config option to use localStorage instead of cookies to persist user data in the browser:
mixpanel.init(TOKEN, {persistence: 'localStorage'});
If a cookie with the same name exists, it will be removed and its data transferred to the new localStorage entry.
The old config options cookie_name
and disable_cookie
are now aliased to persistence_name
and disable_persistence
.
Eliminate undocumented token override in track()
This behavior was undocumented, and also broken in the minified version for a long time. It is hereby eliminated.
To track to multiple Mixpanel projects on a single page, initialize separate lib instances with mixpanel.init(token, options, instance_name)
.
Bugfix for minification issue
A bug in 2.4.0 could cause minified versions of the library not to track if certain property names were set. This release fixes that issue.
Support for people.union()
v2.4.0 people.union support
Official Bower release
Now available via Bower registry
web notifications fixes
also includes ctrl-click fix for windows/linux