Migrate to Google Analytics 4 (GA4)
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.
Tasks: stages 1 & 2
- [ ] Create a GA4 site tag under the CNCF projects account.
The new GA4 stream measurement ID is:
G-ADD-ID-HERE - [ ] Connect to the GA4 site tag from the UA tag(s)
- [ ] Upgrade website to use gtag.js library
- [ ] Confirm that the GA4 site tag is receiving events
- [ ] Confirm that the UA site tag is still receiving events
/cc @caniszczyk @nate-double-u
Current website analytics info:
- UA site tags, all registered via
analytics.js:UA-149338238-1, main site tagUA-149338238-2: blogUA-149338238-3: docs
/assign
Each doc version is under its own branch, and has its own individually configured UA ID. It'll be tedious to update all of those.
Do maintainers know if Azure Static Web Apps supports something like Netlify snippet injection? That would make the update to GA4 much easier for now, and in the future if the ID needs to be updated.
Done:
✅ Connect
UA-58468480-3from GA4 stream
Per @msfussell's 👍 given in https://github.com/dapr/docs/pull/2941#issuecomment-1306673952.
Also done:
✅ From the website data stream (
G-60C6Q1ETC1), configure cross-domain measurement for domains ending with docs.dapr.io
Docs Analytics for the past 6 months (2022/05/08 - 2022/11/08):

@msfussell @greenie-msft:
- What's the suggested cutoff point in terms of doc versions, beyond which we don't update the GA ID? Or do you want to do all in the list above?
- The rank of
v0.11in that list surprised me, given that it's pre v1.
I've created a doc-pages-only custom report. For a screenshot, see: https://github.com/dapr/website/issues/71#issuecomment-1310629107.
I've created a doc-pages-only custom report. For a screenshot, see: dapr/website#71 (comment).
We do not need to go back more than three releases. 1.7, 1.8 and 1.9 are enough. Then 1.10 is the upcoming release in Feb 2023. Those 4 releases.
Resolved