Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues with Google Analytics v4

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

kpapadatoscommented, Nov 11, 2021

@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.

totalhackcommented, Mar 17, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GA4 Problems - 4 Challenges With Google Analytics 4
GA4 Problem #1 – “Missing” Metrics · More videos on YouTube · GA4 Problem #2 – “Missing” Standard Reports · GA4 Problem #3...
Read more >
Ask The Experts: What's Lacking in GA4? - (7 Issues)
There are some issues with GA4 and a few key things are lacking. You can no longer set up views and certain reports...
Read more >
Switching to Google Analytics 4: Common Concerns and How ...
Lack of Features and Decreased Functionality. Another big issue people who have switched to GA4 are citing is the lack of features in...
Read more >
Google Analytics 4 Backlash: GA4 "Sucks" and is "Horrible"
The negative feedback about Google Analytics 4 is that it's not ready and that it was rushed out in a state that still...
Read more >
GA4 isn't all it's cracked up to be. What would it look like to ...
Google claims the new platform is designed with privacy at its core, but the privacy concerns are far from over. A lack of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found