Google タグ(gtag.js)パラメータ リファレンス
次の表は、config
コマンドで構成、set
コマンドで値の設定、event
コマンドで渡すことが可能なパラメータをまとめたものです。
各サービスのパラメータの詳細については、対応するドキュメントをご覧ください。
control パラメータ
パラメータ |
値のタイプ |
値の例 |
説明 |
groups |
文字列または文字列の配列 |
'default,vendors' |
ターゲットを 1 つ以上のグループに割り当てるために config コマンドで使用されます。 |
send_to |
文字列または文字列の配列 |
'G-XXXXXX' |
イベントデータを受け取るターゲット アカウントまたはプロパティを設定します。 |
event_callback |
関数 |
function() { form.submit(); } |
event コマンドの処理が完了したときに呼び出される JavaScript コールバック関数。 |
event_timeout |
整数 |
2000 |
event_callback に使用されるタイムアウト(ミリ秒)。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-02-06 UTC。
[null,null,["最終更新日 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"]]