How to Anonymize IP Addresses in Google Analytics
Do you want to anonymize IP addresses of your site visitors in Google Analytics? It’s easy with MonsterInsights.
In this guide, we’ll show you how to enable anonymize IP in Google Analytics with MonsterInsights so that you can comply with applicable privacy laws. (Please see an important legal disclaimer at the bottom of this guide.)
Please navigate to Insights » Settings » Tracking » Demographics and select the Anonymize IP Addresses check box.
It’s the second checkbox:
Enabling this setting will add the following code to your tracking:
__gaTracker(‘set’, ‘anonymizeIp’, true);
This code will anonymize the last octet of the IP address of your site visitors before storage.
If you’re going to view the source code of your site to confirm this is working, be sure to clear any site cache (if applicable) and your browser cache, and view in an incognito window before confirming.
That’s it! Now you know how to Anonymize IP Addresses in Google Analytics.
Do you need to go further?
If the EU GDPR applies to your business, please see our guide: Getting Started with the EU Compliance Addon.
As a website operator, it is solely your responsibility to ensure that you are in compliance with all applicable laws and regulations governing your use of our plugin.
MonsterInsights, its employees/contractors, and other affiliated parties are not lawyers. Any advice given in our support, documentation, website, other mediums or through our services/products should not be considered legal advice and is for informational and/or educational purposes only and are not guaranteed to be correct, complete or up-to-date, and do not constitute creating/entering an Attorney-Client relationship.