Exclude internal traffic

Hello all,

We struggle to filter internal traffic in Google SST and cannot find a proper solution to collect the data in GA4 correctly. Our goal is to flag internal traffic with the traffic_type parameter to build segments in GA4 and split data into internal and external.

We are wondering if there is an easy to use feature in stape to do that or if this is something we can simply achieve with Google Cloud Run.

Best regards,
Manuel

Would this help maybe? You can filter internal traffic on GA4 side, w/o doing anything in GTM.

Hello Dan,

Thank you for the response. 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. So for us there needs to be a function on the tracking server to identify the user and set a parameter value in the tools we need it.

Best regards,
Manuel

you can simply achieve this on your tagging level, compare ip_override (event data) parameter vs. whatever list of IPs you have and add a custom dimension (traffic_type you mentioned) based on that.

As far as I’m aware there’s no ‘boxed’ solutions for this but it’s very easy to do as described above.