docs
docs copied to clipboard
Migrate to Google Analytics 4 (GA4)
Google is deprecating the Universal Analytics tag over Google Analytics 4. This effect will commence on July 1, 2023. You can learn more here
This issue is part of a CNCF-wide effort to upgrade project websites to GA4 since Google has deprecated Universal Analytics (UA). For more details, see:
-
https://github.com/cncf/techdocs/issues/108, including reference to:
- A suggested migration process, which we've used to migrate a few CNCF projects already.
We should migrate the Prometheus website to GA4 as soon as possible so that by 2023Q3, when UA data collection stops, we will already have 1+ year of historical data.
Tasks, stage 1 (no code changes are necessary)
- [ ] Create a GA4 site tag using the GA4 setup assistant from the UA site tag console. This will create and connect the two site tags.
- [ ] The new GA4 measurement ID is G-ADD_ID_HERE.
- [ ] Confirm that the GA4 site tag is receiving events
- [ ] Confirm that the UA site tag(s) are still receiving events (with no code changes, there's no reason for it to not being receiving events, but it's good to check)
Tasks, stage 2 (optional, can be done later)
- Switch to using GA4 ID.
- Confirm that the GA4 site tag is receiving events
- Confirm that the UA site tag(s) are still receiving events
I'd be glad to create a new GA4 site tag under the GA CNCF-projects account if you'd like. We could then link the UA tags to the GA4 tag (and back).
Hey, thanks!
That would be helpful if you have time!
CC @juliusv We were thinking about removing all tracking as we don't really leverage any of the data and as the easiest way to be compliant with GDPR is to not collect data in the first place. That being said, if we don't switch it off, migration-as-a-service would be hugely appreciated.
I'm fine with switching off the tracking! I think mainly the CNCF still wanted it though?
Yes. I think the foundation would need the data
I think the foundation would need the data
This sounds like a quote from a cyberpunk thriller TV show :)
Sounds good to me for now in any case if you want to change things over to the new GA and CNCF account.
Sure...happy to lead this effort @juliusv
Sounds good to me. I think all current GA code on the site is just this, so it should be easy to replace: https://github.com/prometheus/docs/blob/918a96509582678fafb35f5dc9f35dcaea7591e4/layouts/footer.html#L9-L18
Hi all. I'm leading the GA4 migration effort for CNCF. FYI, I'll be taking over this effort from @thisisobate. Thanks @thisisobate for kicking things off!
I'm going to open another issue so that I have edit access.
Please close in favor of:
- #2181
Closing as requested.