mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
edit tracker script to work under SSR sites
This commit is contained in:
parent
3c906d066b
commit
bf4de2fbf5
2 changed files with 42 additions and 31 deletions
|
|
@ -58,7 +58,11 @@ document.head.appendChild(script);
|
|||
// };
|
||||
|
||||
// analytics.subscribe('page_viewed', async event => {
|
||||
// lemonsquare.trackView(event.url, event.referrer);
|
||||
// lemonsquare.trackView(
|
||||
// event.context.location.pathname,
|
||||
// event.context.document.referrer,
|
||||
// WEBSITE_ID,
|
||||
// );
|
||||
// });
|
||||
|
||||
// // product_viewed Event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue