mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Feat/um 202 event data new (#1841)
* Add event_data base. * Add url_path. * Add eventData back. * Finish event_data relational. * resolve comments.
This commit is contained in:
parent
c2789d70bc
commit
9979672de5
27 changed files with 719 additions and 130 deletions
|
|
@ -73,7 +73,7 @@
|
|||
let cache;
|
||||
|
||||
if (currentRef.substring(0, 4) === 'http') {
|
||||
if ((currentRef = currentRef.split('/')[2].split(':')[0] === hostname)) {
|
||||
if (currentRef.split('/')[2].split(':')[0] === hostname) {
|
||||
currentRef = '/' + currentRef.split('/').splice(3).join('/');
|
||||
}
|
||||
}
|
||||
|
|
@ -118,6 +118,7 @@
|
|||
|
||||
const trackEvent = (
|
||||
eventName,
|
||||
eventData,
|
||||
url = currentUrl,
|
||||
websiteId = website,
|
||||
pageTitle = currentPageTitle,
|
||||
|
|
@ -128,7 +129,8 @@
|
|||
website: websiteId,
|
||||
url,
|
||||
pageTitle,
|
||||
eventName: eventName,
|
||||
eventName,
|
||||
eventData,
|
||||
}),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue