GA4 Measurement protocol IP override

Viewed 673

When sending events to GA4 is there a way to override user ip, if using universal analytics you could have passed a user_ip variable uip but for GA4 I dont see a param option to pass user ip. Any help would be appreciated

2 Answers

OK found a temporary solution here.

instead of &uip=x.x.x.x in the url, add &_uip=x.x.x.x.

Google tends to prefix alpha/beta URL parameters with underscore _

No parameter is necessary:

For Google Analytics 4 properties, IP anonymization is enabled by default. The content provided below describes the IP anonymization process for legacy Google Analytics tags.

Source

So this isn't even handled on the level of code (i.e. you couldn't enable it if you tried), it's built into the property.

Related