As an SEO professional, PPC expert, or owner, you could comprehend the significance of accurate data when it comes to making informed decisions about a business’s online presence. However, it can be frustrating when your internal traffic is skewing your analytics data. It can be difficult to get a clear picture of your productive website traffic when the administrative or marketing team’s traffic is included in your traffic report. This can lead to inaccurate analysis results of inflated conversion rates, page views, and engagement rates. Thankfully, in Google Analytics 4, there is a solution to exclude internal traffic.
Traffic analysis needs to be examined more precisely to evaluate event-based data usage instead of session-based, including privacy control such as
- behavioral modeling,
- conversion modeling, and
- cookie less measurement.
In this blog, we will explore how to exclude internal traffic in Google Analytics 4 to get accurate data to make better decisions for your website.
What is Google Analytics 4? An Overview
Google Analytics 4 is the newest version of this console legacy. The new generation of web analytics allows customers to adequately analyze not just traffic but also important customer usage metrics. Simply put, this analytic service enables you to measure engagement and traffic across your apps and websites. This documentation offers reference materials and implementation instructions intended for a developer audience.
GA4 tracks the complete customer cross path amidst multiple leverages and platforms, machine and AI learning to offer more precise insights on the user’s interaction with your app and website. It also focuses on customers’ privacy with AI-driven predictive analytics, cross-channel data measurement, and privacy-first tracking.
The next generation of analytics, GA4, collects event-based data from both websites and apps and is designed for the future of measurement.
What is Internal Traffic? How does it affect your website’s performance?
The visits that come from the network or website are referred to as Internal traffic.
It has many negative impacts, such as:
- Internal traffic has the potential to skew your website usage metrics if not filtered out from your website analytics data.
- It can lead to inaccurate metrics such as session duration, bounce rates, and conversion rates.
- This makes it difficult for website owners and managers to accurately measure the success of the marketing campaigns and make an informed decision about their website’s performance.
- if there are large numbers of people accessing your website at the same time, it can slow down your website’s performance.
- it can affect the overall user experience with longer load times. Which encourages the visitor to abandon the website and look for alternatives.
- It can impact your search engine rankings. Search engines may view your website as less engaging if a significant portion of the website traffic is internal, and they may lower your rankings accordingly.
Hence, a website owner needs to take steps to filter out the analytic data and optimize the website for an optimal user experience.
Filtering Internal Traffic :
By completing these steps, you can identify internal traffic.
- To begin with, make sure you are in the correct property and account.
- In Google Analytics, click Admin.
- In the Property column, click Data Streams.
- Enter a name for the data stream for which you want to exclude internal traffic.
- Click on Web Data Stream > Configure tag settings > Show All >Define internal traffic > Create.
- Enter a value for the traffic_type parameter.
- Select an operator in IP address > Match type
- In IP address > Value, enter an address or a range of addresses to identify traffic.
- Set multiple conditions by clicking Add Condition. Ip address matching any of the conditions will be marked as Internal traffic.
- Click Create.
How Internal Traffic Works?
When you define internal traffic ( in the Data Stream tag settings) for every incoming event, Google Analytics 4 (activated on your site ) starts adding a traffic_type (tt=internal ) parameter.
The default Internet filter is preconfigured to eliminate all hits containing the traffic-type=internal parameter. Once you set the filter to Active, it will do that.
What are Data Filters in GA4? How to Create a Data Filter?
Data Filters help to include or exclude incoming event data from being processed by Google Analytics. Using this, you can isolate data from specific sources, exclude data from certain locations and IP addresses, segment traffic based on user behavior, and more. Besides, it does not affect your historical data.
The effect on the data is permanent when you apply filter data. For instance, whenever you apply an exclude data filter, it will never be processed in Analytics. For certain reports, if you want to hide data without permanently filtering it out, use report filters instead.
Types of Data Filters:
- Developer traffic: it is the traffic generated by the developers while debugging the analytic implementation.
- Internal Traffic: is the traffic generated by you, your employees, and suppliers.
Creating a Data Filter:
You can create a data filter by completing the following steps:
1. In Google Analytics, click Admin.
2. In the property column, click Data Settings > Data Filters > Create Filter.
3. Choose Internal Traffic.
4. Enter a name for the data filter:
- The name must be unique amidst data filters in the same property.
- It should begin with a Unicode letter.
- It needs to contain only unicode numbers, letters, spaces, and underscores.
- Contains up to 40 letters.
5. Where the value of the traffic_type parameter matches parameters, choose Exclude to filter out events.
6. Choose from the following filter states:
- Testing: this feature allows you to exclude specific data from your analytics reports. It is useful for testing and debugging your analytic implementations. With the Test data filter name dimension, analytics identifies matching data.
- Active: it allows you to filter your data in real-time, based on certain conditions. To make permanent changes, analytics applies the data filter to incoming data.
- Inactive: this means that the analytics is not evaluating the filter.
7. Click Create.
Excluding Internal Traffic in Google Analytics
METHOD-1: Excluding Internal Traffic by IP Address –
Beginning with the classic, if not many people are involved in running a business, then this might work, and by their IP addresses, you can exclude their hits.
Step -1: Define your Internal IP address
- In Google Analytics 4, go to Admin > Data Streams >
- Website stream > Configure Tag Settings > Show All > Define Internal Traffic.
- Here you can create new traffic rules.
Step – 2: Create a Developer Filter in GA4
- In GA4, go to Admin > Data Settings > Data Filters > Create Filter.
- Enter the settings accordingly.
- Enter any name in the “data filter name” field.
- Set this filter to Testing (for now).
- Save it.
Step – 3: To Override the Traffic_type Parameter, Create a Lookup Table in GTM
- First, create an Undefined Variable.
- In GTM, go to Variables > New > Undefined.
- Save the Variable.
- Now, let’s go to Variables > Configure (in the built-in variable section).
- Enable the Debug Mode.
- Finally, go to Variables > New > Lookup Table and enter the settings.
Step – 4: Test the Filters
- Now, you need to test, enable GTM mode, go to your website, and then to the DebugView of GA4.
- Firstly, you will see hits coming from your device. In the Event Stream, click on any event and check the parameter traffic type.
- At the same time, you should check the Debug Mode parameter too.
Step – 5: Activate both Filters.
- Lastly, you will need to activate both filters.
- Go to Admin (in GA) > Data Settings > Data Filters.
- Set both Internal and Developer Traffic to active.
- To do that, open each filter, change its Filter State, and save changes.
METHOD 2: Excluding Data Traffic With the Data Layer
Step – 1: Getting Internal Data Parameter into the Data Layer
- The parameter should be Internal if a visitor belongs to your company. If not, no data layer. push should happen.
- Then create a Data Layer Variable.
Step – 2: Create a developer Filter in GA4
- In GA4, go to Admin > Data Filters > Create Filter.
- Select Developer Traffic. Enter the required settings.
- Set this Filter for Testing (for now)
- Save it.
Step – 3: Create a Lookup Table in GTM to Override the traffic_type parameter
- Go to Variables > New > Lookup Table and enter the required steps.
- When using the Debug Mode variable as input, the variable will return true if the GTM preview mode is enabled. Hence the word ‘Developer’ will be returned by the lookup table variable.
- If GTM preview mode is disabled, the Debug Mode variable will return false. hence it will return the value you created in the first step.
- The value will be sent to GA if the data layer contains the traffic_type key. If not then it will be set to Undefined. (GA4 will not send the traffic_type key).
- Save the variable.
Step – 4: Test the Filters
Follow the same steps as mentioned in Method 2. ( Step – 4 )
Step – 5: Activate Both Filters
- Go to Admin (in GA4) > Data Settings > Data Filters.
- Set internal and developer to active.
- Open each filter, change its Filter State, and save changes.
METHOD 3: Excluding Internal Traffic Based on a Cookie
In GA4, another possible way to exclude internal traffic could be by using a cookie.
Step- 1: Set a Cookie for Internal Users
- The Intelligent Tracking Prevention will limit the lifetime of a cookie if most of your employees are using Safari (or browsing with IOS ). In such cases, your employees will have to revisit the unique link often.
Step – 2: Cookie Variables
- Go to GTM > Variables > 1st Party Cookies and enter the required settings.
- Save the Variables.
Step – 3: Create a Developer Filter in GA4
- Create a Developer FIlter in GA4, just like mentioned in Method 1 (Step 2).
Step – 4: Create a Lookup Table in GTM to Override the traffic_type parameter
- Follow the same process as mentioned in Method 2 (Step-4)
Step -5: Test the Filters
- Same as Method 1 ( Step – 4 )
Step – 6: Activate Both Filters
- Go to Admin > Data Settings > Data Filters.
- Set both internal and developer traffic to active.
Final Words
Excluding internal traffic in GA4 is a vital step to make sure that the data is being analyzed accurately, and represents the behavior of external users on your website and apps. By implementing these measures, businesses can make informed decisions.