0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GA4カスタムイベントにオプション情報を付与して追加の情報を得る方法

Posted at

GA4でカスタムイベントにオプションパラメータを設定

GoogleAnalyticsで以下のように進みます。

管理 > プロパティ設定 > データの表示 > カスタム定義 > カスタムディメンションを作成

ディメンション名にオプションパラメータの論理名を設定。
範囲は「イベント」
イベントパラメータはgtag関数で設定する内容を設定。
※半角英数字とアンダーバーのみで構成

image.png

gtag関数にオプションパラメータを追加

gtag('event', '<event_name>', {
    '<custom_paramater>': 'hoge'
})

custom_paramaterはGoogleAnalytics側で設定した値。

これを発火させたいポイントに埋め込みます。
今回はeast west north southの情報を付加してみます。

gtag('event', 'rendering_first', {
    'user_group': 'east'
})

データの取得や反映までに数日かかるので気長に待ちましょう。

反映された後に、フィルタリングしてよしなに利用しましょう。

レポートの確認

image.png

レポート > エンゲージメント > イベント > フィルタを追加

image.png

フィルタリングしたい値を選択。

image.png

以上

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?