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

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

Migrate to Google Analytics 4 (GA4) #71

chalin opened this issue Nov 4, 2022 · 6 comments

Comments

@chalin
Copy link
Collaborator

chalin commented Nov 4, 2022

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:

Tasks: stages 1 & 2

  • Create a GA4 site tag under the CNCF projects account.
    The new GA4 stream measurement ID is: G-60C6Q1ETC1
  • Configure GA4 website ID (gtag.js) through Netlify snippet injection, "Google Analytics 4 - only in production", just before </head>:
    {% if CONTEXT == 'production' %}
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-60C6Q1ETC1"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'G-60C6Q1ETC1');
    </script>
    {% endif %}
  • Confirm that the GA4 site tag is receiving events
  • Confirm that the UA site tag is still receiving events

Notes:

/cc @caniszczyk @nate-double-u


Current website analytics info:

  • UA site tags, all registered via analytics.js:
    • UA-149338238-1, main site tag
    • UA-149338238-2: blog
    • UA-149338238-3: docs
@chalin
Copy link
Collaborator Author

chalin commented Nov 4, 2022

GA4 is up and running for the main site. Later cleanup will be tracked via #72.

@chalin
Copy link
Collaborator Author

chalin commented Nov 4, 2022

I'm going to reopen this issue until I can find out where the blog sources are and how the blog gets published -- @yaron2 can you help?

@chalin chalin reopened this Nov 4, 2022
@msfussell
Copy link
Member

@chalin - Work with me and @greenie-msft or @nyemade-uversky on this. For the blog site you should have access to all the sources now in the repo. Can you confirm?

@chalin
Copy link
Collaborator Author

chalin commented Nov 8, 2022

Thanks @msfussell. I confirm that I have access.

@chalin
Copy link
Collaborator Author

chalin commented Nov 8, 2022

Closing once again since the main-site migration is done. Migration for subdomains (blog and docs) is tracked separated. For links to their issues, see the opening comment.

@chalin chalin closed this as completed Nov 8, 2022
@chalin
Copy link
Collaborator Author

chalin commented Nov 10, 2022

FYI, I've created, for illustrative purposes, a custom report that shows only docs.dapr.io page views. This illustrates how we can generate reports for separate subdomains (mimicking the UA property setup that existed before):

image

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

2 participants