Issues with Google Analytics v4
See original GitHub issueThe new version of Google Analytics (v4) seems to not be compatible with the @analytics/google-analytics
plugin. Is that something that y’all are aware of or am I just doing something wrong. I noticed that all the docs refer to Universal Analytics (the older version of GA) and seem to use GA-123456
format tracking Ids, where the newer versions are G-123456
format.
The odd thing is that I see the events firing and it pulling down the single pixel gif with a 200 response, however none of the events seem to be registering in my analytics account. No page views or events are working at all with this lib for me. However if I slap in the script in my HTML with the same tracking Id, it starts working at least for page views.
I have tried messing around with the cookie domain etc since I am testing on localhost. But again, the domain doesn’t seem to be an issue when I use the default GA script so I am not sure what the issue is. Would love some feedback or ideas if y’all have any.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:9 (2 by maintainers)
@DavidWells All new GA accounts are GA4 now and the addon is basically useless as it fails to track pages/events/users with “G-” tracking ids.
Just wanted to note that universal analytics is now scheduled for sunset on July 1 2023. I believe GA4 properties are completely separate from universal analytics properties and don’t share data/history, so folks likely won’t want to wait until the last minute to transition.