Replies: 1 comment
-
if you see the gtag.js file request properly, may be there is something limited by gtag.js itself, it works only support http/https website. as for me, Measurement Protocol is acceptable, just fine |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I followed the documentation at https://wxt.dev/guide/essentials/remote-code.html#google-analytics to configure gtag.js, but nothing happened, and there were no error logs.
In the Network tab, I can find a request to http://localhost:3000/@id/__x00__url:https:/www.googletagmanager.com/gtag/js?id=G-xxxx, which look good.
However, I couldn't find the https://www.google-analytics.com/g/collect request in the Network tab. It seems like gtag.js was bundled but isn’t working properly? I couldn't figure out what went wrong, since Google's official documentation always trend to the Measurement Protocol, which doesn't provide Geographic information.
Here my files:
Beta Was this translation helpful? Give feedback.
All reactions