ga-lite
ga-lite copied to clipboard
Support for the new Google Analytics 4 tag
Or do I need to create an old school UA tag?
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
Considering this is for a fun project, that sounds like the perfect opportunity to test something that might very well be broken
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.
How about a new project: ga4-lite
?
ga4-lite
sounds great! I'll definitely link to it from ga-lite if you'd create such a project
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.