Created
February 26, 2025 11:14
-
-
Save ffkev/bc54c543dc35348ad81f26a48a6e9ace to your computer and use it in GitHub Desktop.
Disable automatic page_view tracking in GA4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag() { dataLayer.push(arguments); } | |
gtag('set', { 'send_page_view': false }); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment