Cordova Google-analytics-plugin with ionic in Android does not work

I have trouble with getting my cordova/ionic android app to work with google analytics. For now I have tried GAPlugin with anulartics without success, and now I am trying simpler setup with

In my ionic angular app, I have added following code in

.run(function($ionicPlatform) {   

 if (typeof analytics !== 'undefined'){
          console.log("starting analytics");
      console.log("Google Analytics plugin could not be loaded.")

and it seems to be workling correctly, following is output of adb -s BH9XXXXJ0D logcat | grep GAV3

looks like it connects to google analytics, sends message

V/GAV3    (12570): Thread[client_id_fetcher,5,main]: Storing clientId.
I/GAV3    (12703): Thread[GAThread,5,main]: No campaign data found.
V/GAV3    (12570): Thread[GAThread,5,main]: connecting to Analytics service
V/GAV3    (12570): Thread[main,5,main]: service connected, binder: [email protected]
V/GAV3    (12570): Thread[main,5,main]: bound to service
V/GAV3    (12570): Thread[GAThread,5,main]: connect: bindService returned true for Intent { (has extras) }
V/GAV3    (12570): Thread[GAThread,5,main]: Loaded clientId
V/GAV3    (12570): Thread[main,5,main]: Connected to service
I/GAV3    (12570): Thread[GAThread,5,main]: No campaign data found.
V/GAV3    (12570): Thread[GAThread,5,main]: putHit called
V/GAV3    (12570): Thread[GAThread,5,main]: Sending hit to service   PATH: https:  PARAMS: v=1,  ul=en-us,  t=appview,  ht=1412010481966,  sr=1080x1776,  an=testa,  tid=UA-55215798-3,  aid=com.ionicframework.testa300342,  cid=05b7c4d9-b3b3-4ea8-9f04-dfa61c6853ec,  av=0.0.1,  _u=.KnoK-AL,  cd=testapmain,

but nothing shows up in google analytics. Google analytic property is set as Mobile App.

ionic is 2.5 cordova 3.6.3-0.2.13 android 4.4.4 phone xperia z1 javac 1.7.0_65 OpenJDK Runtime Environment (IcedTea 2.5.2) (7u65-2.5.2-3~14.04) on Ubuntu 14.04 64bit

Any idea what might be wrong? Or how to debug it more to see if google analytics is receiving my messages?

how to create project in ionic,cordova and android?

I have installed ionic, cordova and android. But ionic is not creating android project. I have attached the error. C:/Users/shri/myapp>ionic platform add android Creating android project… C:/Use

“Creating Android project” taking forever (Cordova, ionic, Phonegap)

When I try to run Cordova platform add android Or Ionic platform add android Or the Phonegap counterpart, the message Creating android project takes literally forever, i.e the command doesn’t to any

ionic cordova splashcreens / icons

I’m designing an app with ionic framework for iOS and Android. I configured splashscreens and icons but I still have default Cordova splashscreens and icons when I run the app on my phone (using ionic

Ionic/Cordova app plays sound in emulator but not on Android device

I’m new to Ionic and Cordova, so I’m sure I’m missing something basic, but my problem is a packaged APK does not play sounds on an Android device. I can get the sound to play in the Ripple emulator ju

Ionic Cordova Media Not Found

I’m writing an Ionic app, and I’m trying to play an mp3 file using the Cordova Media ( But when I use the Media object in JavaScript I get: ReferenceError: Media is not defin

How to display a local:// image in ionic framework + cordova?

Does anyone know how to display local images, packaged inside a Cordova container, using Ionic ( I am currently getting this error when the app runs on a device: GET u

Map does not work with Cordova 2.0.0 for android

I have downloaded the Google Map sample for Phonegap 1.5.0 file. It is working fine in android with Cordova-1.5.0.js file. But when i keep Cordova-2.0.0.js file, Map is not shown. No error is coming i

Cordova build android

When I want to try ionic weather app ( I’ve got problems when I wanted to build android to my phone-gap application using cordova. I receive this message in

Cannot run angular-google-maps within ionic cordova build to android

I have an ionic project where one of its pages uses the angular google maps directive. On a browser everything works as it should, however when I emulate the project in android I get the following err

Does Cordova 1.9 work on iOS 6?

Does Cordova 1.9 work on iOS 6? I’ll be working on it on Xcode 4.5. I’ve already installed Cordova 2.0 and it is troublesome issues. CordovaLib MainViewController.m AppDelegate.m Should I downgrade t


Looks like it was my own wishful thinking at fault. While it is said in documentation that app data will appear in analytics only after 24 hours, I somehow thought that it does not apply to ‘Real-time’ tab. It does. After 24 hours, Realtime data shows up with delay of seconds, but not earlier.

Some answers in related questions claim the opposite. Do not take it for granted, as I did.