Exclude internal traffic in GA4 using a Cookie.
This Chrome extension helps website owners and marketers exclude internal traffic from Google Analytics 4 (GA4) reports by setting a custom cookie called traffic_type with the value internal. This cookie can then be used in GA4 to filter out internal traffic, ensuring more accurate data and insights for decision-making.
Why Install?
➤ Easily exclude internal traffic from GA4.
➤ Customize the hostname filter to apply the cookie only to specific domains.
➤ Avoid relying on IP address-based exclusions only, which can be inaccurate in dynamic or remote environments.
➤ Simplify your GA4 tracking setup without needing complex configurations.
➤ Improve the quality of your analytics data for better reporting and optimization.
Unlike traditional internal traffic exclusion methods that rely solely on IP addresses, this extension uses a cookie-based approach. This makes it more versatile and effective, especially for dynamic IP environments or when remote teams access the site.
Perfect for marketers, developers, and analytics professionals who want clean, actionable data in GA4.
----------
IMPORTANT:
To make this extension work, additional adjustments are required:
➡ In Google Tag Manager (GTM):
Update your GA4 tag to include a variable that reads the traffic_type cookie and applies it as a parameter or condition.
➡ If you use the Google Tag code directly on your website:
Add logic to include the traffic_type cookie value in your GA4 configuration.