docs icon indicating copy to clipboard operation
docs copied to clipboard

Migrate to Google Analytics 4 (GA4)

Open thisisobate opened this issue 3 years ago • 1 comments

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:

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

thisisobate avatar Jul 27 '22 09:07 thisisobate

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).

thisisobate avatar Aug 11 '22 14:08 thisisobate

Hey, thanks!

That would be helpful if you have time!

bwplotka avatar Aug 18 '22 10:08 bwplotka

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.

RichiH avatar Aug 18 '22 15:08 RichiH

I'm fine with switching off the tracking! I think mainly the CNCF still wanted it though?

juliusv avatar Aug 18 '22 16:08 juliusv

Yes. I think the foundation would need the data

thisisobate avatar Aug 18 '22 17:08 thisisobate

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.

juliusv avatar Aug 18 '22 17:08 juliusv

Sure...happy to lead this effort @juliusv

thisisobate avatar Aug 18 '22 17:08 thisisobate

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

juliusv avatar Aug 18 '22 17:08 juliusv

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.

chalin avatar Aug 24 '22 14:08 chalin

Please close in favor of:

  • #2181

chalin avatar Aug 24 '22 14:08 chalin

Closing as requested.

juliusv avatar Aug 24 '22 20:08 juliusv