1. IP Filters are useless
Currently, we only have IP address filtering available in Google Analytics 4. This approach is quite outdated, especially in today’s world where a significant portion of employees, if not the entire workforce, work remotely. Additionally, freelancers and agencies often work from their own offices or homes. Moreover, many employees frequently travel or work from flexible locations, resulting in constantly changing IP addresses.
While “the way we work” has evolved, Google Analytics 4 has not adequately addressed this area. As mentioned, relying on IP address filtering is not a viable solution for modern work environments
2. “Hostname filter” is not available in GA4 to filter traffic from dev servers
If your company has a development or staging server, and you test your GA4 tracking implementation on these servers before going live, you likely use a separate GA4 account or manage it through Google Tag Manager.
However, without a “Hostname filter”, GA4 analysts must filter out traffic from these pages only after the data has been processed. This process is both unnecessary and frustrating.
How to filter out internal traffic
We propose a solution that involves passing a parameter in the URL. Instead of visiting yourdomain.com, your team should always use yourdomain.com/?traffic_type=internal.
You might be skeptical about the feasibility of this method given that the team may not always follow this practice, but stay with us as we discuss strategies to make it work. Let’s first discuss how this can help.
Why this method works?
In GA4, IP filtering works by adding a query parameter to all events generated from the specified IP. This parameter is “traffic_type,” and the value passed is “internal.”
By manually adding this parameter with the value “internal” to our URLs, we can control the processing of our events as internal traffic. However, this is only part of the solution. Note that this is still a URL parameter, not an event parameter. In the next steps, we’ll explain how to convert this URL parameter into an event parameter for effective tracking.
But before diving into the technical details, let’s address this substantial task.
Internal Culture
Effective data tracking relies on rules and conventions to ensure clean data from the outset. Clean data is crucial for accurate campaign analysis and prevents frustration later on. This is why we establish conventions around UTM parameters, Google Tag Manager (GTM) tags, variables, and trigger naming.
However, ensuring your team consistently adds this parameter every time they visit the website is easier said than done. It’s a lot to ask, and compliance may be inconsistent.
Bookmarks
Bookmarking offers a simple, one-time setup to address internal traffic concerns.
Here’s how you can implement it:
- Generate a link with the parameter, e.g., yourdomain.com/?traffic_type=internal.
- Email this link to your team and ask them to save it as a bookmark.
Next time they visit the website, their browser will automatically suggest the bookmarked URL. For even better results, ask them to add this link to their bookmark bar and always use it to visit the site.
Once this administrative step is complete, it’s now time to set up your GTM and GA4 account.
0 Comments