Google Analytics 4 — Measurement Protocol
ga4/measurement · version 1
envs add ga4/measurement
This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.
| Key | Needed | Kind | Notes |
|---|---|---|---|
GA4_MEASUREMENT_ID |
required | config | Google documents this id as part of the on-page tag, so it is public by design.. Shape ^G-[A-Z0-9]{6,}$. where to get it |
GA4_API_SECRET |
required | secret | Measurement Protocol secret. Server-side only, unlike the id above.. where to get it |