Do I have to add both dependencies for adding Google Analytics in my android app?
implementation 'com.google.firebase:firebase-core:16.0.3'
com.google.android.gms:play-services-analytics:16.0.3
Currently, I am only using play-services-analytics
and firebase analytics is working perfectly fine for me.
Because as they both are used for integrating Google Analytics?
Edit
As currently I am not using firebase-core, then how can in firebase dashboard I can see active users and every data? Is it getting it from play-services-analytics
or what? Is it because I am using crashlytics and firebase-perf?
Because as they both are used for integrating Google Analytics ?
For using Google Analytics, you'll only need this:
com.google.android.gms:play-services-analytics:16.0.3
And google-services
:
classpath 'com.google.gms:google-services:4.1.0'
This :
implementation 'com.google.firebase:firebase-core:16.0.3'
Isn't necessary since you're not using nor trying Firebase in this case.
Read: https://developers.google.com/analytics/devguides/collection/android/v4/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.