Adding Firebase Analytics and Google Analytics in Android App

雨燕双飞 提交于 2019-12-03 06:34:30

Finally, I found an answer for adding both GA and FA

Step 1. Removed the xml files R.xml.global_tracker

Step 2. Replaced mTracker = analytics.newTracker(R.xml.global_tracker); with mTracker = analytics.newTracker(PROPERTY_ID);

Step 3. Add the following in json file "analytics_service": { "status": 2, "analytics_property": { "tracking_id": "" } },

Looks cool, but what about App id, Don't we need app id for tracking events on both Google and Firebase Analytics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!