クラリティー(Clarity )の設定、セットアップよりGoogle Analytics Integration のGet Started をクリック。
*前提としてクラリティーのタグはGTMで設定済みとします。
![Get Started](https://www.asiastars.org/wp-content/uploads/2022/06/image-4-1024x837.png)
Googleアカウント選択
![アカウント選択](https://www.asiastars.org/wp-content/uploads/2022/06/image-14-1024x791.png)
チェックボックスにチェック(Googleアナリティクスの管理エンティティと Googleアナリティクスの データ参照、ダウンロード) 許可クリック
![Googleアナリティクスの管理エンティティ等チェック](https://www.asiastars.org/wp-content/uploads/2022/06/image-15-668x1024.png)
いったん戻って「Finish Setup」クリック
![Finish Setup](https://www.asiastars.org/wp-content/uploads/2022/06/image-16-1024x884.png)
ダイアログボックス表示で、manually をクリック
![manually](https://www.asiastars.org/wp-content/uploads/2022/06/image-5.png)
別のダイアログボックスが表示で、必要項目入力
*下記イメージはダミー文字( 但しClarity_Playback_URL は同じもの入力)。各入力ID説明は後述
![what do you wanna connect to?](https://www.asiastars.org/wp-content/uploads/2022/06/image-6-565x1024.png)
friendly name :GA4で設定した名前をそのまま入力。アナリティクスの設定画面。プロパティー設定クリックしてプロパティー名をコピペしても良い。
![friendly name](https://www.asiastars.org/wp-content/uploads/2022/06/image-34.png)
Account ID:GA4のアカウント設定からアカウントID下にある番号
![アカウントID](https://www.asiastars.org/wp-content/uploads/2022/06/image-7-1024x656.png)
Web Property ID:GA4プロパティー、データストリームから当該データストリーム(例:https://asiastars.org)クリック。測定ID下のあるID (G-*****:)
![データストリーム](https://www.asiastars.org/wp-content/uploads/2022/06/image-10.png)
![測定ID](https://www.asiastars.org/wp-content/uploads/2022/06/image-9-1024x171.png)
GA4 Property ID:GA4プロパティー、プロパティー設定からプロパティーID下にある番号
![プロパティーID](https://www.asiastars.org/wp-content/uploads/2022/06/image-8-1024x401.png)
Demention ID:GA4設定、カスタム定義、カスタムディメンション作成、ダイアログボックス「 Clarity_Playback_URL 」入力。範囲はイベント。イベントパラメーターも 「 Clarity_Playback_URL 」入力。(パラメーターの項目は選択するイメージだが入力もできる)保存。
![カスタム定義](https://www.asiastars.org/wp-content/uploads/2022/06/image-11.png)
![カスタムディメンションを作成](https://www.asiastars.org/wp-content/uploads/2022/06/image-12.png)
![Clarity_Playback_URL](https://www.asiastars.org/wp-content/uploads/2022/06/image-13-1024x439.png)
全て入力したら「Save」
以上で終了です。
参考URL:https://docs.microsoft.com/en-us/clarity/ga-integration