From aeada610a16990d88c1b42ae73beb6415bcfd092 Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Tue, 20 Jun 2023 07:13:26 +0000
Subject: [PATCH] fix: statistics matomo

---
 src/utils/matomoTracker.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils/matomoTracker.ts b/src/utils/matomoTracker.ts
index 58c5964b3..b78e264a6 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)])
-- 
GitLab