Skip to content
Snippets Groups Projects
Commit aeada610 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

fix: statistics matomo

parent 40adb1ff
No related branches found
No related tags found
2 merge requests!9322.5,!919fix: statistics matomo
...@@ -68,7 +68,7 @@ export default class MatomoTracker { ...@@ -68,7 +68,7 @@ export default class MatomoTracker {
if (typeof window === 'undefined') { if (typeof window === 'undefined') {
return return
} }
const currentPath = loc.hash.substring(1) const currentPath = loc.pathname
MatomoTracker.push(['setCustomUrl', 'https://ecolyo.com' + currentPath]) MatomoTracker.push(['setCustomUrl', 'https://ecolyo.com' + currentPath])
MatomoTracker.push(['setDocumentTitle', currentPath.substring(1)]) MatomoTracker.push(['setDocumentTitle', currentPath.substring(1)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment