Referensi parameter tag Google (gtag.js)
Tabel berikut menjelaskan parameter yang dapat Anda konfigurasi menggunakan perintah config
, tetapkan menggunakan perintah set
, atau teruskan menggunakan perintah event
.
Untuk informasi selengkapnya tentang parameter khusus produk, baca dokumentasi terkait:
Parameter kontrol
Parameter |
Jenis nilai |
Nilai contoh |
Deskripsi |
groups |
string atau array string |
'default,vendor' |
Digunakan oleh perintah config untuk menetapkan target ke satu atau beberapa grup. |
send_to |
string atau array string |
'G-XXXXXX' |
Menetapkan akun/properti target yang akan menerima data peristiwa. |
event_callback |
fungsi |
function() { form.submit(); } |
Fungsi callback JavaScript yang dipanggil saat pemrosesan perintah event telah selesai. |
event_timeout |
bilangan bulat |
2000 |
Waktu tunggu digunakan untuk event_callback dalam milidetik. |
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 2024-02-06 UTC.
[null,null,["Terakhir diperbarui pada 2024-02-06 UTC."],[[["The `config`, `set`, and `event` commands allow you to configure parameters for controlling data collection and processing."],["Parameters include specifying target groups (`groups`), destination for event data (`send_to`), callback functions (`event_callback`), and timeout for callbacks (`event_timeout`)."],["Detailed information on product-specific parameters can be found in the linked documentation for Google Ads, Campaign Manager, Search Ads 360, and Google Analytics."]]],["The `config`, `set`, and `event` commands use configurable parameters. `groups` assigns a target to one or more groups. `send_to` specifies the target account or property. `event_callback` triggers a JavaScript function upon completion of an `event` command. `event_timeout` sets the timeout for the `event_callback` in milliseconds. Product-specific parameters can be found in the documentation for Google Ads conversions, Google Ads remarketing, Campaign Manager and Search Ads 360, and Google Analytics.\n"]]