Skip to content

Releases: mixpanel/mixpanel-js

Remove obsolete autotrack event count metrics

06 Apr 23:42
Compare
Choose a tag to compare

Better error-handling and server-side support

21 Mar 23:34
Compare
Choose a tag to compare
  • Exceptions when decoding JSON now throw a real SyntaxError rather than a Plain Old JavaScript Object.
  • Loading the SDK and running basic operations (init, identify, track) no longer causes exceptions in non-browser environments (although it doesn't actually send tracking calls over the network). This is useful for allowing mixpanel-js code to run unmodified in contexts like server-side rendering and non-browser tests.

Prevent Autotrack collecting attrs from input, textarea, select, contenteditable elements

28 Feb 19:25
Compare
Choose a tag to compare

Bug fix for Autotrack inadvertently removing form.inputs in certain cases

02 Feb 16:49
Compare
Choose a tag to compare

v2.16.0 made it possible for replace to be called on an input element if it has id="name" or name="id". This revision guards against this by ensuring type is string before calling any replace.

Prevent Autotrack collecting attrs from password or hidden fields

01 Feb 17:05
Compare
Choose a tag to compare

Always track via HTTPS.

18 Jan 01:12
Compare
Choose a tag to compare

Previously, track calls to api.mixpanel.com would be made using whatever protocol the page was loaded with. Now they will always use HTTPS.

people.unset() and miscellaneous fixes

11 Nov 00:05
Compare
Choose a tag to compare

The library now supports people.unset(); see https://mixpanel.com/help/reference/javascript-full-api-reference#mixpanel.people.unset for documentation.

NB: If using the embed code "snippet" for your mixpanel installation, please upgrade to the latest snippet to use people.unset() safely.

Other fixes:

  • Identify Chrome OS correctly (for $os property)
  • Bugfix: register_once() no longer overwrites previously-registered but falsey values
  • Stub parts of DOM API when loading in non-browser environments (thanks @gfx)
  • Log full "Implementation error" exceptions when DEBUG mode is on

v2.10.0

19 Jan 17:14
Compare
Choose a tag to compare

Adds "UC Browser" detection

Notifications URL-encoding fix

09 Dec 01:52
Compare
Choose a tag to compare

Notifications data now fetches from v2 API, which pre-sanitizes and encodes URL fields. Fixes encoding of URL fields with special chars such as https://www.mydomain.com/?param1='$value'&param2=Hello World.

v2.9.16

14 Oct 03:09
Compare
Choose a tag to compare

Autotrack: don't assume all elements are native