Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Reasons for google analytics module not working?

$
0
0

I am trying to use the Google Analytics Module https://github.com/MattTuttle/titanium-google-analytics for my iPhone app. Everything seems to be setup correctly without any problems in the log:

Titanium SDK 3.1.1.GA

tiapp.xml

<module platform="iphone">analytics.google</module>
app.js
var GA = require('analytics.google');
GA.debug = true;
GA.trackUncaughtExceptions = true;
var tracker = GA.getTracker("UA-XXXXXXX-1"); //replaced with actual Property-ID
tracker.trackEvent({
    category: "App Behavior",
    action: "started App",
    label: "User started app",
    value: "username"
});
In Google Analytics I added an acoount for an app (you can choose between website and app) and integrated the Property-ID in the code above.

I integrated it 5 days ago and used the simulator with the code several times but dont have any updates at all in google analytics.

Anyone an idea what could be the cause?

Thanks!


Viewing all articles
Browse latest Browse all 8068

Trending Articles