admin管理员组

文章数量:1296917

In Google Analytics v3 it was possible to anonymize the user's IP address using

{ anonymize_ip: true }

On the official GA4 page I can't find any information about it and some turorials suggest to still use it like this with Google Analytics 4:

gtag('config', 'G-1234568790', { anonymize_ip: true });

While it's possible to add this parameter here, I don't know whether it actaully does what I think it should. Because the paremter now shows up in the tracking of every event:

Does it still anonymize the IP? If not: What is the correct way to anonymize the user's IP in GA4?

In Google Analytics v3 it was possible to anonymize the user's IP address using

{ anonymize_ip: true }

On the official GA4 page I can't find any information about it and some turorials suggest to still use it like this with Google Analytics 4:

gtag('config', 'G-1234568790', { anonymize_ip: true });

While it's possible to add this parameter here, I don't know whether it actaully does what I think it should. Because the paremter now shows up in the tracking of every event:

Does it still anonymize the IP? If not: What is the correct way to anonymize the user's IP in GA4?

Share Improve this question asked Dec 3, 2021 at 12:39 lampshadelampshade 2,8167 gold badges45 silver badges89 bronze badges 1
  • I wouldn't worry too much about it. Lots of folks are using VPNs these days. Some browsers like Brave, Mozilla, and Opera even have VPN support built in. IP addresses will probably end up being redundant in the world of analytics by the end of the decade. – TheAddonDepot Commented Dec 3, 2021 at 13:48
Add a ment  | 

1 Answer 1

Reset to default 9 +50

For Google Analytics 4 properties, IP anonymization is enabled by default.

https://support.google./analytics/answer/2763052?hl=en

Google Analytics 4 (collect data from your apps and/or your website): IP-address anonymization is always enabled. With this option, you collect data from your apps using the Firebase SDKs, and collect data from your website using a global site tag that includes a Measurement ID for your web data stream.

Other link: https://support.google./analytics/answer/9019185#IP&zippy=%2Cin-this-article

本文标签: javascriptIs it still possible to anonymize the user39s IP in Google Analytics 4 (GA4)Stack Overflow