ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
มิติข้อมูลการส่งออกกลุ่มเป้าหมาย
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
มิติข้อมูลที่รองรับในการค้นหาวิธีการส่งออกกลุ่มเป้าหมายของ Analytics Data API
วิธีการรายงานหลัก (เช่น RunReport
) ยอมรับมิติข้อมูลและเมตริกชุดอื่นนอกเหนือจากวิธีการส่งออกกลุ่มเป้าหมาย
ขนาด
คุณขอมิติข้อมูลต่อไปนี้ในการส่งออกกลุ่มเป้าหมายสําหรับพร็อพเพอร์ตี้ใดก็ได้
ระบุ "ชื่อ API" ในช่อง name
ของแหล่งข้อมูล AudienceDimension
สำหรับคอลัมน์ของมิติข้อมูลในการตอบกลับการส่งออกกลุ่มเป้าหมาย
ชื่อ API |
ชื่อ UI |
คำอธิบาย |
deviceId |
รหัสอุปกรณ์ |
ตัวระบุที่ทำงานบนเบราว์เซอร์หรือแอปบนอุปกรณ์เคลื่อนที่สําหรับผู้ใช้เว็บไซต์หรือแอปบนอุปกรณ์เคลื่อนที่ที่ไม่ซ้ำกันและผ่านการประมวลผลข้อมูลเพื่อไม่ให้ระบุตัวบุคคลนั้นได้ ดูข้อมูลเพิ่มเติมได้ที่รหัสอุปกรณ์ |
isAdsPersonalizationAllowed |
อนุญาตให้ใช้การปรับโฆษณาตามโปรไฟล์ของผู้ใช้หรือไม่ |
หากผู้ใช้มีสิทธิ์ใช้การปรับโฆษณาตามโปรไฟล์ของผู้ใช้ isAdsPersonalizationAllowed จะแสดงผลเป็น true หากผู้ใช้ไม่มีสิทธิ์ใช้การปรับโฆษณาตามโปรไฟล์ของผู้ใช้ isAdsPersonalizationAllowed จะแสดงผลเป็น false isAdsPersonalizationAllowed จะแสดงผลเป็น (not set) หาก Google Analytics ไม่สามารถแสดงผลว่าผู้ใช้รายนี้มีสิทธิ์ใช้การปรับโฆษณาตามโปรไฟล์ของผู้ใช้หรือไม่ ผู้ใช้ที่ isAdsPersonalizationAllowed แสดงผลเป็น (not set) อาจมีสิทธิ์หรือไม่มีสิทธิ์รับโฆษณาที่ปรับตามโปรไฟล์ของผู้ใช้ สำหรับโฆษณาที่ปรับตามโปรไฟล์ของผู้ใช้ คุณควรจัดการผู้ใช้ที่ isAdsPersonalizationAllowed = (not set) ให้เหมือนกับ isAdsPersonalizationAllowed = false เนื่องจากในกรณีทั่วไปโดยส่วนใหญ่ (not set) บางแถวจะรวมผู้ใช้ที่ไม่มีสิทธิ์ใช้การปรับโฆษณาตามโปรไฟล์ของผู้ใช้ไว้ด้วย ระบบจะยังใช้ผู้ใช้ที่ isAdsPersonalizationAllowed = false สำหรับ Use Case ที่ไม่ใช่การโฆษณาได้อยู่ เช่น การทดสอบ A/B และการสำรวจข้อมูล |
isLimitedAdTracking |
จำกัดการติดตามโฆษณา |
การตั้งค่า "จำกัดการติดตามโฆษณา" ของอุปกรณ์ ค่าที่เป็นไปได้ ได้แก่ true , false และ (not set) isLimitedAdTracking จะแสดงผลเป็น (not set) หาก Google Analytics แสดงผลการตั้งค่า "จํากัดการติดตามโฆษณา" ของอุปกรณ์นี้ไม่ได้ |
userId |
User ID |
รหัสผู้ใช้ที่ระบุสำหรับผู้ใช้รายนี้ในการติดแท็ก ดูข้อมูลเพิ่มเติมได้ที่วัดกิจกรรมในแพลตฟอร์มต่างๆ ด้วย User-ID หากเปิดการเก็บรวบรวมข้อมูลที่ได้จากผู้ใช้ ระบบจะส่งข้อมูลที่ได้จากผู้ใช้พร้อมกับ User-ID ไปยัง Google Analytics ในการติดแท็กเพื่อปรับปรุงการวัด ดูข้อมูลเพิ่มเติมได้ที่การเก็บรวบรวมข้อมูลที่ได้จากผู้ใช้ userId จะแสดงรหัสผู้ใช้ที่ระบุในการติดแท็ก ไม่ว่าจะเปิดใช้ข้อมูลที่ได้จากผู้ใช้สําหรับพร็อพเพอร์ตี้หรือไม่ก็ตาม |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]