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.
Phương diện xuất đối tượng
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.
Các phương diện được hỗ trợ trong truy vấn đến các phương thức Xuất đối tượng của Analytics Data API.
Các phương thức Báo cáo chính (ví dụ: RunReport
) chấp nhận một tập hợp Phương diện và chỉ số khác với các phương thức Xuất đối tượng.
Kích thước
Bạn có thể yêu cầu các phương diện sau trong tệp xuất đối tượng cho bất kỳ tài sản nào.
Chỉ định "Tên API" trong trường name
của tài nguyên AudienceDimension
cho một cột của phương diện trong phản hồi xuất đối tượng.
Tên API |
Tên giao diện người dùng |
Mô tả |
deviceId |
Mã thiết bị |
Giá trị nhận dạng dựa trên trình duyệt hoặc ứng dụng di động cho một người dùng trang web hoặc ứng dụng di động được gán biệt danh, riêng biệt. Để tìm hiểu thêm, hãy xem phần Mã thiết bị. |
isAdsPersonalizationAllowed |
Có cho phép cá nhân hoá quảng cáo không |
Nếu người dùng đủ điều kiện sử dụng chế độ cá nhân hoá quảng cáo, thì isAdsPersonalizationAllowed sẽ trả về true . Nếu người dùng không đủ điều kiện sử dụng chế độ cá nhân hoá quảng cáo, thì isAdsPersonalizationAllowed sẽ trả về false . isAdsPersonalizationAllowed sẽ trả về (not set) nếu Google Analytics không thể trả về giá trị cho biết người dùng này có đủ điều kiện sử dụng chế độ cá nhân hoá quảng cáo hay không; những người dùng mà isAdsPersonalizationAllowed trả về (not set) có thể đủ điều kiện hoặc không đủ điều kiện để nhận quảng cáo được cá nhân hoá. Đối với quảng cáo được cá nhân hoá, bạn nên coi người dùng mà isAdsPersonalizationAllowed = (not set) giống như người dùng mà isAdsPersonalizationAllowed = false vì trong trường hợp chung nhất, một số hàng (not set) sẽ bao gồm những người dùng không đủ điều kiện sử dụng chế độ cá nhân hoá quảng cáo. Những người dùng mà isAdsPersonalizationAllowed = false vẫn có thể được đưa vào các trường hợp sử dụng không liên quan đến mục đích quảng cáo (như tính năng thử nghiệm A/B và công cụ khám phá dữ liệu). |
isLimitedAdTracking |
Có giới hạn việc theo dõi quảng cáo |
Chế độ cài đặt Giới hạn theo dõi quảng cáo của thiết bị. Các giá trị có thể có là: true , false và (not set) . isLimitedAdTracking sẽ trả về (not set) nếu Google Analytics không thể trả về chế độ cài đặt Giới hạn theo dõi quảng cáo của thiết bị này. |
userId |
User ID |
Mã nhận dạng người dùng được chỉ định cho người dùng này trong quá trình gắn thẻ. Để tìm hiểu thêm, hãy xem bài viết Đo lường hoạt động trên nhiều nền tảng bằng User-ID. Nếu bạn bật tính năng thu thập dữ liệu do người dùng cung cấp, thì dữ liệu do người dùng cung cấp cùng với mã nhận dạng người dùng có thể được gửi đến Google Analytics trong quá trình gắn thẻ để cải thiện kết quả đo lường. Để tìm hiểu thêm, hãy xem phần thu thập dữ liệu do người dùng cung cấp. Bất kể bạn có bật dữ liệu do người dùng cung cấp cho tài sản của mình hay không, userId sẽ trả về Mã nhận dạng người dùng được chỉ định trong quá trình gắn thẻ. |
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\u003eThe Analytics Data API's Audience Export methods use a specific set of dimensions for querying data, differing from the Core Reporting methods.\u003c/p\u003e\n"],["\u003cp\u003eAudience exports support dimensions such as Device ID, Ads Personalization status, Limited Ad Tracking status, and User ID for any Google Analytics property.\u003c/p\u003e\n"],["\u003cp\u003eThese dimensions provide insights into user characteristics, privacy settings, and identifiers for analysis and audience creation.\u003c/p\u003e\n"],["\u003cp\u003eYou can include these dimensions in your audience export requests by specifying their API names within the \u003ccode\u003eAudienceDimension\u003c/code\u003e resource.\u003c/p\u003e\n"]]],["Audience Export methods in the Analytics Data API support specific dimensions for queries, distinct from Core Reporting methods. These dimensions, specified by their API Name, include `deviceId`, a unique user identifier; `isAdsPersonalizationAllowed`, indicating a user's eligibility for personalized ads; `isLimitedAdTracking`, reflecting the device's ad tracking settings; and `userId`, the user ID defined in tagging. Each dimension's API Name is used in the `AudienceDimension` resource to retrieve corresponding data.\n"],null,["# Audience Export Dimensions\n\nThe dimensions supported in queries to the [Audience Export methods](/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/create) of the Analytics Data API.\nThe Core Reporting methods ([`RunReport`](/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport)\nfor example) accept a different set of [Dimensions \\& Metrics](/analytics/devguides/reporting/data/v1/api-schema)\nthan the Audience Export methods.\n\nDimensions\n----------\n\nThe following dimensions can be requested in audience exports for any property.\nSpecify the \"API Name\" in an\n[`AudienceDimension`](/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports#AudienceDimension)\nresource's `name` field for a column of the dimension in the audience export\nresponse.\n\n| API Name | UI Name | Description |\n|-------------------------------|--------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deviceId` | Device ID | A browser-based or mobile-app-based identifier for a unique, pseudonymous website or mobile app user. To learn more, see [Device ID](//support.google.com/analytics/answer/9356035). |\n| `isAdsPersonalizationAllowed` | Is ads personalization allowed | If a user is eligible for ads personalization, isAdsPersonalizationAllowed returns `true`. If a user is not eligible for ads personalization, isAdsPersonalizationAllowed returns `false`. isAdsPersonalizationAllowed returns `(not set)` if Google Analytics can't return whether this user is eligible for ads personalization; users where isAdsPersonalizationAllowed returns `(not set)` may or may not be eligible for personalized ads. For personalized ads, you should treat users where isAdsPersonalizationAllowed = `(not set)` as isAdsPersonalizationAllowed = `false` because, in the most general case, some of the `(not set)` rows will include users that are not eligible for ads personalization. Users where isAdsPersonalizationAllowed = `false` can still be used for non-advertising use cases like A/B testing \\& data explorations. |\n| `isLimitedAdTracking` | Is limited ad tracking | The device's Limit Ad Tracking setting. Possible values include: `true`, `false`, and `(not set)`. isLimitedAdTracking returns `(not set)` if Google Analytics can't return this device's Limit Ad Tracking setting. |\n| `userId` | User ID | The User ID specified for this user in tagging. To learn more, see [Measure activity across platforms with User-ID](//support.google.com/analytics/answer/9213390). If user-provided data collection is turned on, user-provided data along with User-ID can be sent to Google Analytics in tagging to improve measurement. To learn more, see [user-provided data collection](//support.google.com/analytics/answer/14077171). Regardless of whether user-provided data is turned on for your property, `userId` returns the User ID specified in tagging. |"]]