--- url: "https://developers.google.com/analytics/devguides/collection/protocol/ga4" titulek: "Measurement Protocol | Google Analytics | Google for Developers" h1: "Measurement Protocol Stay organized with collections Save and categorize content based on your preferences." popis: "With Google Analytics, you can fine-tune your digital strategy, optimize your campaigns, and take your online presence to new heights. " jazyk: "en" kanonicka: "https://developers.google.com/analytics/devguides/collection/protocol/ga4" drobecky: ["Google Analytics", "Measurement Protocol"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 08:03:49" znaku: 5899 slov: 731 kodovani: "iso-8859-2" sha256: "0c7f43897e5faf0ecfd3f0f2b3df2295dcc4653acb408027e6e26a5ee80966a4" --- Measurement Protocol Stay organized with collections Save and categorize content based on your preferences. The Google Analytics Measurement Protocol allows sending events directly to Google Analytics servers via HTTP requests to record server-to-server and offline interactions. The Measurement Protocol is intended to supplement, not replace, automatic data collection methods like gtag, Tag Manager, and Google Analytics for Firebase. You must use tagging (gTag, Tag Manager, or Google Analytics for Firebase) to utilize this protocol effectively. The Measurement Protocol can be used for tying online to offline behavior, measuring server-side interactions, sending events outside standard user-interaction, and sending events from devices without automatic collection. The Google Analytics Measurement Protocol enhances measurement for web and app streams by [sending events](/analytics/devguides/collection/protocol/ga4/sending-events) directly to Google Analytics servers in HTTP requests. You can record server-to-server and offline interactions, and send them as Measurement Protocol events to Google Analytics, where they can be viewed in [reports](/analytics/devguides/reporting/data/v1/basics). You must use tagging (gTag, Tag Manager, or Google Analytics for Firebase) to use this protocol. See key features for important information on how this Measurement Protocol works with Google Analytics. Use cases Here are some ways to use the Measurement Protocol: Tie online to offline behavior. Measure client-side and server-side interactions. Send events that happen outside standard user-interaction, like offline conversions. Send events from devices and apps where automatic collection isn't available, like kiosks and watches. Read more about how to implement common use cases in the [use cases guide](/analytics/devguides/collection/protocol/ga4/use-cases). Get started See [send events](/analytics/devguides/collection/protocol/ga4/sending-events) to learn how to send events to Google Analytics using the Measurement Protocol. If you're implementing the Measurement Protocol for an app stream, you can start with the [Send app events to Google Analytics using Measurement Protocol](//firebase.google.com/codelabs/firebase_mp) codelab. Architecture Here is an overview of the Measurement Protocol. Key features This section explains important information for using the Measurement Protocol. You must use gTag, Tag Manager, or Google Analytics for Firebase for tagging to use most of the Measurement Protocol features with Google Analytics. Remarketing Same device remarketing is supported when [Google signals](//support.google.com/analytics/answer/9445345) is turned on. For cross-device remarketing, a User ID is required. Advertising identifiers Advertising identifiers such as GBRAID/WBRAID collected during online interactions are automatically joined with Measurement Protocol events using `client_id` or `app_instance_id`. Privacy settings Measurement Protocol events are joined with online interactions using `client_id` or `app_instance_id` to functionally adopt user privacy settings such as "non personalized ads" and "limit ad tracking". Geographic and device information Google Analytics automatically joins the most recent geographic and device information from tagging with Measurement Protocol events using `client_id` or `app_instance_id`. This ensures that your Measurement Protocol events are reflected in reports that include geographic and device dimensions. If you want a Measurement Protocol event to reflect geographic and device information from a *specific* session instead of the latest information for the `client_id` or `app_instance_id`, then include `session_id` in the event and send it to Measurement Protocol within 24 hours of the start of the session. You can provide [geographic information](/analytics/devguides/collection/protocol/ga4/reference#payload_geo_info) and [device information](/analytics/devguides/collection/protocol/ga4/reference#payload_device_info) for events using the Measurement Protocol. If device information isn't collected by your tag, it defaults to `desktop` for Web streams, and `mobile` for App streams. Full server-to-server While it's possible to send events to Google Analytics solely with the Measurement Protocol, only partial reporting may be available. The purpose of the Measurement Protocol is to augment existing events collected using gtag, GTM, or Firebase. Some event and parameter names are [reserved](/analytics/devguides/collection/protocol/ga4/reference?#reserved_names) for use through automatic collection and cannot be sent through the Measurement Protocol. Generate or rename events Rules for [generating or renaming events](//support.google.com/analytics/answer/10085872) aren't triggered by events sent with the Measurement Protocol. Your application should implement the logic to send custom events through the Measurement Protocol, similar to the rules configured in the Google Analytics UI. Next steps Learn how to [send events](/analytics/devguides/collection/protocol/ga4/sending-events) using the Measurement Protocol. Validate your event payloads using the [Measurement Protocol validation server](/analytics/devguides/collection/protocol/ga4/validating-events). Check out the [protocol](/analytics/devguides/collection/protocol/ga4/reference) and [event](/analytics/devguides/collection/protocol/ga4/reference/events) reference. Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2026-06-08 UTC.