Merge pull request #3574 from betagouv/fix-3542-matomo-js
Fix Turbolinks page views are not tracked properly in matomo #3542
This commit is contained in:
commit
5605ceacc2
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
|||
addEventListener('turbolinks:load', function(event) {
|
||||
if (previousPageUrl) {
|
||||
_paq.push(['setReferrerUrl', previousPageUrl]);
|
||||
_paq.push(['setCustomUrl', '/' + window.location.href]);
|
||||
_paq.push(['setCustomUrl', window.location.href]);
|
||||
_paq.push(['setDocumentTitle', document.title]);
|
||||
if (event.data && event.data.timing) {
|
||||
_paq.push(['setGenerationTimeMs', event.data.timing.visitEnd - event.data.timing.visitStart]);
|
||||
|
|
Loading…
Reference in a new issue