AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

4.4K members online now
4.4K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Google Analytics for Hyprid Mobile App

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭


I am facing problem to add GA code on my android app,


The app is developed in WordPress and using JSON data we have converted the Android app.


Kindly help us to add GA analytics code in my App.


We are getting the following errors while running Cordova command.



c:\my\snackup>cordova run --device
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files\java\jdk1.8.0_74


Total time: 5.73 secs
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find
Searched in the following locations:
file:/C:/Program Files (x86)/Android/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.0.0/support-v4-23.0.0.pom
file:/C:/Program Files (x86)/Android/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.0.0/support-v4-23.0.0.aar
Required by:
:android:unspecified > Tonguelay-services-analytics:9.0.2 > Tonguelay-services-basement:9.0.2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: Error code 1 for command: cmd with args: /s,/c,"c:\my\snackup\platforms\android\gradlew cdvBuildDebug -b c:\my\snackup\platforms\android\build.gradle -PcdvBuildArch=arm -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"