Hello,
I am using the GAPlugin to track my app data via Google Analytics.
https://github.com/phonegap-build/GAPluginThe problem is, I don't see any data. I figured I needed to wait a little while before data begins to show up but still - nothing. Even the "real time" section shows nothing.
This is what I've done:
1.
$ cordova plugin add https://github.com/phonegap-build/GAPlugin.git
2. Added the following code in my deviceready function:
window.plugins.gaPlugin.init(function(){
alert('worked!');
window.plugins.gaPlugin.trackEvent( function(){alert('TRACKED EVENT!');} , function(){alert('FAILED TO TRACK EVENT!');}, "Category", "Action", "Label", 10);
},
function(){alert('FAILED!');},
"ID GOES HERE",
10);
When I run the app, I get all the alerts that shows it is working. However, no data in the GA dashboard
Can someone please tell me what I am doing wrong?
Thanks