试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
EnhancedMeasurementSettings
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
网站 DataStream 下的单例资源,用于配置对其他网站互动和内容的衡量。
JSON 表示法 |
{
"name": string,
"streamEnabled": boolean,
"scrollsEnabled": boolean,
"outboundClicksEnabled": boolean,
"siteSearchEnabled": boolean,
"videoEngagementEnabled": boolean,
"fileDownloadsEnabled": boolean,
"pageChangesEnabled": boolean,
"formInteractionsEnabled": boolean,
"searchQueryParameter": string,
"uriQueryParameter": string
} |
字段 |
name |
string
仅限输出。增强型衡量设置的资源名称。格式:property_id}/dataStreams/{dataStream}/EnhanceMeasurementSettings 示例:“properties/1000/dataStreams/2000/EnhanceMeasurementSettings”
|
streamEnabled |
boolean
指明是否会使用增强型衡量设置来自动衡量此网站数据流中的互动和内容。 更改此值不会影响设置本身,但会决定设置是否遵循。
|
scrollsEnabled |
boolean
启用后,每当访问者滚动到页面底部时,系统都会捕获滚动事件。
|
outboundClicksEnabled |
boolean
启用后,每当访问者点击会将他们带离您的网域的链接时,系统就会捕获出站点击事件。
|
siteSearchEnabled |
boolean
启用后,每当访问者在您的网站上执行搜索时,系统都会捕获查看搜索结果事件(基于查询参数)。
|
videoEngagementEnabled |
boolean
启用后,当访问者观看您网站上嵌入的视频时,将会捕获视频播放、进度和视频完整播放事件。
|
fileDownloadsEnabled |
boolean
启用后,每次用户点击带有常用文档、压缩文件、应用、视频或音频扩展名的链接时,系统就会捕获文件下载事件。
|
pageChangesEnabled |
boolean
启用后,每当网站更改浏览器历史记录状态时,系统就会捕获网页浏览事件。
|
formInteractionsEnabled |
boolean
启用后,每当访问者与您网站上的表单进行互动时,系统就会捕获表单互动事件。默认值为 false。
|
searchQueryParameter |
string
必需。要解读为网站搜索参数的网址查询参数。长度上限为 1024 个字符。值不能为空。
|
uriQueryParameter |
string
其他网址查询参数。长度上限为 1024 个字符。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eEnhanced Measurement Settings automatically track website interactions and content using a web DataStream.\u003c/p\u003e\n"],["\u003cp\u003eThis singular resource provides a variety of configurable settings for measuring events like scrolls, outbound clicks, site search, video engagement, file downloads, page changes, and form interactions.\u003c/p\u003e\n"],["\u003cp\u003eYou can enable or disable the automatic measurement of these interactions while customizing aspects such as site search parameters and additional URL query parameters.\u003c/p\u003e\n"],["\u003cp\u003eResource information and individual interaction settings are represented in JSON format, accessible via a designated endpoint ("properties/{property_id}/dataStreams/{dataStream}/enhancedMeasurementSettings").\u003c/p\u003e\n"]]],["This content describes settings for enhanced measurement of interactions on a web data stream. Key actions include enabling or disabling the use of these settings to measure interactions and content. Specific interactions measured include scrolls, outbound clicks, site searches, video engagement, file downloads, page changes, and form interactions. The settings also capture URL query parameters for site search and allow additional parameters. Each measurement type can be individually turned on or off, with specific settings, such as \"searchQueryParameter\".\n"],null,["# EnhancedMeasurementSettings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nSingleton resource under a web DataStream, configuring measurement of additional site interactions and content.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"streamEnabled\": boolean, \"scrollsEnabled\": boolean, \"outboundClicksEnabled\": boolean, \"siteSearchEnabled\": boolean, \"videoEngagementEnabled\": boolean, \"fileDownloadsEnabled\": boolean, \"pageChangesEnabled\": boolean, \"formInteractionsEnabled\": boolean, \"searchQueryParameter\": string, \"uriQueryParameter\": string } ``` |\n\n| Fields ||\n|---------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{dataStream}/enhancedMeasurementSettings Example: \"properties/1000/dataStreams/2000/enhancedMeasurementSettings\" |\n| `streamEnabled` | `boolean` Indicates whether Enhanced Measurement Settings will be used to automatically measure interactions and content on this web stream. Changing this value does not affect the settings themselves, but determines whether they are respected. |\n| `scrollsEnabled` | `boolean` If enabled, capture scroll events each time a visitor gets to the bottom of a page. |\n| `outboundClicksEnabled` | `boolean` If enabled, capture an outbound click event each time a visitor clicks a link that leads them away from your domain. |\n| `siteSearchEnabled` | `boolean` If enabled, capture a view search results event each time a visitor performs a search on your site (based on a query parameter). |\n| `videoEngagementEnabled` | `boolean` If enabled, capture video play, progress, and complete events as visitors view embedded videos on your site. |\n| `fileDownloadsEnabled` | `boolean` If enabled, capture a file download event each time a link is clicked with a common document, compressed file, application, video, or audio extension. |\n| `pageChangesEnabled` | `boolean` If enabled, capture a page view event each time the website changes the browser history state. |\n| `formInteractionsEnabled` | `boolean` If enabled, capture a form interaction event each time a visitor interacts with a form on your website. False by default. |\n| `searchQueryParameter` | `string` Required. URL query parameters to interpret as site search parameters. Max length is 1024 characters. Must not be empty. |\n| `uriQueryParameter` | `string` Additional URL query parameters. Max length is 1024 characters. |"]]