Google Analytics 4の設定
Google Analytics 4はAdjustと連携しているアナリティクスパートナーです。Adjustとの連携により、 Google Analytics 4は自動コールバックを通じてデータを受信します。このデータをパートナーのツールで使用して、分析データとインサイトを得ることができます。
ここでは、Google Analytics 4とアプリ計測を設定する方法を説明します。 連携を有効化し、AdjustがGoogle Analytics 4と共有できるデータを選択する方法をご確認ください。
事前準備
要件
- Adjustアカウントの管理者、編集者またはカスタム編集者のアクセス権限。
- Adjust SDK v4.0.0以降を実装することで、SDKパラメーターをGoogle Analytics 4パラメーターにマッピングできます。この機能を使用するには、以下のリンク先のガイドに従ってください。
iOS | Android | Windows | Unity | React Native | Flutter | Adobe Air | Cordova | Marmalade | Xamarin | Cocos2d-x | Titanium | Corona
認証情報
Firebase App ID (for mobile apps), Measurement ID (for web apps), API Secret
- 認証情報を確認するには、Google Analytics 4の担当者にお問い合わせください。
Google Analytics 4のダッシュボードにて:
FirebaseアプリIDを取得する方法:
- Firebaseコンソールに移動します。
- 該当するプロジェクトを見つけてクリックします。
- 歯車アイコンをクリックし、左パネルの「Project Overview」の横にある「Project settings」をクリックします。
- 「Your apps」でアプリを選択し、「App ID」でFirebaseアプリIDを見つけます。
APIシークレットを取得する方法:
- Google Analyticsのダッシュボードに移動します。
- 管理(Admin) > データの収集と修正(Data collection and modification) > データストリーム(Data streams)を選択します。
- アプリのデータストリームを選択し、「Measurement Protocol API Secrets」> 「secret value」の順にクリックして、APIシークレットを見つけます。
- APIシークレットが存在しない場合、Measurement Protocol API Secretsにて「作成(Create)」を選択し、名前を入力して「作成(Create)」を選択します。
Campaign LabでGoogle Analytics 4とアプリを選択
- Campaign Labにて、 パートナー(Partner) を選択します。
- 新規パートナー(New partner) > Google Analytics 4 を選択します。 次へ(Next) を選択して、次の画面に移動します。
- アプリの選択(App selection) 画面で、リンクを作成したいアプリを選択し、 Google Analytics 4のデータ共有をするため連携を有効化します。
- 次(NEXT) を選択します。
データ共有を有効化
データ共有を有効化すると、Google Analytics 4との連携が有効化されます。データ共有を有効化する方法は以下のとおりです:
- Firebase App ID (for mobile apps), Measurement ID (for web apps), API Secretを入力します。
Google Analytics 4とのデータ共有を有効化すると、デフォルトでは、Google Analytics 4に以下のデータが自動送信されます:
- インストール
- リアトリビューション
データ共有オプションの設定
マルチプラットフォームアプリで複数のプラットフォームを対象にデータ共有を有効にしている場合は、以下のことが可能です:
- プラットフォーム固有の設定を使用(Use platform-specific settings) を選択すると、プラットフォームレベルでデータ共有オプションを個別に設定できます。
- グローバル設定を使用(Use global settings) を選択して、複数のプラットフォームに同じデータ共有設定を行います。
デフォルトで共有するデータ(What will be shared by default?) にて、Adjustがデフォルトで Google Analytics 4と共有するアクティビティを確認してください。
- インストール
- リアトリビューション
追加データの送信
コールバックによりGoogle Analytics 4と共有するデータ量とタイプを選択します。 Google Analytics 4はこの情報を使用して、パフォーマンスを最適化することができます。
追加データを送信するには、以下を確認またはカスタマイズしてください:
アプリでGoogle Analytics 4を有効化
設定のレビュー(Setup review) 画面では 、選択した内容を確認できます。前に戻って、以下の変更も行えます:
- 選択したアプリ
- データ共有オプション
パートナーを有効化(Enable partner) を選択して、アプリで Google Analytics 4 を有効化します。アナリティクスパートナーはキャンペーンのリンクを処理しません。一度有効にすると、アトリビューションおよびアプリ内イベントデータが自動コールバックで送信されます。
パートナー固有の設定手順
Our Google Analytics 4 (GA4) integration allows Adjust to send cross-network attribution data to Google Analytics. You should enable this integration if you are already logging conversions with the Google Analytics for Firebase SDK or using Google Analytics 4 for web. Adjust leverages the campaign_details event of the Measurement Protocol API to send conversions along with attribution details.
Requirements
This integration supports both mobile apps and web-based apps:
- For mobile apps:
- The Firebase SDK must be integrated into your app.
- A Firebase App ID is required.
- You must implement session partner parameters within the Adjust SDK to capture and send Google Analytics 4’s app_instance_id.
- You should set app_instance_idbefore initializing the Adjust SDK.
- For web-based apps:
- A Measurement ID from your GA4 web property is required.
- You must implement session partner parameters within the Adjust SDK to capture and send Google Analytics 4’s client_id.
- You should set client_idbefore initializing the Adjust SDK.
These identifiers (app_instance_id for mobile, client_id for web) are essential because Google Analytics 4 uses them to uniquely identify each user or app instance. If these values are not properly tracked and passed, Adjust will not be able to fire callbacks to Google Analytics.
Follow the guides linked below to use this feature:
iOS / Android / Unity / Flutter / React Native
Additional Notes
- Organic traffic is not shared via this integration.
- Due to differences in attribution methodology, Google Analytics does not accept conversions older than 3 days.
- Depending on your Adjust Link attribution windows, you might see discrepancies because some conversions may not be reported in GA4.
About Session ID
You can send the Firebase Session ID through the session partner parameter ga4_session_id
About User ID
You can send the Firebase User ID through the session partner parameter ga4_user_id
Google Analytics 4に転送されるパラメーター一覧
Adjustは、Google Analytics 4に以下のパラメーター(データポイント)をコールバック送信するよう要求されています。
| プレースホルダー | 情報 |
{adgroup_name} | トラッカーから取得したアドグループ名 |
{campaign_name} | トラッカーから取得したキャンペーン名 |
{creative_name} | トラッカーから取得したクリエイティブ名 |
{engagement_time} | エンゲージメントのタイムスタンプ |
{network_name} | トラッカーから取得したネットワーク名 |