gma / nesta

File Based CMS and Static Site Generator
http://nestacms.com
MIT License
902 stars 120 forks source link

Google Analytics Update #193

Closed etc closed 4 months ago

etc commented 1 year ago

Google Universal Analytics standard properties will stop processing data on July 1, 2023. So that part of the code can be retired. I don't have the time right now to update Nesta to use the new Google Analytics 4 format instead. But I will do so at some later date if no one beats me to it!

pelargir commented 5 months ago

Do you want to try to support both at the same time, or would it be enough to just replace UA with GA4 entirely? A replacement wouldn't be backwards compatible for anyone still using UA, but UA will be gone by July.

gma commented 5 months ago

Hi @pelargir. I think there are two routes here.

  1. Remove all the GA-related code from Nesta and write a page for the docs showing how to set it up yourself (I'm imagining it'd be a simple addition to the config file, and a snippet of markup added to your layout, that would probably work well for most analytics platforms).
  2. Just port the UA stuff that we've got now to GA4.

I don't think we need to worry about supporting both UA and GA4. If it were to cause anybody a problem I could help them retro-fit UA config and markup into their site.

But I no longer feel as though GA are the only good option for analytics, and I'd rather Nesta was vendor agnostic, so I have a mild preference for (1).

On the other hand, we don't need to change everything at once, so (2) would be very acceptable to me. I might never get around to writing the docs for (1), though PR's in that department are also welcome — the site is at gma/nestacms.com.

So either approach would be welcome from my perspective. Cheers!

pelargir commented 5 months ago

I've created https://github.com/gma/nesta/pull/201 which handles (2) above.

gma commented 4 months ago

I've just merged #201 ( :clap: ) so closing this.

Will be releasing 0.16.0 shortly…