Complianz Privacy Suite

Are your IP addresses anonymized?

Aert Hulsebos

Aert Hulsebos


Popular articles

Creating the Legal Hub

Have you seen our new Legal Hub? If not, have a look before reading this instruction article. We created the legal hub to centralize our

Read More

Placeholders for iFrames

From 4.6.11 onwards, you can also use consent shortcode wrappers. An instruction can be found here. You’re able to block iFrames with Complianz with the

Read More
Share on facebook
Share on twitter
Share on linkedin

For some privacy laws, anonymized statistics, and a specific configuration of your analytics provider, e.g., Google Analytics, allow setting statistics cookies before consent. 

How to configure your Google Analytics account for GDPR and other privacy laws can be found here. Anonymizing your IP addresses for Analytics with Tag Manager is easy. Even easier, is letting Complianz anonymize IP addresses, but how do you know they are anonymized?

How anonymizing IP addresses works

A user visits a website with an IP address, which might look like:

  • or if IPV6 is allowed:
  • 2001:0620:0000:0000:0211:24FF:FE80:C12C

Before Google Analytics collects the IP addresses and writes to your Google Dashboard it will go through a script which can look like the below snippets, an based on your implementation.

  1.  gtag(‘config’, ‘GA_TRACKING_ID’, { ‘anonymize_ip’: true });
  2. ga(‘set’, ‘anonymizeIp’, true);

This function will strip a significant part of your IP address so, in the eye of privacy laws, changes from personal data, to non-identifiable data.

It does so by changing (example)

  • or if IPV6 is allowed:
  • 2001:0620:0000:0000:0211:24FF:FE80:C12C


  • or if IPV6 is allowed:
  • 2001:0620::::::FE80

But you can’t check if these IP addresses are anonymized correctly in real-time. That’s why Google added a parameter in the URL they use to collect information and write to your Google Analytics dashboard, which you identified with a UA-Code.

Confirm your anonymizing IP Addresses

We will use so you can check and compare if needed.

You will need to open your browser console, for Chome, this is a right-mouse click -> inspect or CMD/CTRL+Shift+I

You will need to find aip=1 as a query string parameter, to do this:

  1. Open the tab Network
  2. Open the tab Headers
  3. Scroll down to Query Strings Parameters
  4. Find the parameter AIP=
  5. If it has a one 1, your IP is anonymized!



If your API = 0, please have a look at the above snippets and compare them with the page source of your website. Open the page source with right-mouse click -> Page source or CMD/CTRL + U.

If you still need help, please contact support

Recent articles