jehna / ga-lite

Small, cacheable and open version of Google Analytics JS client
MIT License
640 stars 55 forks source link

Support for the new Google Analytics 4 tag #205

Open datapolitical opened 3 years ago

datapolitical commented 3 years ago

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

jehna commented 3 years ago

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

datapolitical commented 3 years ago

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

jehna commented 3 years ago

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.

igorgatis commented 3 years ago

How about a new project: ga4-lite?

jehna commented 3 years ago

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

earthboundkid commented 2 years ago

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.

websecnl commented 5 months ago

So is this compatible with GA4 or not?

jehna commented 5 months ago

Absolutely not

websecnl commented 5 months ago

Absolutely not

Is there something else like ga-lite which does support GA4?