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.

- 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:

- 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