The place where random ideas get written down and lost in time.
2023-06-10 - Brace Yourself, Google Analytics 4 is Coming
Category DEVNo choice, GA is giving me more and more warnings about the incoming GA4 migration.
Tasks:
- Build an exhaustive list of projects actually exporting to GA4.
- Find how to send GA4 events from my bash scripts.
Taking a reverse approach to that, the Stats Pages I look daily are:
- The Randall Camera Access stats. Data comes from wazz.js.
- ⇒ This seems like a good contender to learn the “official” JS API.
- The Train Activation stats generated by Conductor.
- This uses ad-hoc URL pings.
- And also uses bash-based wget pings.
- The Servers Ping stats. This uses bash-based wget pings.
- ⇒ This seems like the best candidate to look for a wget alternative.
- The Inkblot Access stats. This uses the official Flutter library.
Migration guide: https://support.google.com/analytics/answer/10759417
- Universal Analytics (UA) is the old one.
- Setup Assistant: https://support.google.com/analytics/answer/9744165
- Account Structure: https://support.google.com/analytics/answer/9679158
- UA structure: Account ⇒ N * Properties (e.g. website) ⇒ M * Views.
- The Property number starts with UA-
- GA4 Structure: Account ⇒ N * Properties (e.g. website) ⇒ Data Streams.
- The property number is a long number.
- Looks like GA4 numbers have already been created for each one.
- Events are changing: https://support.google.com/analytics/answer/11091422
- UA events have events category > event action > event label.
- GA4 events are firebase events: event name + event parameters.
- UA event action becomes the new GA4 event name
- UA event category becomes a GA4 event custom parameter
- UA event label becomes a GA4 event custom parameter
Generated on 2025-01-18 by Rig4j 0.1-Exp-f2c0035