試用 Google Analytics 的 MCP 伺服器。從
GitHub 安裝,詳情請參閱
公告。
DataRedactionSettings
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"name": string,
"emailRedactionEnabled": boolean,
"queryParameterRedactionEnabled": boolean,
"queryParameterKeys": [
string
]
} |
欄位 |
name |
string
僅供輸出。這項資料遮蓋設定資源的名稱。格式:properties/{property_id}/dataStreams/{dataStream}/dataRedactionSettings 範例:「properties/1000/dataStreams/2000/dataRedactionSettings」
|
emailRedactionEnabled |
boolean
啟用後,系統會遮蓋任何與電子郵件類似的事件參數或使用者屬性值。
|
queryParameterRedactionEnabled |
boolean
如果查詢參數位於已設定的查詢參數集內,「查詢參數」就會移除其中的鍵和值部分。 如果啟用,系統會針對串流執行網址查詢取代邏輯。系統會遮蓋 queryParameterKeys 中定義的任何查詢參數。
|
queryParameterKeys[] |
string
要套用遮蓋邏輯的查詢參數鍵 (如果網址中出現的話)。查詢參數比對時不區分大小寫。 如果 query_parameter_replacement_enabled 為 true,必須至少包含一個元素。鍵不得包含半形逗號。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eData Redaction Settings allow you to control client-side redaction for a specific Web Stream, including email and query parameter redaction.\u003c/p\u003e\n"],["\u003cp\u003eWhen enabled, email redaction automatically obscures any event parameter or user property value resembling an email address.\u003c/p\u003e\n"],["\u003cp\u003eQuery parameter redaction, when activated, removes specified query parameters and their values from URLs, requiring at least one query parameter key to be defined if enabled.\u003c/p\u003e\n"],["\u003cp\u003eThe resource is identified by a unique name in the format: \u003ccode\u003eproperties/{property_id}/dataStreams/{dataStream}/dataRedactionSettings\u003c/code\u003e.\u003c/p\u003e\n"]]],["Data redaction settings for a web stream can be configured. Email redaction is enabled or disabled via `emailRedactionEnabled`. Query parameter redaction is controlled with `queryParameterRedactionEnabled`, which, when active, redacts specified keys and their values from URLs. The `queryParameterKeys` array lists the specific query parameter keys targeted for redaction; at least one key is required when query parameter redaction is enabled. The `name` field displays the resource name and path.\n"],null,["# DataRedactionSettings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nSettings for client-side data redaction. Singleton resource under a Web Stream.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"emailRedactionEnabled\": boolean, \"queryParameterRedactionEnabled\": boolean, \"queryParameterKeys\": [ string ] } ``` |\n\n| Fields ||\n|----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Name of this Data Redaction Settings resource. Format: properties/{property_id}/dataStreams/{dataStream}/dataRedactionSettings Example: \"properties/1000/dataStreams/2000/dataRedactionSettings\" |\n| `emailRedactionEnabled` | `boolean` If enabled, any event parameter or user property values that look like an email will be redacted. |\n| `queryParameterRedactionEnabled` | `boolean` Query Parameter redaction removes the key and value portions of a query parameter if it is in the configured set of query parameters. If enabled, URL query replacement logic will be run for the Stream. Any query parameters defined in queryParameterKeys will be redacted. |\n| `queryParameterKeys[]` | `string` The query parameter keys to apply redaction logic to if present in the URL. Query parameter matching is case-insensitive. Must contain at least one element if query_parameter_replacement_enabled is true. Keys cannot contain commas. |"]]