บทแนะนํา: ใช้ข้อมูลจากบุคคลที่หนึ่งเพื่อวัด Conversion ของ Google Ads จาก App Campaign ของ iOS
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
บทแนะนำวิธีแก้ปัญหา
การวัด Conversion ที่เกิดขึ้นบนอุปกรณ์เคลื่อนที่ของ Google ช่วยเพิ่มจํานวน Conversion ที่สังเกตได้จาก App Campaign ของ iOS ในขณะที่ยังคงรักษาข้อมูลส่วนตัวของผู้ใช้ให้เป็นส่วนตัว ในบทแนะนำนี้ คุณจะได้เรียนรู้วิธีการทำงานของโซลูชันและทําตามขั้นตอนที่จําเป็นในการใช้งาน
ฟีเจอร์นี้ทำงานอย่างไร
การวัด Conversion ที่เกิดขึ้นบนอุปกรณ์เคลื่อนที่จะช่วยวัดการติดตั้งแอปและการกระทําในแอปจาก App Campaign ของ iOS SDK ของ Google Analytics สําหรับ Firebase จะระบุแหล่งที่มาในอุปกรณ์โดยใช้ข้อมูลประจําตัวของผู้ใช้ที่ได้รับจากประสบการณ์การลงชื่อเข้าใช้ของแอป เราจะซ่อนข้อมูลประจําตัวของผู้ใช้ผ่านวิธี Conversion ในอุปกรณ์เพื่อไม่ให้ข้อมูลส่วนบุคคลที่ระบุตัวบุคคลนั้นได้หลุดออกจากอุปกรณ์ของผู้ใช้
หากต้องการใช้เทคโนโลยีนี้ คุณต้องมีอีเมลหรือหมายเลขโทรศัพท์ที่ผู้ใช้ให้ไว้และให้ความยินยอม Google Analytics สำหรับ Firebase SDK จะใช้อีเมลหรือหมายเลขโทรศัพท์ผ่าน initiateOnDeviceConversionMeasurement()
API เพื่อระบุแหล่งที่มา ข้อมูลส่วนบุคคลนี้จึงไม่มีการส่งออกจากอุปกรณ์ในลักษณะที่ระบุตัวตนผู้ใช้หรืออุปกรณ์ได้ ฟีเจอร์นี้ใช้ได้กับแอปที่ใช้ iOS 12 ขึ้นไป
คุณสามารถใช้ Firebase Authentication เพื่ออนุญาตให้ผู้ใช้ลงชื่อเข้าใช้แอปโดยใช้วิธีการลงชื่อเข้าใช้อย่างน้อย 1 วิธี เมื่อผสานรวมกับ Firebase Authentication แล้ว คุณจะรับอีเมลหรือหมายเลขโทรศัพท์ของผู้ใช้ที่ลงชื่อเข้าใช้เพื่อส่งไปยัง Google Analytics ได้สำหรับ Firebase SDK
ผลิตภัณฑ์และฟีเจอร์ที่ใช้ในบทแนะนำนี้
Google Ads
Google Ads ช่วยเพิ่มจํานวนการติดตั้ง รับข้อมูลเชิงลึกที่ละเอียดเกี่ยวกับ Conversion ของโฆษณา และใช้งานแคมเปญโฆษณาที่กําหนดเป้าหมายโดยใช้กลุ่มเป้าหมาย Google Analytics เพื่อดึงดูดฐานผู้ใช้
Google Analytics
Google Analytics ให้ข้อมูลเชิงลึกเกี่ยวกับเมตริกการมีส่วนร่วมของผู้ใช้ การคงผู้ใช้ไว้ และการสร้างรายได้ เช่น รายได้ทั้งหมด รายได้จากAdMob รายได้จากการซื้อ และอื่นๆ อีกมากมาย นอกจากนี้ คุณยังสร้างกลุ่มเป้าหมายและกลุ่มผู้ใช้ได้ด้วย
|
Firebase Authentication
Firebase Authentication มีบริการแบ็กเอนด์, SDK ที่ใช้งานง่าย และไลบรารี UI ที่สร้างไว้ล่วงหน้าเพื่อตรวจสอบสิทธิ์ผู้ใช้ในแอปของคุณ โดยรองรับการตรวจสอบสิทธิ์โดยใช้รหัสผ่าน หมายเลขโทรศัพท์ ผู้ให้บริการข้อมูลประจำตัวแบบรวมศูนย์ยอดนิยม (เช่น Google, Facebook และ Twitter) และอื่นๆ
|
ภาพรวมบทแนะนำ
ไปที่บทแนะนำแบบทีละขั้นตอนโดยตรง
ติดตั้งใช้งานประสบการณ์การลงชื่อเข้าใช้
ใช้ Firebase Authentication เพื่อสร้างประสบการณ์การลงชื่อเข้าใช้
หรือจะรวม Firebase Authentication เข้ากับประสบการณ์การลงชื่อเข้าใช้ที่กำหนดเองก็ได้
รับอีเมลหรือหมายเลขโทรศัพท์ของผู้ใช้ในอินเทอร์เฟซการลงชื่อเข้าใช้
ผสานรวม Google Analytics ในแอป
ทำตามขั้นตอนการผสานรวมสำหรับ Cocoapods, Swift Package Manager หรือการติดตั้งด้วยตนเอง
เปิดใช้โหมดแก้ไขข้อบกพร่องใน Xcode (ไม่บังคับ)
เริ่มการวัด Conversion ที่เกิดขึ้นบนอุปกรณ์เคลื่อนที่
เรียกใช้ Measurement API ในอุปกรณ์ด้วยอีเมลหรือหมายเลขโทรศัพท์ที่คุณรวบรวม
ยืนยันฟังก์ชัน API ด้วยบันทึกการแก้ไขข้อบกพร่อง
แก้ปัญหาและจัดการปัญหาที่พบได้ทั่วไป
หากจำเป็น ให้แก้ปัญหาด้วยความช่วยเหลือจากแหล่งข้อมูลการสนับสนุนสำหรับ Firebase Authentication และ Google Analytics
จัดการปัญหาที่พบได้ทั่วไป
สิ่งที่ต้องมี
ขั้นตอนที่ 1: ใช้ประสบการณ์การลงชื่อเข้าใช้arrow_forward_ios
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# Tutorial: Use first-party data to measure Google Ads conversions from your iOS app campaigns\n\n### **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\n#### How 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|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\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\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\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*** ** * ** ***"]]