boopage
December 11, 2014, 10:07pm
1
I followed this tutorial to setup the plugin in my app: http://blog.nraboy.com/2014/06/using-google-analytics-ionicframework/ , however my GA doesn’t show any tracking data at all. I use following method to test it, it runs with any error and out put the correct success message as well. any idea?
Thanks
analytics.trackView(state, function(success){
console.log("** tracking success");
console.log(success);
}, function(error){
console.log("** tracking error");
console.log(error);
});
dkenzik
December 11, 2014, 10:31pm
2
In my experience with GA, the non-realtime reporting lags behind by about a day. So if you haven’t waited a day, do so.
Also, make sure you’ve replaced Nic’s sample GA ID with your own.
Hope this helps!
boopage
December 11, 2014, 11:11pm
3
Hi I waited a day alread : (
GA ID is the tracking ID right? UA-xxx-x, right?
Thanks
You could try the plugin with ng-cordova, which has been tested a bit more.
http://ngcordova.com/docs/#GoogleAnalytics
@mhartington The ngCordova plugin is just a wrapper for the plugin he is already using.
Are you testing through your web browser or on the actual device? Also, have you tried running in debug mode (window.analytics.debugMode()
)?
boopage
December 17, 2014, 9:39pm
7
Its resolved after recreate the app in GA and another 24 hours wait