mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 13:47:15 +01:00
Allow tracking to specify event types other than 'custom'
A very minimal change to this line
`window.umami = event_value => collect('event', { event_type:
'custom', event_value });`
to include a second value does not break current uses
This commit is contained in:
parent
1cfb9e18a1
commit
649117b1bf
1 changed files with 2 additions and 1 deletions
|
|
@ -104,6 +104,7 @@ import { removeTrailingSlash } from '../lib/url';
|
|||
pageView();
|
||||
|
||||
if (!window.umami) {
|
||||
window.umami = event_value => collect('event', { event_type: 'custom', event_value });
|
||||
window.umami = (event_value, event_type = 'custom') =>
|
||||
collect('event', { event_type, event_value });
|
||||
}
|
||||
})(window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue