Method: properties.setAutomatedGa4ConfigurationOptOut
Menetapkan status keikutsertaan untuk proses penyiapan GA4 otomatis untuk properti UA. Catatan: tindakan ini tidak berpengaruh pada properti GA4.
Permintaan HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:setAutomatedGa4ConfigurationOptOut
URL menggunakan sintaksis gRPC Transcoding.
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Representasi JSON |
{
"property": string,
"optOut": boolean
} |
Kolom |
property |
string
Wajib. Properti UA untuk menetapkan status tidak ikut. Perhatikan bahwa permintaan ini menggunakan ID properti internal, bukan ID pelacakan dalam format UA-XXXXXX-YY. Format: properties/{internalWebPropertyId} Contoh: properties/1234
|
optOut |
boolean
Status yang akan ditetapkan.
|
Isi respons
Jika berhasil, isi respons akan kosong.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/analytics.edit
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-01-14 UTC.
[null,null,["Terakhir diperbarui pada 2025-01-14 UTC."],[[["This process sets the automated Google Analytics 4 setup opt-out status for a Universal Analytics property, having no effect on GA4 properties."],["The request requires specifying the Universal Analytics property ID and the desired opt-out status (true or false)."],["Successful requests will receive an empty response body."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["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"]]