v2.1.0

umami-software/umamiv2.1.0Apr 22, 2023by mikecao

AI Summary

Refactors tracking method for consistency, adds page titles, and improves UI for script names.

Key Highlights

  • Simplified `umami.track` API (no need to wrap data in a data property)
  • Support for comma-separated `TRACKER_SCRIPT_NAME` entries
  • Country names now shown next to region names
  • Page titles added to every page

Breaking Changes

  • The `umami.track` method signature changed; event custom data no longer requires a data wrapper

New Features

  • Simplified event tracking
  • Alternate script name UI
  • Page titles
  • Country/Region display improvements

Full Release Notes

## Changes
- The `umami.track` method has changed to be more consistent and easier to use. See https://umami.is/docs/tracker-functions for more information. Notable changes are:

  - You no longer need to wrap your event custom data in a data property `{ data: { ... } }`.
  Just use `umami.track('my-event', { id: 123 })`.
  - You can send your own custom payload by passing an object, `umami.track({ ... })`.

- The Tracking Code form will now show the alternate script name if `TRACKER_SCRIPT_NAME` is set.
![image](https://user-images.githubusercontent.com/477975/233756982-acb47dfb-3488-4b83-b3e8-089eb1715041.png)

- You can now enter multiple entries in `TRACKER_SCRIPT_NAME` comma separated, for example `a.js, b.js, c.js`

- Country names are now shown next to region names: 
![image](https://user-images.githubusercontent.com/477975/233756916-9aed688f-e664-4991-bacf-e3b12e457a5d.png)

- Added page titles to every page

## Fixes
- Fixed tracker not working on anchor tags with deeply nested elements
- Fixed display of elements in RTL languages
- Fixed realtime count of visitors
- Fixed issue with changing passwords

## Updates
- Language translation updates

A huge thanks to all the contributors on this release! @kaisteinke @atmonshi @MBRjun @Maxime-J @ym-project @winterrific