Information

Google Analytics for Firebase

User behave을 확인하고, App marketing과 performance optimization을 가능케 해준다.

<aside> 💡 어떤 데이터를 수집할 것인가?

</aside>

Event

//Anatomy of an Event
String: "name",
Dictionary: [ "key": "value" ]

Implementation

  1. Set Firebase

    1. Create Project
    2. Add Firebase Feature (FCM, GA ..)
    3. Register App
  2. Download config file

  3. Add Firebase SDK (Cocoa or SPM)

  4. Init configure

    // AppDelegate
    FirebaseApp.configure()
    

How to Debug

go to Product ▸ Scheme ▸ Edit Scheme. Within the Run event, select Arguments.

In Arguments Passed On Launch, click + and enter -FIRAnalyticsDebugEnabled.

Sample Code

Firebase Documentation