Last active
May 29, 2018 08:50
-
-
Save ankedsgn/0b077175b723603fe31c5fbd4219ea1f to your computer and use it in GitHub Desktop.
Google Tag manager with anonimyzed IP
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
<!-- Global site tag (gtag.js) - Google Analytics --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=XX-XXXX-XX"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag('js', new Date()); | |
gtag('config', 'XX-XXXXXX-XX', { 'anonymize_ip': true }); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment