based-ghost / react-seo-friendly-spa-template

React PWA/SPA template initially scaffolded with CRA (Create React App) and configured for SEO. Makes use of prerendering and other techniques/packages in order to achieve a perfect "Lighthouse Score".
MIT License
52 stars 21 forks source link

Google Analitycs V4 #1

Closed nlbi21 closed 2 years ago

nlbi21 commented 3 years ago

Hey guys react-ga is not compatible with Google Analytics 4

https://github.com/react-ga/react-ga/issues/460

Is there any other solution or alternative while they support it?

thanks!

based-ghost commented 3 years ago

@nlbi21 - Hey, thanks for the heads-up - I wasn't aware of this issue. I'll have to take a look around to see if there is a package that offers an alternative, otherwise the fallback option would be to roll my own solution (simplified, less customizable).

based-ghost commented 2 years ago

This looks to be addressed in latest version of react-ga package.