Skip to content

Instantly share code, notes, and snippets.

@shabbirbhimani
Created May 16, 2018 05:08
Show Gist options
  • Save shabbirbhimani/47b18e94e3b0c2be0c9a56c82851bad9 to your computer and use it in GitHub Desktop.
Save shabbirbhimani/47b18e94e3b0c2be0c9a56c82851bad9 to your computer and use it in GitHub Desktop.
Google Analytics Code to add Anonymize IP
ga('create', 'UA-XXXXXXX-XX', 'auto');
ga('set', 'anonymizeIp', true); // Should be called before the ga('send', 'pageview');
ga('send', 'pageview');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment