Dengan mempertimbangkan properti UA tertentu, mencari properti GA4 yang terhubung dengannya. Catatan: properti ini tidak dapat digunakan dengan properti GA4.
Permintaan HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/properties:fetchConnectedGa4Property
Wajib. Properti UA yang akan mencari properti GA4 yang terhubung. Perhatikan bahwa permintaan ini menggunakan ID properti internal, bukan ID pelacakan formulir UA-XXXXXX-YY. Format: properties/{internal_web_property_id} Contoh: properties/1234
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Respons untuk mencari properti GA4 yang terhubung ke properti UA.
Jika berhasil, isi respons memuat data dengan struktur berikut:
Representasi JSON
{"property": string}
Kolom
property
string
Properti GA4 yang terhubung ke properti UA. String kosong ditampilkan saat tidak ada properti GA4 yang terhubung. Format: properties/{property_id} Contoh: properties/1234
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-26 UTC."],[],["This document details how to find a connected GA4 property using its associated UA property. A `GET` request to `https://analyticsadmin.googleapis.com/v1alpha/properties:fetchConnectedGa4Property` is made. The request requires a `property` query parameter, which is the UA property's internal ID, formatted as `properties/{internal_web_property_id}`. The request body must be empty. The response body returns a JSON structure containing a `property` field with the GA4 property ID or an empty string if none exists. The request needs authorization with specific OAuth scopes.\n"]]