track 404 correctly in matomo

This commit is contained in:
Set Hallstrom 2019-12-05 22:32:51 +01:00
parent 5b3930aa09
commit d8c6b12707

View file

@ -59,6 +59,7 @@
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["disableCookies"]);
_paq.push(['setDocumentTitle', '404/URL = ' + encodeURIComponent(document.location.pathname+document.location.search) + '/From = ' + encodeURIComponent(document.referrer)]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {