cyanide
cyanide

Reputation: 3964

Google Analytics does not record visits

I am really desperate with Google Analytics. I tried SDK v1, v2, v3 with Google own sample codes. Flollowig the instructions, I put permissions in the Manifest, I create analytics.xml with correct tracking ID for v2 and v3, I place tracking in the code, set custom variable (as in the sample code) and do dispatch for v1. I set (programmatically, or in xml, whatever applies) dryRun and debug to true in order to maximize the feedback.

Everything seems to work, it reads my account and maybe even supplies data, but when I check my account on the Web, I get nice and clean 0-s in all columns, and I can't see any visits recorded!

I prefer to use v1, simply because it is the smallest, in the worst case v2, but version 3 is too big for my humble application. But any suggestion with any version will help!

Upvotes: 0

Views: 250

Answers (1)

Lawrence Choy
Lawrence Choy

Reputation: 6108

Setting dryRun to true means that the library will pretend that it is sending data to GA server via logcat, but actually it is not. This is for debugging purpose. You need to turn dryRun off in order to actually send data.

From here:

The SDK provides a dryRun flag that when set, prevents any data from being sent to Google Analytics. The dryRun flag should be set whenever you are testing or debugging an implementation and do not want test data to appear in your Google Analytics reports.

Upvotes: 1

Related Questions