Why do we care? Google Analytics 4 (GA4) makes it very easy to exclude internal traffic (for those with static IP addresses). In my case, I have a dynamic IP address, so it’s more difficult to exclude my own traffic from GA4.
I find myself doing most development work, building, editing, or exploring client sites while I’m logged in. I don’t want my internal traffic mucking up GA4 insights. This is a really good workaround for folks with dynamic IP addresses to exclude their internal traffic from GA4, especially if they’re frequently logged into their WP admin.
So, if we can tell GA4 that we’re logged-in, we can exclude that traffic.
This is all done in Google Tag Manager. Why? Because it’s common practice to use GTM to drop in analytics and other tracking codes into websites.
- Google Analytics 4 (GA4) property
- Google Tag Manager
Both of these tools are regular tools in a web marketer’s toolbox, so I’m not going to explain how to set them up.