适用于 Google Analytics(分析)4 的 Google Analytics(分析)Measurement Protocol 可通过 HTTP 请求直接将事件发送到 Google Analytics(分析)服务器,从而增强对网站和应用数据流的衡量。您可以记录服务器与服务器之间以及线下发生的互动情况,并将其作为 Measurement Protocol 事件发送给 Google Analytics(分析),以便显示在报告中。
您必须使用代码植入(gtag、跟踪代码管理器或 Google Analytics for Firebase),才能使用 Measurement Protocol。请参阅主要功能部分,了解有关 Measurement Protocol 如何与 Google Analytics(分析)4 搭配使用的重要信息。
使用情形
下面是使用 Measurement Protocol 的一些方式:
将线上和线下行为联系起来。
衡量客户端和服务器端的互动。
发送在标准用户互动之外发生的事件,例如线下转化。
发送来自无法使用自动收集功能的设备和应用(如自助服务终端、手表)的事件。
开始使用
请参阅发送事件,了解如何使用 Measurement Protocol 将事件发送到 Google Analytics(分析)。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-04-22。"],[[["The Google Analytics Measurement Protocol allows you to send data directly to Google Analytics servers, enabling measurement of server-to-server, offline, and other interactions not captured by standard tagging methods."],["It's primarily designed to supplement, not replace, data collection through gtag.js, Google Tag Manager, and Google Analytics for Firebase."],["You can leverage the Measurement Protocol for use cases such as tying online and offline behavior, measuring interactions across various touchpoints, and capturing data from devices where automatic collection isn't feasible."],["To fully utilize the features of the Measurement Protocol and access comprehensive reporting, it's essential to implement tagging using gtag.js, Google Tag Manager, or Google Analytics for Firebase."],["The protocol respects user privacy settings and automatically joins data with online interactions to apply preferences for personalized ads and ad tracking limitations."]]],["The Google Analytics Measurement Protocol sends events directly to Google Analytics servers via HTTP requests, augmenting existing data collection methods like gtag and Firebase. It enables recording server-to-server and offline interactions, such as tying online to offline behavior, measuring diverse interactions, and sending events from unsupported devices. Using tagging is mandatory and essential for its functionality. The protocol automatically joins online and offline data for privacy settings and utilizes existing geographic/device information for reporting.\n"]]