Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Google Analytics 4 (GA4) #2175

Closed
4 tasks
thisisobate opened this issue Jul 27, 2022 · 11 comments
Closed
4 tasks

Migrate to Google Analytics 4 (GA4) #2175

thisisobate opened this issue Jul 27, 2022 · 11 comments

Comments

@thisisobate
Copy link
Contributor

thisisobate commented Jul 27, 2022

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
Copy link
Contributor Author

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

@bwplotka
Copy link
Member

Hey, thanks!

That would be helpful if you have time!

@RichiH
Copy link
Member

RichiH commented Aug 18, 2022

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.

@juliusv
Copy link
Member

juliusv commented Aug 18, 2022

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

@thisisobate
Copy link
Contributor Author

thisisobate commented Aug 18, 2022

Yes. I think the foundation would need the data

@juliusv
Copy link
Member

juliusv commented Aug 18, 2022

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.

@thisisobate
Copy link
Contributor Author

Sure...happy to lead this effort @juliusv

@juliusv
Copy link
Member

juliusv commented Aug 18, 2022

Sounds good to me. I think all current GA code on the site is just this, so it should be easy to replace:

<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-58468480-1', 'auto');
ga('send', 'pageview');
</script>

@chalin
Copy link
Contributor

chalin commented Aug 24, 2022

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
Copy link
Contributor

chalin commented Aug 24, 2022

Please close in favor of:

@juliusv
Copy link
Member

juliusv commented Aug 24, 2022

Closing as requested.

@juliusv juliusv closed this as completed Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants