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

Support for the new Google Analytics 4 tag

Open datapolitical opened this issue 3 years ago • 6 comments

Or do I need to create an old school UA tag?

datapolitical avatar Dec 30 '20 03:12 datapolitical

ga-lite probably does not work with the v4, but it's not tested yet.

ga-lite uses the Measurement Protocol API, which seems to have a new version 4 in alpha at the moment.

Haven't checked yet if those are backwards compatible, but you're on the safe side to assume you'll need to use the old UA tag with ga-lite

jehna avatar Dec 30 '20 08:12 jehna

Considering this is for a fun project, that sounds like the perfect opportunity to test something that might very well be broken

datapolitical avatar Dec 30 '20 08:12 datapolitical

Ok, just checked the new API and it seems to be a lot different from the current one that ga-lite is using.

I'm tagging this as out of scope for myself now, but if anyone's interested in working on adding V4 support (probably based on the UA-/G- prefix) I promise to welcome the addition warmly.

jehna avatar Mar 15 '21 22:03 jehna

How about a new project: ga4-lite?

igorgatis avatar Sep 09 '21 18:09 igorgatis

ga4-lite sounds great! I'll definitely link to it from ga-lite if you'd create such a project

jehna avatar Sep 09 '21 21:09 jehna

Update: ga-lite compatible Google Analytics is now planned to be sunset.

https://blog.google/products/marketingplatform/analytics/prepare-for-future-with-google-analytics-4/

I would rather just drop Google than figure out how to change to their new thing.

earthboundkid avatar Mar 16 '22 14:03 earthboundkid