fix: set URL to be displayed in Matomo analytics panel to reflect the actual URLs
Some checks failed
Deploy Next.js application / deploy (push) Has been cancelled

This commit is contained in:
Dorian Niemiec 2024-09-08 18:13:38 +02:00
parent cd727b2a19
commit 4c70475718

View file

@ -22,6 +22,7 @@ function AnalyticsInternal(props: { pagesRouter?: boolean }) {
// Track page view
const _paq = ((window as any)._paq = (window as any)._paq || []);
_paq.push(["setDocumentTitle", document.title]);
_paq.push(["setCustomUrl", document.location]);
_paq.push(["trackPageView"]);
return;
}