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.
Method: properties.acknowledgeUserDataCollection
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.
Xác nhận các điều khoản về việc thu thập dữ liệu người dùng cho tài sản đã chỉ định.
Bạn phải hoàn tất quy trình xác nhận này (trong giao diện người dùng Google Analytics hoặc thông qua API này) trước khi có thể tạo các tài nguyên Measurement ProtocolSecret.
Yêu cầu HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{property=properties/*}:acknowledgeUserDataCollection
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
property |
string
Bắt buộc. Tài sản cần xác nhận việc thu thập dữ liệu người dùng.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"acknowledgement": string
} |
Trường |
acknowledgement |
string
Bắt buộc. Thông báo xác nhận rằng phương thức gọi của phương thức này hiểu các điều khoản về việc thu thập dữ liệu người dùng. Trường này phải chứa giá trị chính xác: "Tôi xác nhận rằng tôi có thông tin công bố cần thiết về quyền riêng tư và các quyền từ người dùng cuối đối với việc thu thập và xử lý dữ liệu của họ, bao gồm cả mối liên kết của dữ liệu đó với thông tin về những lượt truy cập mà Google Analytics thu thập từ trang web và/hoặc thuộc tính ứng dụng của tôi".
|
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ trống.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/analytics.edit
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\u003eThis API endpoint is used to acknowledge the terms of user data collection for a specified Google Analytics property.\u003c/p\u003e\n"],["\u003cp\u003eAcknowledgement is required before creating MeasurementProtocolSecret resources and involves confirming understanding of data collection and user privacy.\u003c/p\u003e\n"],["\u003cp\u003eThe request must include a specific acknowledgement phrase stating the user understands the implications of data collection and has necessary user consent.\u003c/p\u003e\n"],["\u003cp\u003eThe API uses a POST request to a specific endpoint and includes the property ID in the path.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful acknowledgement, the response body will be empty.\u003c/p\u003e\n"]]],["The core content outlines the process for acknowledging user data collection terms via an API. A `POST` HTTP request to a specific URL is required, including the `property` path parameter. The request body must contain a JSON with the exact `acknowledgement` string confirming understanding of data collection terms. A successful request results in an empty response, requiring `analytics.edit` authorization scope. The acknowledgment must happen to allow resource creation.\n"],null,["# Method: properties.acknowledgeUserDataCollection\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nAcknowledges the terms of user data collection for the specified property.\n\nThis acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.\n\n### HTTP request\n\n`POST https://analyticsadmin.googleapis.com/v1alpha/{property=properties/*}:acknowledgeUserDataCollection`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|--------------------------------------------------------------------------------|\n| `property` | `string` Required. The property for which to acknowledge user data collection. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------|\n| ``` { \"acknowledgement\": string } ``` |\n\n| Fields ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `acknowledgement` | `string` Required. An acknowledgement that the caller of this method understands the terms of user data collection. This field must contain the exact value: \"I acknowledge that I have the necessary privacy disclosures and rights from my end users for the collection and processing of their data, including the association of such data with the visitation information Google Analytics collects from my site and/or app property.\" |\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.edit`"]]