Upgrade to Pro — share decks privately, control downloads, hide ads and more …

アプリ流入用広告のデータ分析基盤を整える
~FirebaseとiAd.frameworkの連携~

 アプリ流入用広告のデータ分析基盤を整える
~FirebaseとiAd.frameworkの連携~

アプリ流入用広告のデータ分析基盤を整える

~FirebaseとiAd.frameworkの連携~

Dcebc7211303cb2ad89d7b011af920a1?s=128

Marina Nakagawa

April 10, 2019
Tweet

Transcript

  1. 1 Otemachi.swift #03 ΞϓϦྲྀೖ༻޿ࠂͷσʔλ෼ੳج൫Λ੔͑Δ
 ~FirebaseͱiAd.frameworkͷ࿈ܞ~ ೔ຊܦࡁ৽ฉࣾɹத઒ ສᣦಸ

  2. 2 Marina Nakagawa @marina10172013 ೔ຊܦࡁ৽ฉࣾͷiOSΤϯδχΞ ిࢠ൛ΞϓϦɼࢴ໘ϏϡʔΞʔΞϓϦͷ։ൃ ࠷ۙ͸޿ࠂɺσʔλ෼ੳपΓ΋͸͡Ί·ͨ͠

  3. 3 ຊ೔࿩͢͜ͱ ޿ࠂྲྀೖʹ͓͚Δిࢠ൛ΞϓϦͷ՝୊ 1 2 3 σʔλ෼ੳج൫ͷ࢓૊Έͱ࿈ܞํ๏ ͜Ε͔Βͷࢪࡦͱ·ͱΊ

  4. 4 ޿ࠂྲྀೖʹ͓͚Δిࢠ൛ΞϓϦͷ՝୊ 1

  5. 7 ࣗ෼ͷ୲౰͸ iOSͱAndroid྆OSͷ ΞϓϦͷΠϯετʔϧ਺Λ޲্ͤ͞Δ !

  6. 8 ΞϓϦΛΠϯετʔϧΛͯ͠΋Β͏ͨΊʹ ͲΜͳࢪࡦΛߦ͍ͬͯ·͔͢ʁ ͦ΋ͦ΋

  7. 9 ϢʔβʔͱͷλονϙΠϯτ͸༷ʑ TV޿ࠂɺిं಺޿ࠂɺ৽ฉ޿ࠂͳͲϝσΟΞ޿ࠂ ϢχόʔαϧΞϓϦΩϟϯϖʔϯ 1 2 3 SNS 4 Apple

    Search Ads
  8. 10 ೔ܦిࢠ൛ΞϓϦͷ՝୊ πʔϧΛ࢖͑͹ɺ
 Πϯετʔϧ਺CTR(Click Through Rate)΍CPC(Cost Per Click)͸Θ͔Δ iOSͰ͋Ε͹ɺApple Search

    Adsͷίϯιʔϧ AndroidͰ͋Ε͹ɺGoolge Play Console ϢχόʔαϧΞϓϦΩϟϯϖʔϯͩͬͨΒGoogle޿ࠂ
  9. 11 ೔ܦిࢠ൛ΞϓϦͷ՝୊ Ͱ΋ɺຊ౰ʹ΍Γ͍ͨ͜ͱ͸ ϢʔβʔʹαʔϏεʹՁ஋Λײͯ͡΋Βͬͯ ೔ܦ৽ฉిࢠ൛ʹ՝ۚͯ͠ɺ࢖ͬͯ΋Β͏͜ͱ

  10. 12 ೔ܦిࢠ൛ΞϓϦͷ՝୊ Ͱ΋ɺຊ౰ʹ΍Γ͍ͨ͜ͱ͸ ϢʔβʔʹαʔϏεʹՁ஋Λײͯ͡΋Βͬͯ ೔ܦ৽ฉిࢠ൛ʹ՝ۚͯ͠ɺ࢖ͬͯ΋Β͏͜ͱ ೔ܦిࢠ൛Λߪಡͯ͘͠Ε͔ͨͲ͏͔͸
 ࣾ಺Ͱ৘ใΛ͍࣋ͬͯΔ

  11. 13 ೔ܦిࢠ൛ΞϓϦͷ՝୊ ͦͷ޿ࠂ͕ຊ౰ʹ՝ۚʹͭͳ͕ͬͨͷ͔ ͕ܭଌͰ͖͍ͯͳ͍

  12. 14 ޿ࠂͷ৘ใ ͱ ՝ۚͷ৘ใ Λ ͭͳ͛Δํ๏Λߟ͑Δ Google Apple ೔ຊܦࡁ৽ฉࣾ ͕͍࣋ͬͯΔ

    ͕͍࣋ͬͯΔ ※՝ۚ৘ใͱݸਓ৘ใ͸ඥ෇͍͓ͯΓ·ͤΜ ※ར༻ऀͷࣄલͷಉҙ͕ͳ͍ݶΓɺݸਓ৘ใΛୈࡾऀʹఏڙͤͣɺ·ͨɺݸਓ৘ใͷൢച΍ି͠ग़͠͸ߦ͍·ͤΜɻ
  13. 15 ࠓճͷൃදͰ͸Apple Sarch Ads ʹ͍ͭͯͷΈऔΓѻ͍·͢

  14. 16 σʔλ෼ੳج൫ͷ࢓૊Έͱ࿈ܞํ๏ 2

  15. 17 ࣾ಺σʔλ
 ج൫ ͘͠Έ

  16. 18 ࣾ಺σʔλ
 ج൫ "QQMF4FBSDI"ETͰ
 ޿ࠂ഑৴

  17. 19 ࣾ಺σʔλ
 ج൫ J"EGSBNFXPSLΛೖΕͯ Ϗϧυͨ͠ΞϓϦΛΠϯετʔϧ

  18. 20 ࣾ಺σʔλ
 ج൫ 'JSFCBTF4%,͕ ʮpSFCBTF@DBNQBJHOʯ Πϕϯτ໊Ͱ
 "4"ͷ৘ใ w ࢀরݩ"QQMF 

    w ϝσΟΞTFBSDI  w ΩϟϯϖʔϯJBEΩϟϯϖʔϯ໊ ΛࣗಈͰૹ৴ 

  19. 21 ࣾ಺σʔλ
 ج൫ #JH2VFSZͰ "4"ͷ৘ใ͕ೖ͍ͬͯΔ͜ͱΛ֬ೝ w ࢀরݩ"QQMF  w ϝσΟΞTFBSDI

     w ΩϟϯϖʔϯJBEΩϟϯϖʔϯ໊ ೔ܦͷ՝ۚ৘ใͱඥ෇͚ΔͨΊͷςʔϒϧΛ࡞੒ ΫΤϦͷࣗಈ࣮ߦ ೔ܦͷ՝ۚσʔλج൫ʹσʔλΛૹ৴͢Δ
  20. 22 ࣾ಺σʔλ
 ج൫ #JH2VFSZͰूܭͯ͠ૹΒΕ͖ͯͨςʔϒϧͷඥ͚ͮΛߦ͏ ࠓ·ͰͰ͖ͳ͔ͬͨΑΓৄࡉͳߦಈ෼ੳΛ͍ͨ͠ʂ 
 ※՝ۚ৘ใͱݸਓ৘ใ͸ඥ෇͍͓ͯΓ·ͤΜ ※ར༻ऀͷࣄલͷಉҙ͕ͳ͍ݶΓɺݸਓ৘ใΛୈࡾऀʹఏڙͤͣɺ
 ·ͨɺݸਓ৘ใͷൢച΍ି͠ग़͠͸ߦ͍·ͤΜɻ

  21. 23 ͘͠Έ https://support.google.com/firebase/answer/6317518?hl=ja υΩϡϝϯτͷࢀর

  22. 24 Firebase SDKΛೖΕͯɺઃఆͰը໘Ͱ
 GoolgeAdsͱBigQueryΛ࿈ܞ

  23. 25 iAd.frameworkͷಋೖ Linked Frameworks and LibrariesʹiAd.frameworkΛ͍ΕΔ͚ͩ ※ଞʹಛʹԿ΋͠ͳ͍͍ͯ͘

  24. 26 iAd.frameworkͷಋೖ υΩϡϝϯτʹ΋ಋೖʹ͍ͭͯ͸͜Ε͚͔ͩ͠ॻ͍ͯͳ͍" https://searchads.apple.com/v/advanced/help/b/docs/pdf/attribution-api.pdf

  25. 27 Firebaseଆͷಋೖ GoogleΞφϦςΟΫεͷυΩϡϝϯτʹ΋ಋೖʹ͍ͭͯ͸͜Ε͚ͩ ͔͠ॻ͍ͯͳ͍" https://developers.google.com/analytics/devguides/collection/ios/v3/optional-features?hl=ja

  26. 28 ΄ΜͱʹϑϨʔϜϫʔΫΛೖΕΔ͚ͩͰ͍͍ͷ????#

  27. 29 σόοΫํ๏ Apple Search AdsΛ։࢝ͨ࣌͠ʹ Կ΋ૹΒΕ͍ͯͳ͔ͬͨΒϚζΠɾɾɾɾɾ# Ͱ΋͔֬ΊΔํ๏͕ແ͍ɾɾɾɾɾɾ

  28. 30 Xcode σόοΫίϯιʔϧͰϩάΛݟΔ https://firebase.google.com/docs/analytics/ios/events?hl=ja

  29. 31 Firebase Debug ViewͰૹ৴͞Ε͍ͯΔ
 ΠϕϯτΛ֬ೝ͢Δ

  30. 32 ؾʹͳΔϩάΛൃݟ iAd.frameworkಋೖલ iAd.frameworkಋೖޙ xxxxApp[00000:000000] Ad framework is not linked.

    Search Ad Attribution Reporter is disabled. xxxxApp[00000:000000] No data to upload. Upload task will not be scheduled xxxxApp[00000:000000] Analytics enabled xxxxApp[00000:000000] Scheduling Search Ad Report timer xxxxApp[00000:000000] Search Ad campaign report alarm scheduled to fire in approx. (s): ※ϩάͷෆඞཁͳ෦෼͸লུ&Ӆ͍ͯ͠·͢
  31. 33 ͱΓ͋͑ͣҰ೔͚ͩASAΛճͯ͠ΈΔ ͦΕͰ΋֬ͨΔূڌ͕ແ͍ͷͰ

  32. 34 ͪΌΜͱೖ͍ͬͯͨʂ$

  33. 35 ͜Ε͔Βͷࢪࡦͱ·ͱΊ 3

  34. 36 ࠓ΍͍ͬͯΔ͜ͱ ࣾ಺σʔλ
 ج൫ iOS Android
 ྆ΞϓϦ Apple Search Ads

    Google Ads iOS͸IDFA Android͸޿ࠂID ඥ෇͚Δ ※՝ۚ৘ใͱݸਓ৘ใ͸ඥ෇͍͓ͯΓ·ͤΜ ※ར༻ऀͷࣄલͷಉҙ͕ͳ͍ݶΓɺݸਓ৘ใΛୈࡾऀʹఏڙͤͣɺ·ͨɺݸਓ৘ใͷൢച΍ି͠ग़͠͸ߦ͍·ͤΜɻ
  35. 37 ࣾ಺σʔλ
 ج൫ iOS Android
 ྆ΞϓϦ Apple Search Ads Google

    Ads ˔ྲྀೖݩ͝ͱͷ՝ۚ·Ͱͷߦಈ෼ੳͷݚڀ ˔ྲྀೖݩͷҧ͍ͱϢʔβʔߦಈʹҧ͍͸͋Δͷ͔ ˔ΑΓޮ཰తͳ޿ࠂͷग़͠෼͚ ˔04͝ͱͷϢʔβʔߦಈ΍՝ۚߦಈͷҧ͍ͷ෼ੳ 
 কདྷతʹ͸
  36. 38 ࣾ಺σʔλ
 ج൫ iOS Android
 ྆ΞϓϦ Apple Search Ads Google

    Ads কདྷతʹ͸ ՝ۚʹͭͳ͕Δ޿ࠂಈઢΛߟ͑ ΞϓϦ಺ͷࢪࡦʹ ޿ࠂσʔλΛ׆͔ͤΔΑ͏ʹͳΔ
  37. 39 ·ͱΊ ҙ֎ͱFirebaseͱiAd.frameworkͷ࿈ܞ͸ָͩͬͨ υΩϡϝϯτΛ৴ͯ͡Α͔ͬͨ

  38. 40 ͋Γ͕ͱ͏͍͟͝·ͨ͠