WebmasterID logoWebmasterID
Event tracking

The Measurement Protocol

The Measurement Protocol is an HTTP interface for sending analytics events directly to the backend, without a browser tag. It is what makes server-side, offline, and backend events possible: a server, a kiosk, or a CRM can post events as JSON. With that power comes responsibility — events must be well-formed and de-duplicated, and identity and consent rules still apply on the server.

Verified against primary sources

What this means

The Measurement Protocol (GA4 version) lets you send events to Google Analytics as HTTP POST requests with a JSON body, using a measurement id and an API secret. It powers use cases a browser tag cannot reach: server-side tagging, offline conversions, point-of-sale, and events from systems with no front end.

Power and pitfalls

Because you build the payload, nothing validates intent for you. Events must include the right client or app identifier to join with browser sessions, must be de-duplicated (especially for purchases), and must be well-formed — malformed events are dropped, often silently, which is easy to mistake for missing traffic. And every privacy rule that applies in the browser still applies to what your server sends.

How it appears in analytics and logs

Events arriving via the Measurement Protocol bypass the browser, so client context is absent unless you supply it. Malformed payloads are silently dropped, which can look like missing data.

Diagnostic use case

Send events from servers, backends, or offline systems via HTTP when a browser tag cannot, while keeping events well-formed and consent-aware.

What WebmasterID can help detect

WebmasterID's ingest accepts first-party events server-side and classifies them, so backend or server-sent events are filtered and separated from bots like any other event.

Common mistakes

Privacy and accuracy notes

The Measurement Protocol sends whatever you put in the payload — so data-minimisation is entirely on you. Do not post raw IPs or personal identifiers; consent obligations follow the data, not the channel. This is educational, not legal advice.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.