How to add Google analytics to a modular project? The problem is the following in Google I get google-services.json, this file is thrown into my project, the project module scolds that it does not have a google-services.json file, and another question is how many reports come in?
- I myself would use Firebase Analytics, but they said Google needed analytics - Suleymanovtat
|
2 answers
Add to Gradle at project level:
buildscript { ... dependencies { ... classpath 'com.google.gms:google-services:3.0.0' } } Add to Gradle at application level:
apply plugin: 'com.android.application' android { ... } dependencies { ... compile 'com.google.firebase:firebase-core:10.0.1' //Для аналитики достаточно } apply plugin: 'com.google.gms.google-services' Path for google-service.json - C:\Users\...\AndroidStudioProjects\...\app
Updates once a day
|
Infa straight from the official site and there going through the points, you'll find how to install it in the project itself.
Also would advise to consider Firebase Analytics .
Well, finally, as an option, you can try to add two analysts to your project in order to have a more accurate picture of what is happening.
|
