Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introducing Firebase Analytics to an Existing P...
Search
Sho Ikeda
June 22, 2016
Programming
0
460
Introducing Firebase Analytics to an Existing Project
関西モバイルアプリ研究会 #15での発表資料です #関モバ
Sho Ikeda
June 22, 2016
Tweet
Share
More Decks by Sho Ikeda
See All by Sho Ikeda
Open Source Swift Workshop - Foundation and first party libraries
ikesyo
0
2k
Renovateで実現するライブラリの自動更新生活 / Automated Library Updates with Renovate
ikesyo
3
530
XcodeのDevelopment Assets探訪
ikesyo
1
1k
RenovateによるiOSライブラリーの自動更新
ikesyo
2
3.5k
2019年のSwiftモック事情
ikesyo
3
7.9k
5分でわかる!Xcode 11から使えるXCFrameworks
ikesyo
2
3.6k
Travis CIのBuild Matrixを活用して、Swift製ライブラリをLinux対応させる
ikesyo
3
2.4k
Swift Packages and XCFrameworks in Xcode 11
ikesyo
1
1.1k
How to Mock Protocols in Swift
ikesyo
1
2.9k
Other Decks in Programming
See All in Programming
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.2k
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
190
Contemporary Test Cases
maaretp
0
140
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
OSSで起業してもうすぐ10年 / Open Source Conference 2024 Shimane
furukawayasuto
0
110
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.8k
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
ヤプリ新卒SREの オンボーディング
masaki12
0
130
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
1.1k
エンジニアとして関わる要件と仕様(公開用)
murabayashi
0
300
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.7k
cmp.Or に感動した
otakakot
3
200
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Statistics for Hackers
jakevdp
796
220k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Code Review Best Practice
trishagee
64
17k
Thoughts on Productivity
jonyablonski
67
4.3k
We Have a Design System, Now What?
morganepeng
50
7.2k
Scaling GitHub
holman
458
140k
Transcript
Introducing Firebase Analytics to an Existing Project @ikesyo ؔϞόΠϧΞϓϦݚڀձ #15,
2016-06-22 Wed #ؔϞό
@ikesyo • ͍͚͠ΐʔʗా ᠳ • ͯͳ@ژ • https://twitter.com/ikesyo • https://github.com/ikesyo
✨ Contributions ✨ • ReactiveCocoa • Carthage (Commandant, ReactiveTask) •
Result • Himotoki • 2.1.0 is released today with Swift 2.3/Xcode 8 compatibility ✨ • APIKit
Firebase
Products • Analytics • Auth • Database • Hosting •
Remote Config • Test Lab • Crash • Notifications • Dynamic Links • AdMob • ...
Firebase Analytics with Google TagManager
Getting Started • Get Started with Firebase Analytics for iOS
| Firebase • Tag Manager + Firebase: Getting Started | Google Tag Manager for iOS | Google Developers
Firebase Analytics • GoogleTagManager v5 FirebaseAnalytics ʹґଘ͢ΔΑ ͏ʹ import FirebaseAnalytics
... // Previously: // TAGManager.instance().dataLayer.push(["event": "eventName", "foo": "bar"]) // This sends the event to Google TagManager too. FIRAnalytics.logEventWithName("eventName", parameters: ["foor": "bar"])
Google TagManagerͷηοτΞοϓ
Google TagManagerͷηοτΞοϓ • ৽͍͠ίϯςφͷ༻ҙ • طଘͷίϯςφʢैདྷ൛ʣFirebaseͰ͑ͳ͍ • λάɺτϦΨʔɺมΛ࠶Ճ • ैདྷ൛ίϯςφͰΤΫεϙʔτͨ͠JSONϑΝΠϧFirebase൛ίϯςφͰΠϯϙʔτ
Ͱ͖ͳ͍ • ઃఆϑΝΠϧͷஔ͖͑ • όΠφϦ͔ΒJSONʹϑΥʔϚοτ͕มߋ • λʔήοτʹcontainerͱ͍͏folder referenceΛՃ͠ɺͦͷϑΥϧμԼʹJSON ϑΝΠϧΛઃஔ
Firebase AnalyticsͷηοτΞοϓ
Firebase AnalyticsͷηοτΞοϓ • https://console.firebase.google.com ͔Β • “৽نϓϩδΣΫτΛ࡞” • “GoogleϓϩδΣΫτΛΠϯϙʔτ” •
Google Sign-InΛར༻͍ͯ͠ΔϓϩδΣΫτͰ͋ΕޙऀΛબͿ • طଘͷOAuth 2.0 ΫϥΠΞϯτIDΛҾ͖ܧ͛Δ • ΫϥΠΞϯτIDʹొࡁΈͷόϯυϧIDͰFirebaseϓϩδΣΫτʹࣗಈతʹϞόΠϧΞϓϦ͕Ճ͞Ε Δ • ಉҰΞϓϦͷAndroid൛͕͋Εɺ༧ΊΫϥΠΞϯτIDΛҠͯ͠GoogleϓϩδΣΫτΛ1ͭʹ·ͱΊ͓ͯ ͘ͷΛ͓͢͢Ί • Firebaseίϯιʔϧͷ֘ϞόΠϧΞϓϦ͔ΒGoogleService-Info.plistΛμϯϩʔυ͠ɺϓϩδΣΫτ ʹՃʢطଘϑΝΠϧͷஔ͖͑ʣ
Firebase AnalyticsͷηοτΞοϓ // AppDelegate.swift import UIKit import FirebaseAnalytics class AppDelegate:
UIResponder, UIApplicationDelegate { func application(application: UIApplication, didFinishLaunchingWithOptions... { // No more TAGContainerOpener.openContainerWithId( // _:tagManager:openType:timeout:notifier: // ) FIRApp.configure() return true } }
Within App Extensions • ॳظԽϙΠϯτ: ΤϯτϦʔϙΠϯτͷVCͷviewDidLoad() • ෳճͷExtensionͷىಈͰಉҰϓϩηε͕༻͞Ε͏ΔͨΊ FIRApp.configure()Λෳճݺͳ͍Α͏ʹҙ͢Δ •
Today Extension: ϝϞϦෆͰFIRApp.configure()ΛݺͿ͚ͩͰΫϥογϡ͢Δ ! func viewDidLoad() { super.viewDidLoad() if FIRApp.defaultApp() == nil { FIRApp.configure() } }
!" Happy Firebase!! "!
Thank you❗"