gzog / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Analytics Events are Not Tracked #447

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Library - iOS , Version 3.06

Issue summary:
we encountered scenarios where from the same devices(after reinstalling the 
app) the calls that we were being tracked before, is not getting tracked now in 
analytics website.

Notes:

I have attached the charles log for Google Analytics that are not getting 
tracked

The code which we use for initializing :

    NSString *version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];

    [GAI sharedInstance].trackUncaughtExceptions = NO;
    [[GAI sharedInstance].logger setLogLevel:kGAILogLevelNone];
    [GAI sharedInstance].dispatchInterval = 10;
    [GAI sharedInstance].optOut = NO;
    [[GAI sharedInstance] trackerWithTrackingId:GA_ID];
    id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
    self.GATracker = tracker;
    [tracker set:kGAISampleRate value:@"50.0"];
    [tracker set:kGAIAppVersion value:version];

Original issue reported on code.google.com by surendra...@tringapps.com on 23 Jun 2014 at 5:49

Attachments:

GoogleCodeExporter commented 8 years ago
Hello,

We are trying to follow up on this. Can you please let us know why this would 
be happening?

Bests,
Rahul

Original comment by rahuljay...@gmail.com on 26 Jun 2014 at 2:13

GoogleCodeExporter commented 8 years ago
This is just a stab in the dark here, but could it be that this sampleRate 
calculation is deterministic?

That is, if I set my sample rate to be 50%, it's not like my app on my device 
will be reporting data 50% of the time; it's that my device will either report 
data all of the time or none of the time, and there's a 50% chance that it will 
fall into either category. If you change your sample rate back up to 100%, does 
it work again?

Original comment by todd.ker...@gmail.com on 27 Mar 2015 at 10:36