Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Troubleshooting

Christian Brevik edited this page Sep 13, 2018 · 7 revisions

Conflicting Google Play Services version on Android?

You can specify googlePlayServicesVersion in "android/gradle.properties". Otherwise, it will take default version

e.g. googlePlayServicesVersion=11.8.0

See this wiki post for more info on handling conflicting versions.

Problems with tracking? Visitors not showing up?

This is NOT (normally) an error with this library. Please read this guide on how to set up your Google Analytics account/property for mobile analytics.

Android build problem

Some people have had problems being hit with Unknown source file : com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzmu; after installing this (or similar modules). Other errors might occur as well, but the underlying problem may be dependency mismatches.

See https://github.com/idehub/react-native-google-analytics-bridge/wiki/Android-build-problems for solution.

Google Analytics Logging

There is a divergence in how the iOS and Android versions of the native library handles logging.

For Android you can check the GA logs with your favorite terminal by using adb logcat.

For iOS there is a logger in the internal library that writes events to the XCode output window. In order to control the logLevel you can add an item in your Info.plist with the key GAILogLevel. The value you use is a number which corresponds to your desired log-level:

  • 0: None
  • 1: Errors
  • 2: Warnings
  • 3: Info
  • 4: Verbose