prometheus / docs

Prometheus documentation: content and static site generator
https://prometheus.io
Apache License 2.0
647 stars 1k forks source link

Migrate to Google Analytics 4 (GA4) #2181

Closed chalin closed 1 year ago

chalin commented 2 years ago

This is part of a CNCF-wide effort to upgrade project websites to GA4 since Google has deprecated Universal Analytics (UA). For more details, see:

Tasks: stage 1 (no code changes are necessary)

Tasks: stage 1b - upgrade to use gtag.js

Tasks: stages 2 & 3

Related

More:

/cc @nate-double-u @caniszczyk


Current website analytics info:

Hugo layout relevant for the main tag:


Previous issue on this topic: #2175.

chalin commented 2 years ago

@bwplotka @RichiH @juliusv: can one of you grant me access to your UA analytics account?

Note that we'll be creating the new GA4 site tag under the CNCF analytics account.

chalin commented 2 years ago

I'll also either need access to your Netlify account, or have someone able to add an environment variable for me when the time comes (stage 2).

juliusv commented 2 years ago

@chalin Sure, could you let me know your email address for both of these? Feel free to send to julius.volz@gmail.com.

LKaemmerling commented 2 years ago

Hello @juliusv, @chalin and the rest,

I'm sure this is not the right place, but I wanted to bring to your attention that Google Analytics is not a privacy-friendly service. Would you consider moving to privacy first analytics solution like https://usefathom.com/? This would bring a lot of benefits for users, as it is faster than Google Analytics and also respects the privacy of the users.

juliusv commented 2 years ago

@LKaemmerling Well personally, I totally agree and only use plausible.io these days, which also aims to be a GDPR-compatible and very ligh-weight alternative to GA.

However, it seems like the LF / CNCF uses GA to track all their different project websites. But maybe you can convince them to switch at some point :)

chalin commented 1 year ago

seems like the LF / CNCF uses GA to track all their different project websites.

Right. For the moment, the CNCF will continue using GA.

chalin commented 1 year ago

Migration stages 2 & 3 are complete. GA4 ID is now setup via snippet injection.