phonegap-build / GAPlugin

Google Analytics Plugin
MIT License
170 stars 141 forks source link

Success callback fired but no tracking in GA? #75

Closed zolakt closed 9 years ago

zolakt commented 9 years ago

Hi, I'm trying to use this plugin. Everything seems to work fine, I added an alert to all success callback. Init method fires success, trackPage fires success... but still there are no measures in analytic... nothing in "app overview", nothing in "real-time"...

I'm using PhoneGapBuild 3.5, and testing it without publishing to app/play store. Currently I'm testing on Adroid 4.0.4

Does someone has an idea why is this happening?

ssandison commented 9 years ago

+1

sandeshshinde commented 9 years ago

I am facing same issue....... Does someone has an idea why is this happening?

ssandison commented 9 years ago

I actually found that it took a day for my stats to start appearing so that could be the issue.

kristijanhusak commented 9 years ago

I'm having the same issue. @ssandison , even real time stats needs one day ?

ssandison commented 9 years ago

Yeah even real time stats. I had debug code on the responses from the plugin which were all saying successful but nothing started appearing until the the next day. I'd still check to see you get success callbacks in your app though.

kristijanhusak commented 9 years ago

@ssandison, stats are appearing, but no real time tracking, just regular one that is a bit late. Is this enough code for making it track in real time ?

var GA_KEY = 'key here';

var gaSuccess = function () {
    navigator.notification.alert('GA is connected');
};

var gaError = function () {
    navigator.notification.alert('GA errored');
};

var gaPlugin = window.plugins.gaPlugin;

gaPlugin.init(gaSuccess, gaError, GA_KEY, 1);
zolakt commented 9 years ago

It was just a delay. My stats appeared in a few hours.