ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Method: properties.fetchAutomatedGa4ConfigurationOptOut
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ดึงข้อมูลสถานะการเลือกไม่ใช้ของกระบวนการตั้งค่า GA4 อัตโนมัติสําหรับพร็อพเพอร์ตี้ UA หมายเหตุ: การดําเนินการนี้ไม่มีผลต่อพร็อพเพอร์ตี้ GA4
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut
URL ใช้ไวยากรณ์การแปลง gRPC
เนื้อหาของคำขอ
เนื้อหาของคำขอมีข้อมูลที่มีโครงสร้างต่อไปนี้
การแสดง JSON |
{
"property": string
} |
ช่อง |
property |
string
ต้องระบุ พร็อพเพอร์ตี้ UA เพื่อดูสถานะการเลือกไม่ใช้ โปรดทราบว่าคำขอนี้ใช้รหัสพร็อพเพอร์ตี้ภายใน ไม่ใช่รหัสติดตามในรูปแบบ UA-XXXXXX-YY รูปแบบ: พร็อพเพอร์ตี้/{internalWebPropertyId} เช่น พร็อพเพอร์ตี้/1234
|
เนื้อหาการตอบกลับ
ข้อความตอบกลับสําหรับดึงข้อมูลสถานะการเลือกไม่ใช้สําหรับกระบวนการตั้งค่า GA4 อัตโนมัติ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"optOut": boolean
} |
ช่อง |
optOut |
boolean
สถานะเลือกไม่ใช้สําหรับพร็อพเพอร์ตี้ UA
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth รายการใดรายการหนึ่งต่อไปนี้
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["Fetches the automated GA4 setup opt-out status for a Universal Analytics (UA) property, having no impact on GA4 properties."],["The request requires the internal property ID of the UA property, not the tracking ID."],["The response indicates whether the automated GA4 setup is opted out for the specified UA property."],["Requires authorization with either `analytics.readonly` or `analytics.edit` scope."]]],["The core action is to fetch the opt-out status of a UA property for the automated GA4 setup. This is done via a POST request to `https://analyticsadmin.googleapis.com/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut`. The request body requires a JSON object with the `property` field specifying the UA property's internal ID. The response body contains a JSON object with the `optOut` field indicating the property's opt-out status. Two authorization scopes are available:`analytics.readonly` or `analytics.edit`.\n"]]