Google Analytics Measurement Protocol
The Measurement Protocol for Google Analytics 4 allows developers to send events directly to Google Analytics servers for web and app streams. Fire-and-forget: the production endpoint returns HTTP 204 with an empty body and never reports validation errors, so a separate validation endpoint exists. Authenticates with a per-data-stream api_secret rather than OAuth.
Documentation
Documentation
https://developers.google.com/analytics/devguides/collection/protocol/ga4
APIReference
https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference
Other Resources
Validation
https://developers.google.com/analytics/devguides/collection/protocol/ga4/validating-events
Events
https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events
Sandbox
https://raw.githubusercontent.com/api-evangelist/google-analytics-4/refs/heads/main/sandbox/google-analytics-4-sandbox.yml
APIsJSON
https://raw.githubusercontent.com/api-evangelist/google-analytics-4/refs/heads/main/apis.yml