チュートリアル: ファーストパーティ データを使用して、iOS アプリ キャンペーンの Google 広告コンバージョンを測定する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ソリューションのチュートリアル
Google のオンデバイスのコンバージョン測定では、ユーザーの個人データのプライバシーを確保しながら、測定可能な iOS アプリ キャンペーンからのコンバージョン数を改善します。このチュートリアルでは、ソリューションの仕組みと、実装に必要な手順について説明します。
仕組み
オンデバイスのコンバージョン測定は、iOS アプリ キャンペーンのアプリのインストールとアプリ内ユーザー行動を測定するのに役立ちます。Firebase SDK の Google Analytics は、アプリのログイン プロセスで提供されたユーザーの ID を使用して、オンデバイス アトリビューションを行います。ユーザーの ID は、オンデバイス コンバージョンのアプローチでは非表示となるため、個人を特定できる情報がユーザーのデバイスから送られることは決してありません。
この技術を使用するには、ユーザーから同意を得たメールアドレスまたは電話番号が必要です。initiateOnDeviceConversionMeasurement()
API を介して、Firebase SDK の Google Analytics がメールアドレスまたは電話番号を使用してアトリビューションを行います。この個人データは、ユーザーまたはデバイスを特定できる方法でデバイスから送信されることはありません。この機能は、iOS 12 以降を搭載したアプリで動作します。
Firebase Authentication を使用すると、ユーザーがアプリにログインする際に、1 つ以上のログイン方法を使用できるようになります。Firebase Authentication と統合すると、ログイン中のユーザーのメールアドレスまたは電話番号を取得して、Firebase SDK の Google Analytics に送信できます。
このチュートリアルで使用するプロダクトと機能
Google Ads
Google Ads を使用すると、インストールを促進し、広告のコンバージョンに対する詳細な分析情報を得て、Google Analytics オーディエンスを活用してターゲットを絞り込んだキャンペーンを実施することで、ユーザーの関心を引き付けることができます。
Google Analytics
Google Analytics を使用すると、ユーザー エンゲージメント、維持率、収益化に関する指標(総収益、AdMob の収益、購入による収益など)について分析情報を得ることができます。また、ユーザー オーディエンスやセグメントを作成することもできます。
|
Firebase Authentication
Firebase Authentication には、バックエンド サービス、使いやすい SDK、アプリでのユーザー認証に使用できる UI ライブラリが用意されています。これによって、パスワード、電話番号、一般的なフェデレーション ID プロバイダ(Google、Facebook、Twitter)などを使用した認証を行うことができます。
|
チュートリアルの概要
詳細なチュートリアルに移動する
ログイン エクスペリエンスを実装する
Firebase Authentication を使用してログイン エクスペリエンスを構築します。
または、Firebase Authentication をカスタムのログイン エクスペリエンスと組み合わせることもできます。
ログイン インターフェースで、ユーザーのメールアドレスまたは電話番号を取得します。
Google Analytics をアプリに統合する
Cocoapods、Swift Package Manager、または手動インストールの統合手順に沿って操作します。
必要に応じて、Xcode でデバッグモードを有効にします。
オンデバイスのコンバージョン測定を開始する
収集したメールアドレスまたは電話番号を使用して、デバイス上の Measurement API を呼び出します。
デバッグログを使用して API 関数を確認する。
一般的な問題のトラブルシューティングと対応
必要に応じて、Firebase Authentication と Google Analytics のサポート リソースを使用してトラブルシューティングを行います。
よくある問題に対応する。
必要なもの
ステップ 1: ログイン エクスペリエンスを実装するarrow_forward_ios
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-09-06 UTC。
[null,null,["最終更新日 2025-09-06 UTC。"],[],[],null,["**Solution tutorial**\n\nGoogle's on-device conversion measurement improves the number of observable\nconversions from your iOS app campaigns while keeping users' personal data\nprivate. In this tutorial, you'll learn how the solution works and follow along\nwith the steps needed to implement it.\n\nHow does this work?\n\nOn-device conversion measurement helps measure app installs and in-app actions\nfrom your iOS app campaigns. The Google Analytics for Firebase SDK\nperforms on-device attribution using a user's identity provided by your app's\nsign-in experience. The user's identity is hidden through our on-device\nconversion approach so that no personally identifiable information ever leaves\nthe user's device.\n\nTo use this technology, you need a consented, user-provided email address or\nphone number. Through the `initiateOnDeviceConversionMeasurement()` API, the\nemail address or phone number is used by the Google Analytics for\nFirebase SDK for attribution such that this personal data is never sent off the\ndevice in a way that can identify the user or device. The feature works on apps\nrunning iOS 12+.\n\nYou can use Firebase Authentication to allow users to sign in to your app using\none or more sign-in methods. Once integrated with Firebase Authentication, you can get\nthe signed-in user's email or phone number to send to the Google Analytics\nfor Firebase SDK.\n\nProducts and features used in this tutorial\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Google Ads \u003e [Google Ads](/docs/ads) lets you drive installs, gain deep insights into ad conversions, and run targeted ad campaigns using Google Analytics audiences to engage your user base. Google Analytics \u003e [Google Analytics](/docs/analytics) gives you insight into user engagement, retention, and monetization metrics like total revenue, AdMob revenue, purchase revenue, and much more. It also allows you to create user audiences and segments. | Firebase Authentication \u003e [Firebase Authentication](/docs/auth) provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app. It supports authentication using passwords, phone numbers, popular federated identity providers (like Google, Facebook, and Twitter), and more. |\n\n\u003cbr /\u003e\n\nTutorial overview\n\n[Go\ndirectly to the step-by-step tutorial](/docs/tutorials/ads-ios-on-device-measurement/step-1)\n\n1. [**Implement\n a sign-in experience**](/docs/tutorials/ads-ios-on-device-measurement/step-1)\n\n 1. Use Firebase Authentication to build a sign-in experience.\n\n 2. Or, combine Firebase Authentication with your custom sign-in experience.\n\n 3. In your sign-in interface, get the user's email address or phone number.\n\n2. [**Integrate\n Google Analytics into your app**](/docs/tutorials/ads-ios-on-device-measurement/step-2)\n\n 1. Follow integration steps for Cocoapods, Swift Package Manager or manual\n installation.\n\n 2. Optionally, enable debug mode in Xcode.\n\n3. [**Initiate\n on-device conversion measurement**](/docs/tutorials/ads-ios-on-device-measurement/step-3)\n\n 1. Call the on-device measurement API with the email or phone number you\n gathered.\n\n 2. Verify API function with debug logs.\n\n4. [**Troubleshoot and\n handle common issues**](/docs/tutorials/ads-ios-on-device-measurement/step-4)\n\n 1. If needed, troubleshoot with the help of support resources for\n Firebase Authentication and Google Analytics.\n\n 2. Handle some commonly-encountered issues.\n\nWhat you'll need\n\n- Your own app that can run on iOS 12 or higher\n\n- Your app registered as a Firebase App that's linked to Google Analytics\n and Ads\n\n- Your preferred IDE\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\u003cbr /\u003e\n\n[**Step 1** : Implement a sign-in experiencearrow_forward_ios](/docs/tutorials/ads-ios-on-device-measurement/step-1)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n*** ** * ** ***"]]