I followed the steps in this webflow blog post to set up google tags and google analytics, however, the steps to filter out (exclude) staging site traffic don’t seem possible in GA4. The only filtering option I can find is by IP address to exclude internal user traffic. Is there a way to exclude traffic by URL to filter out the domain.webflow.io traffic? There IS a way to exclude referral sites by URL in GA4, but I’m guessing that does not apply to this situation.
I also tried just blocking my IP address (as GA4 documentation recommends), and even though it’s blocked, I can see that when I visit the website, it is still counting my visits and interactions…
Hi Michael, as a GA noob, do you mind sharing how exactly to do this? I’ve tried to for solve this over many years but Google Analytics is so confusing for me. Any advice or links to share are welcome!
I discovered the absence of a direct mechanism to filter out traffic from the staging site based on the source URL – a feature seemingly taken for granted in the classic Universal Analytics era. The conventional approach of excluding by IP address falls short in this context. Eager to find a creative solution, I’ve dabbled in nuances and delved into the depths of Google Tag Manager.
“Exclude staging website traffic in GA4 by implementing a view filter with the condition ‘Hostname does not contain’ and specifying the staging domain. Additionally, use IP address exclusion to further ensure accurate analytics by filtering out internal traffic during development and testing.”
Petr here again First thank you very much for the video guide you put together.
It helped me a lot to setup the filter. But after testing via Tag Manager Assistance tool I found out the filter doesn’t work as expected - it still fires and sends events into GA.