Domains added to your Cookiebot CMP account are scanned monthly. These scans can appear as anomalous traffic in your Google Analytics reporting.
This usually presents itself as significant spikes on a specific day every month.
Defining the scanner as internal traffic
To fix this problem you first need to identify the traffic coming from the Cookiebot scanner and add a traffic_type parameter.
- Click the gear icon in the bottom left of the screen to get to the Google Analytics Admin and find Data Streams under Property Settings → Data collection and modification.
- Click a web data stream.
- In the web stream details, click Configure tag settings.
- Expand the Settings list by clicking on Show more.
- Click Define internal traffic.
- Click Create.
- Enter a name for the rule under Rule name.
- Enter a value for the traffic_type parameter under traffic_type value.
Note: traffic_type is the only event parameter for which you can define a value. internal is the default value, but you can enter a new value (e.g., Cookiebot_scanner) to represent a location from which the traffic originates. - Under IP addresses → Match type, select IP address matches regular expression.
- Under IP addresses → Value, enter the following value:
^(20\.223\.9\.138|34\.(107\.102\.47|141\.10\.24|159\.(86\.126|168\.195|247\.222))|35\.(198\.(78\.207|137\.6|160\.49)|246\.(143\.2|191\.14)))$
- Click Create.
Alternatively, you can manually add the IP address used by our scanner:
- 20.223.9.138
- 34.107.102.47
- 34.141.10.24
- 34.159.86.126
- 34.159.168.195
- 34.159.247.222
- 35.198.78.207
- 35.198.137.6
- 35.198.160.49
- 35.246.143.2
- 35.246.191.14
Filtering out internal traffic
Now that you've identified traffic from the Cookiebot scanner and assigned it a traffic_type parameter, you can create a filter to remove this traffic from your future reporting.
- In the Google Analytics Admin, under Data collection and modification, click Data filters.
- Click Create Filter.
- Choose Internal Traffic.
- Enter a name for the data filter. The name must:
- be unique among data filters in the same property
- begin with a unicode letter
- contain only unicode letters and numbers, underscores, and spaces
- contain up to 40 characters
- Choose Exclude to filter out events where the value of the traffic_type parameter matches the name you entered in step 7 above.
- Select the Active filter state.
- Click Create.
Note that data filters will only filter out future traffic and will have no effect on any traffic data from before applying the filter.
You can find Google's own documentation on filtering traffic here: https://support.google.com/analytics/answer/10104470?hl=en
You can also read more about how to whitelist the Cookiebot scanner here.
Comments
0 comments
Please sign in to leave a comment.