Join the Webstudio community

Updated 6 months ago

the mysterious case of the failing ga4 test

At a glance

The community member is having trouble with Google Analytics 4 (GA4) implementation, where the data collection is active but the test function is still failing. The comments suggest using the Google Tag Assistant tool to test the GA4 implementation, which showed that the events were firing as expected, but the test function was still reporting that the gtag was not found. Other community members speculate that there may be something blocking the test crawl from running, such as requests from the frontend being denied and needing to come from the backend. One community member had the same issue but couldn't recall how they resolved it.

I haven't tested another webstudio site with it, but have used the tool plenty of times on webflow & wordpress. Just logged in to GA4, even stranger it now says data collection active but the test still fails
J
P
c
6 comments
Is there a debug feature you can open and navigate your site and it'll tell you the events its collecting?
Great question. Apparently you can use tagassistant.google.com to test GA4, which I just did, all events were firing as expected yet the test function is still saying gtag not found. Very interesting
My guess, there is something blocking their test crawl from running. I don't exactly recall what the engineers setup, but it's something like requests from the frontend are denied and must come from backend. I could totally be wrong about that, but I've seen a lot of tools 403 when I enter the URL
I had the same problem and forgot how I got it fixed but I'll check again and let you know @PT
Definitely beyond my scope of knowledge/understanding, I fumble my way through this stuff on the fly. Never did web dev and learned C++ 15 years ago lol
Add a reply
Sign up and join the conversation on Discord