22cSpell:ignore : gtag kubernetes
33---
44
5- # Analytics
5+ # Migrating Universal to Google Analytics 4
66
7- This page describes how to setup or upgrade Google Analytics (GA) for your CNCF
8- project's website .
7+ This page describes how to migrate your CNCF project from Google's [ Universal
8+ Analytics ] [ ua ] (UA) to [ Google Analytics 4 ] [ ga4 ] (GA4) .
99
10- > ** Deprecation notice** : Google's [ Universal Analytics will be going away] [ ua ]
11- > in 2023.
12-
13- When adding analytics to a new CNCF project website, use [ Google Analytics
14- 4] [ ga4 ] (GA4).
15-
16- ## Adding Google Analytics
17-
18- For instructions on how to setup [ Google Analytics 4 (GA4)] [ ga4 ] for your
19- [ Docsy] [ ] -based website, see [ Adding Analytics] [ ] .
20-
21- ## Migrating to Google Analytics 4
10+ > ** Deprecation notice** : Google started deprecating UA in 2023. As of 2024, UA
11+ > is no longer supported, and UA data is no longer accessible.
2212
2313There are many ways to upgrade your project to [ GA4] [ ] . We describe one such
2414process below. Adapt it to your needs. Useful resources to consider include:
@@ -30,7 +20,7 @@ process below. Adapt it to your needs. Useful resources to consider include:
3020- ** Help center** resource: [ Migrate from Universal Analytics to Google
3121 Analytics 4] [ migration-help ]
3222
33- ### Stage 0 - preparation
23+ ## Stage 0 - preparation
3424
3525In preparation for the migration, follow these steps:
3626
@@ -51,7 +41,7 @@ In preparation for the migration, follow these steps:
5141 - Take note of which library or libraries (some sites use both) your site is
5242 using.
5343
54- ### Stage 1 - create a GA4 site tag
44+ ## Stage 1 - create a GA4 site tag
5545
5646Objectives:
5747
@@ -138,7 +128,7 @@ Follow these steps:
138128 -- provided that there are active users. You should see roughly the same
139129 number and distribution of active users reported by the UA console.
140130
141- ### Stage 2 - configure the GA4 ID as the main analytics ID
131+ ## Stage 2 - configure the GA4 ID as the main analytics ID
142132
143133GA4 only works when your project's website is configured using the [ gtag.js] [ ]
144134analytics library.
@@ -174,7 +164,7 @@ analytics library.
174164 partial. In this case, make use of the GA4 measurement ID in your partial
175165 or site config file, as appropriate.
176166
177- ### Stage 3 - switch to native support for GA
167+ ## Stage 3 - switch to native support for GA
178168
179169In cases where your project website (temporarily) used some custom layouts or
180170code (such as custom Hugo partials) to enable GA4, consider removing the custom
0 commit comments