I have the same-origin config with Stape but it seems no correct geolocation data in GA4. In GA4 much of the traffic and purchases is show to be from Germany …but all my clients are from Hungary.
I also have Cloudflare site-proxy .
I ve found at Exclude internal traffic - #3 by adessoOM that
“We are aware of the basic functionality, but due to an increased level of privacy we do not send client IP addresses to GA4 and need to do the filtering / flagging on the server where the client-side request is collected.”
In the logs of Stape server I can see client data ( bcs GEO Headers
powerup ) but clientIp is a Cloudflare IP ( “172.68.224.220” )
"request_X-Gclb-Country": "HU",
"request_X-Gclb-Region": "BU",
"request_X-Geo-City": "Budapest",
"request_X-Geo-Country": "HU",
"request_X-Geo-Ipaddress": "89.202.178.111",
"request_X-Geo-Postalcode": "1011",
"request_X-Geo-Region": "BU",
"ClientIP": "172.68.224.220"
}
I ve seen some people doing a GTM Transformation for an Augment Event transformation, that overrides the ip_override event data value with a generic country IP for the user IP . Do I really need to do this kind of things for correct geolocation data in GA4 when using same-origin Stape config?
Thanks,