0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

同じタグマネージャーで複数サイトドメインを別で計測する

Posted at

状態

一つのGoogleアナリティクスにサブドメインで作られた各サイトドメインのプロパティが入っている。
これらのサイトを一つのタグマネコンテナで管理したい。

1.同じGタグコードを各サイトに入れる

このままだとすべてのタグが全てのサイトで発火してしまうので次の処理を行う

2.タグマネージャーへ移動、各サイトのタグを作成し、各々に各サイトのプロパティから拾ったトラッキングコードを入れる

トラッキングコードは、データストリームより取得可能(GA4)

3.トリガーを設定

いつもならAllPageviewと設定するところを、一部のページを選択し、
{{Page Host Name}}を選択、等しいを選択、該当計測ドメインを入力で、
計測したいページを開いた時にだけ計測したいタグが発火するようになる。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?