试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
ConnectedSiteTag
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"displayName": string,
"tagId": string
} |
字段 |
displayName |
string
必需。用户为已关联的网站代码提供的显示名称。必须少于 256 个字符。
|
tagId |
string
必需。“要向其转发事件的代码 ID。也称为衡量 ID 或“G-ID”(例如:G-12345)。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eConnected Site Tag configuration uses JSON format for defining settings.\u003c/p\u003e\n"],["\u003cp\u003eConfiguration requires a user-friendly display name and the unique Tag ID for event forwarding.\u003c/p\u003e\n"],["\u003cp\u003eThe display name has a character limit of fewer than 256, while the Tag ID is essential for identifying the destination for events.\u003c/p\u003e\n"]]],["The provided JSON represents configuration for a Connected Site Tag, requiring a `displayName` and a `tagId`. The `displayName` is a user-defined string (less than 256 characters) for identification. The `tagId` is a string representing the Measurement ID (e.g., G-12345), used to forward events. Both fields are mandatory for configuration.\n"],null,["# ConnectedSiteTag\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nConfiguration for a specific Connected Site Tag.\n\n| JSON representation |\n|----------------------------------------------------|\n| ``` { \"displayName\": string, \"tagId\": string } ``` |\n\n| Fields ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------|\n| `displayName` | `string` Required. User-provided display name for the connected site tag. Must be less than 256 characters. |\n| `tagId` | `string` Required. \"Tag ID to forward events to. Also known as the Measurement ID, or the \"G-ID\" (For example: G-12345). |"]]