How to configure dry run and log level options via XML in Google Analytics v4 SDK for Android?

耗尽温柔 提交于 2019-12-04 00:56:09

From your setup, it looks like you are specifying the settings in a tracker configuration.

The values of ga_dryRun and ga_logLevel are global settings for the app and not specific to a particular tracker from v4 onwards. Can you make sure that you are following the steps written in the documentation here?

To quote, Use the following to setup the configuration:

In AndroidManifest.xml

 <meta-data
   android:name="com.google.android.gms.analytics.globalConfigResource"
   android:resource="@xml/analytics_global_config" />

In analytics_global_config.xml

 <?xml version="1.0" encoding="utf-8"?>
 <resources>
   <bool name="ga_dryRun">true</bool>
   <string name="ga_logLevel">verbose</string>
 </resources>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!