go-ga icon indicating copy to clipboard operation
go-ga copied to clipboard

Support GA4

Open mjpitz opened this issue 5 years ago • 3 comments

Analytics starting to force folks over to using gtag instead of analytics js. There are some slight differences in how these operate.

https://developers.google.com/analytics/devguides/collection/upgrade/analyticsjs

mjpitz avatar Nov 17 '20 22:11 mjpitz

This looks like a promising resource: https://developers.google.com/analytics/devguides/collection/gtagjs

mjpitz avatar Nov 19 '20 20:11 mjpitz

@mjpitz just looking around if there is library to do so.

Did you work on it since then? Otherwise I found GA4 compatible ones: https://github.com/ystyle/google-analytics https://github.com/silinternational/ga-event-tracker

(not that easy to found them, it seems no one has migrated from UA 😄 )

sneko avatar May 05 '22 15:05 sneko

@sneko yeah, I wasn't looking for a GA4 compatible one at the time... but I also remember seeing some note about Google deprecating the new one... which isn't surprising.

mjpitz avatar May 05 '22 16:05 mjpitz