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

后端 未结 1 2023
[愿得一人]
[愿得一人] 2021-02-19 22:57

The parameters documentation for the XML configuration file used by the Google Analytics v4 SDK (as found in the Google Play Services 4.3.23 release) says that ga_dryRun

相关标签:
1条回答
  • 2021-02-19 23:31

    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>
    
    0 讨论(0)
提交回复
热议问题