Skip to content

Instantly share code, notes, and snippets.

@rmpel
Last active December 17, 2015 14:52
Show Gist options
  • Save rmpel/ff00be616387288048e3 to your computer and use it in GitHub Desktop.
Save rmpel/ff00be616387288048e3 to your computer and use it in GitHub Desktop.
This snippet will anonymize IP addresses for Google Analytics (Universal, analytics.js) unless a cookie eucookieconsent is set with value 1.You wil need to put this in the top of the head of your website, or at leaset BEFORE analytics is loaded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment