כדאי לנסות את שרת ה-MCP ל-Google Analytics. אפשר להתקין מ-
GitHub, ולקרוא את
ההודעה לפרטים נוספים.
Method: properties.setAutomatedGa4ConfigurationOptOut
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ההגדרה הזו מגדירה את סטטוס ביטול ההסכמה בתהליך ההגדרה האוטומטי של GA4 בנכס UA. הערה: לא תהיה לכך השפעה על נכס GA4.
בקשת HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:setAutomatedGa4ConfigurationOptOut
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
ייצוג JSON |
{
"property": string,
"optOut": boolean
} |
שדות |
property |
string
חובה. נכס ה-UA שבו רוצים להגדיר את סטטוס ביטול ההסכמה. לתשומת ליבכם: הבקשה הזו משתמשת במזהה הנכס הפנימי, ולא במזהה לצורכי המעקב בפורמט UA-XXXXXX-YY. פורמט: properties/{internalWebPropertyId} דוגמה: properties/1234
|
optOut |
boolean
הסטטוס שיש להגדיר.
|
גוף התשובה
אם הביצוע יהיה תקין, גוף התגובה יהיה ריק.
היקפי ההרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/analytics.edit
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],["This document details how to set the opt-out status for the automated GA4 setup process for a Universal Analytics (UA) property via a POST HTTP request. The request URL is `https://analyticsadmin.googleapis.com/v1alpha/properties:setAutomatedGa4ConfigurationOptOut`. The request body requires a JSON structure containing the UA property's internal ID and a boolean value (`optOut`) to set the opt-out status. A successful request returns an empty response body, and it requires `analytics.edit` authorization scope.\n"],null,[]]