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) #164

Closed
4 tasks done
chalin opened this issue Oct 6, 2022 · 15 comments
Closed
4 tasks done

Migrate to Google Analytics 4 (GA4) #164

chalin opened this issue Oct 6, 2022 · 15 comments

Comments

@chalin
Copy link

chalin commented Oct 6, 2022

Google has deprecated Universal Analytics (UA), in favor of its successor, Google Analytics 4 (GA4). This issue is part of a CNCF-wide effort to upgrade project websites to GA4. For more details about the deprecation and the CNCF migration effort, see:

Tasks: stages 1 & 2

  • Create a GA4 site tag under the CNCF projects account.
    The new GA4 stream measurement ID is: G-V9SYWYG92Y
  • Enable GA4 site tag, ideally via Netlify snippet injection (leaving the GTM site tag in place), "Google Analytics 4 - only in production", just before </head>:
    {% if CONTEXT == 'production' %}
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-V9SYWYG92Y"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'G-V9SYWYG92Y');
    </script>
    {% endif %}
  • Ensure that the GA4 site tag is receiving events.
  • I'm going to assume that the GTM tag is still processing events, since the registration code hasn't been touched. If someone with access to that Analytics account can confirm, that would be appreciated.

Tasks: followup

Sites

/cc @caniszczyk @nate-double-u

@chalin
Copy link
Author

chalin commented Nov 4, 2022

Hi @tgraf @liquidat @xmulligan: who should I contact to gain access to the Netlify account for:

  • cilium.io
  • docs.cilium.io - edit - I have access through "CNCF projects 2"

I believe that the base account access is via app.netlify.com/sites/cilium. Thanks!

@xmulligan
Copy link
Member

@chalin I can get you access. What do you need?

@chalin
Copy link
Author

chalin commented Nov 4, 2022

@xmulligan - I need access to the main site's Netlify account, so you'll need to add me via https://app.netlify.com/sites/cilium/members I believe. I can't recall what level of access I need, but we can start with Collaborator. Thanks!

@chalin
Copy link
Author

chalin commented Nov 4, 2022

@xmulligan - it seems that these two domains are distinct (and not redirected one to the other):

Is that correct? If so, where is the "official" docs domain being served from?

@xmulligan
Copy link
Member

Sure, should I use your LF email or is there an alias I should use?

I'm not sure about the docs question. @qmonnet might know though

@chalin
Copy link
Author

chalin commented Nov 4, 2022

Sure, should I use your LF email or is there an alias I should use?

I just DM'd you via CNCF Slack. Thanks.

@chalin
Copy link
Author

chalin commented Nov 14, 2022

@xmulligan @qmonnet - any updates on this, post-offsite? To summarize:

  • Cilium Netlify account access: can one of you grant me access?
  • Docs have two hosts: I'd like some insights as to why there seem to be two hosting services active for the docs. For context, see my Migrate to Google Analytics 4 (GA4) #164 (comment) from earlier.

@qmonnet
Copy link
Member

qmonnet commented Nov 14, 2022

Sorry I'm currently on leave, deferring to Bill or maybe @michi-covalent

@xmulligan
Copy link
Member

@chalin sorry for the delay, we didn't want to do the switch while on the offsite in case anything went wrong 😅

@michi-covalent is working on it now

@chalin
Copy link
Author

chalin commented Nov 15, 2022

Thanks @xmulligan @michi-covalent -- looking forward to hearing from you.

@michi-covalent
Copy link
Contributor

hi @chalin ! 👋

  • Cilium Netlify account access: can one of you grant me access?

we are in the process of migrating https://cilium.io site from a private netlify account to cncf account. i'll let you know when the migration is complete.

  • Docs have two hosts: I'd like some insights as to why there seem to be two hosting services active for the docs.

https://docs.cilium.io is currently using readthedocs to host the production site. we use cncf netlify account for deploy previews. https://docs-cilium-io.netlify.app comes from that. not sure if there is a way to disable *.netlify.app domain.

@lizrice
Copy link
Member

lizrice commented Nov 16, 2022

I think I've done it! I have transferred cilium.io to CNCF Projects 2 (where docs.cilium.io was already)
Screenshot 2022-11-16 at 10 14 22

@chalin
Copy link
Author

chalin commented Nov 16, 2022

Great! Ok, GA4 is setup now so I'll close this issue. Let's track the post-migration cleanup via:

Just a reminder that the docs subdomain migration is being tracked separately via:

@chalin
Copy link
Author

chalin commented Nov 16, 2022

https://docs.cilium.io is currently using readthedocs to host the production site. we use cncf netlify account for deploy previews. https://docs-cilium-io.netlify.app comes from that. not sure if there is a way to disable *.netlify.app domain.

I've created a separate issue to track this, see:

@chalin
Copy link
Author

chalin commented Feb 25, 2023

I think I've done it! I have transferred cilium.io to CNCF Projects 2 (where docs.cilium.io was already)

@lizrice @qmonnet et al.: Cilium.io needs to opt out of Google's forced & automatic GA4 migration (since we've migrated already). For details, see:

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