Releases: amplitude/Amplitude-JavaScript
Releases · amplitude/Amplitude-JavaScript
v2.12.1
v2.12.0
Please remember to update the script embed snippet on your site to use these new features!
- Add support for setting groups for users and events. See the Readme for more information.
- Add
logRevenueV2
and newRevenue
class to support logging revenue events with properties, and revenue type. See Readme for more info. - Add helper method to regenerate a new random deviceId. This can be used to anonymize a user after they log out. Note this is not recommended unless you know what are you doing. See Readme for more information.
v2.11.0
- Add tracking of each user's initial_utm parameters (which is captured as a set once operation). Utm parameters are now sent only once per user session.
- Add documentation for SDK functions. You can take a look here. A link has also been added to the Readme.
- Fix cookie test bug. In rare cases, the cookie test failed to delete the key used in testing. Reloading the page generated new keys, filling up the cookie over time. Fixed test to re-use the same key.
v2.10.0
- Identify function now accepts a callback function as an argument. The callback will be run after the identify event is sent.
- Add support for
prepend
user property operation. This allows you to insert value(s) at the front of a list. See Readme for more details. Please update your script embed snippet to useprepend
. - Keep sessions and event metadata in-sync across multiple windows/tabs.
v2.9.1
- Fix bug where saveReferrer throws exception if sessionStorage is disabled.
- Log messages with a try/catch to support IE 8.
- Validate event properties during logEvent and initialization before sending request.
- Add instructions for proper integration with RequireJS.
v2.7.1
v2.9.0
v2.8.0
Adding new User Property Operation append
, please update your script embed code to use it.
- Add
getSessionId
helper method to fetch the current sessionId. - Add support for
append
user property operation. - Add tracking of each user's initial_referrer property (which is captured as a set once operation). Referrer property captured once per user session.