Hãy thử máy chủ MCP cho Google Analytics. Cài đặt từ
GitHub và xem
thông báo để biết thêm thông tin chi tiết.
DataRedactionSettings
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Chế độ cài đặt để loại bỏ dữ liệu phía máy khách. Tài nguyên singleton trong Luồng web.
Biểu diễn dưới dạng JSON |
{
"name": string,
"emailRedactionEnabled": boolean,
"queryParameterRedactionEnabled": boolean,
"queryParameterKeys": [
string
]
} |
Trường |
name |
string
Chỉ có đầu ra. Tên của tài nguyên trong phần Cài đặt loại bỏ dữ liệu này. Định dạng: thuộc tính/{property_id}/dataStreams/{dataStream}/dataRedactionSettings. Ví dụ: "properties/1000/dataStreams/2000/dataRedactionSettings"
|
emailRedactionEnabled |
boolean
Nếu được bật, mọi thông số sự kiện hoặc giá trị thuộc tính người dùng trông giống như một email sẽ bị loại bỏ.
|
queryParameterRedactionEnabled |
boolean
Loại bỏ Tham số truy vấn sẽ loại bỏ các phần khoá và giá trị của tham số truy vấn nếu tham số đó nằm trong tập hợp tham số truy vấn đã được định cấu hình. Nếu bạn bật tuỳ chọn này, logic thay thế truy vấn URL sẽ chạy cho Luồng. Mọi thông số truy vấn được xác định trong queryParameterKeys sẽ bị loại bỏ.
|
queryParameterKeys[] |
string
Khoá tham số truy vấn để áp dụng logic loại bỏ (nếu có trong URL). Việc so khớp tham số truy vấn không phân biệt chữ hoa chữ thường. Phải chứa ít nhất một phần tử nếu query_parameter_replacement_enabled là true. Khoá không được chứa dấu phẩy.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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. |"]]