Development/Flutter - Package

Flutter 앱에 Google Analytics 연결 (firebase_analytics)

Clein8 2020. 7. 3. 18:42
반응형

[Flutter/Package] firebase_analytics

 

  firebase_analytics는 Firebase기반이므로, 기본적으로 Firebase Project에 연결하신 후 사용하셔야 합니다.

 

 

firebase_analytics | Flutter Package

Flutter plugin for Google Analytics for Firebase, an app measurement solution that provides insight on app usage and user engagement on Android and iOS.

pub.dev

 

 

1. 패키지 설치하기

/pubspec.yaml 파일에 firebase_analytics 패키지 추가

dependencies:
  flutter:
    sdk: flutter
    
  firebase_analytics: ^5.0.16

Pub get 실행

 

 

2. Analytics 적용하기

 

cf) debugView

https://support.google.com/firebase/answer/7201382?hl=ko

 

패키지 라이선스 (Package License)

BSD License

반응형