diff --git a/src/utils/matomoTracker.ts b/src/utils/matomoTracker.ts
index 58c5964b341251e2bf39ebaccc0bfa840faa9b96..b78e264a69890b8a8814ff1a4eb8102d591bef4e 100644
--- a/src/utils/matomoTracker.ts
+++ b/src/utils/matomoTracker.ts
@@ -68,7 +68,7 @@ export default class MatomoTracker {
     if (typeof window === 'undefined') {
       return
     }
-    const currentPath = loc.hash.substring(1)
+    const currentPath = loc.pathname
 
     MatomoTracker.push(['setCustomUrl', 'https://ecolyo.com' + currentPath])
     MatomoTracker.push(['setDocumentTitle', currentPath.substring(1)])