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?
For Google Analytics 4 properties, IP anonymization is enabled by default.
https://support.google.com/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.