mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 05:53:03 -04:00
Fixed Google Analytics not tracking URLs with instant loading
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user