Fixed Google Analytics not tracking URLs with instant loading

This commit is contained in:
squidfunk
2020-07-24 10:54:48 +02:00
parent 6d6811451b
commit b0bb26ec99
6 changed files with 5 additions and 8 deletions

View File

@@ -48,7 +48,7 @@
/* Send page view on document switch (instant loading, custom event) */
document.addEventListener("DOMContentSwitch", function() {
ga("send", "pageview")
ga("send", "pageview", document.location.pathname)
})
</script>
<script async src="https://www.google-analytics.com/analytics.js"></script>