試用 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
僅供輸出。加強型評估設定的資源名稱。格式:properties/{property_id}/dataStreams/{dataStream}/EnhancedMeasurementSettings 範例:「properties/1000/dataStreams/2000/EnhancedMeasurementSettings」
|
streamEnabled |
boolean
指出是否使用加強型評估設定來自動評估這個網站串流的互動和內容。 變更這個值不會影響設定本身,但會決定是否遵循這些設定。
|
scrollsEnabled |
boolean
如果啟用此選項,系統會在訪客每次瀏覽至網頁底部時擷取捲動事件。
|
outboundClicksEnabled |
boolean
啟用這項功能後,只要訪客按下會將他們從目前網域帶離的連結,即記錄一次外連點擊事件。
|
siteSearchEnabled |
boolean
如果啟用這項功能,每當訪客在您的網站上執行搜尋 (以查詢參數為依據),系統就會擷取「瀏覽搜尋結果」事件。
|
videoEngagementEnabled |
boolean
如果啟用此選項,系統會在訪客瀏覽網站上內嵌的影片時,擷取影片播放、進度和完成事件。
|
fileDownloadsEnabled |
boolean
如果啟用此選項,則每次具有一般文件、壓縮檔、應用程式、影片或音訊副檔名的連結獲得點擊時,就會擷取檔案下載事件。
|
pageChangesEnabled |
boolean
如果啟用這項設定,系統會在每次網站變更瀏覽器記錄狀態時擷取網頁瀏覽事件。
|
formInteractionsEnabled |
boolean
如果啟用這個選項,每當訪客與網站上的表單互動時,系統就會擷取表單互動事件。預設為 False。
|
searchQueryParameter |
string
必要欄位。解讀為站內搜尋參數的網址查詢參數。長度上限為 1024 個半形字元。不得留空。
|
uriQueryParameter |
string
其他網址查詢參數。長度上限為 1024 個半形字元。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]