kotmyrevich / analytics-issues

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

Mobile iOS GA Tracking stops working if UserID is present/enabled #481

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of affected component: Mobile Tracking (User ID)

Name of related library and version, if applicable (e.g. Android, iOS,
Snippets, etc.): iOS 7+

Issue summary:
After enabling User ID views and implementing its code into our iOS app (which 
already had regular GA metrics reporting correctly for months) - we are no 
longer getting any hits on the dashboard.

Even tho VERBOSE shows all the metrics being correctly set and sent (including 
the userID), nothing appears in dashboard.

Steps to reproduce issue:
1. Have an iOS App already using GA 3.0 SDK (without UserID)
2. Enable UserID tracking in GA Admin panels
3. Implement UserID tracking code to app
4. Run tests to capture some Screens and Events
5. Check GA New User ID View in Real-Time, nothing appears
6. Check GA Historical Data 24 hours later, nothing appears

Expected output:
What do you expect to see after performing the above steps?
Metrics Reporting with USer ID Views shows hits

Actual results:
0 zero hits, zero active users, no data is sent anywhere (neither the new User 
ID View NOR the old regular Mobile Data non-userid view)

Notes:
pseudo code

//app delegate.m

didFinishLaunching{
initGoogleAnalytics;
}

initGoogleAnalytics{
   [[GAI sharedInstance] setDispatchInterval:kGaDispatchPeriod];
    [[GAI sharedInstance] setDryRun:kGaDryRun];
    self.tracker = [[GAI sharedInstance] trackerWithTrackingId:kGaPropertyId];
}

//someViewController
someEventToTrack{
     id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
    [tracker set:@"&uid" value:[someID];

    [tracker send:[[GAIDictionaryBuilder createEventWithCategory:@"Calendar"
                                                                   action:@"Cal Access Granted - Initial Request"
                                                                    label:[[UserProfile sharedInstance] getDomainName]
                                                                    value:nil] build]];
}

//////
some of the verbos log

2014-08-28 17:08:54.355 xxxxxx[24966:3d03] VERBOSE: GoogleAnalytics 3.06 
-[GAIBatchingDispatcher persist:] (GAIBatchingDispatcher.m:424): Saved hit: {
    parameters =     {
        "&_u" = ".oKo-L";
        "&_v" = "mi3.0.6";
        "&aid" = "com.yada.ios.base.yada";
        "&an" = someApp;
        "&av" = "1.1.1";
        "&cd" = "someView";
        "&cid" = "5f6b8008-df74-414f-8XXXXXXX02";
        "&sr" = 768x1024;
        "&t" = appview;
        "&tid" = "UA-213456-FAKE";
        "&uid" = FakeID_HERE;
        "&ul" = en;
        "&v" = 1;
        "&z" = 325346436;
        gaiVersion = "3.06";
    };
    timestamp = "2014-08-28 22:08:54 +0000";
}
2014-08-28 17:08:56.356 xxxxx[24966:3d03] VERBOSE: GoogleAnalytics 3.06 
-[GAIRequestBuilder requestGetUrl:payload:] (GAIRequestBuilder.m:177): building 
URLRequest for https://ssl.google-analytics.com/collect
2014-08-28 17:08:56.356 xxxxxx[24966:3d03] VERBOSE: GoogleAnalytics 3.06 
-[GAIBatchingDispatcher dispatch] (GAIBatchingDispatcher.m:509): Sending hit(s) 
GET: 
https://ssl.google-analytics.com/collect?av=1.0.1&cd=Detail%3A++List+View%3A+&t=
appview&ul=en&_u=.oKo-L&tid=UA-49466323-2&cid=5f6b8008-df74-414f-846f-b48e194f80
02&sr=320x480&v=1&aid=com.yada.ios.base.yada&_v=mi3.0.6&an=SaplingLearning&ht=14
08662064462&qt=601671893&z=9906162835050918604
2014-08-28 17:08:56.391 yada[24966:60b] INFO: GoogleAnalytics 3.06 
-[GAIBatchingDispatcher didSendHits:response:data:error:] 
(GAIBatchingDispatcher.m:157): Hit(s) dispatched: HTTP status 200
2014-08-28 17:08:56.392 yada[24966:3d03] INFO: GoogleAnalytics 3.06 
-[GAIBatchingDispatcher deleteHits:] (GAIBatchingDispatcher.m:436): hit(s) 
Successfully dispatched
2014-08-28 17:08:56.393 yada[24966:3d03] INFO: GoogleAnalytics 3.06 
-[GAIBatchingDispatcher didSendHits:] (GAIBatchingDispatcher.m:167): 1 hit(s) 
sent

Original issue reported on code.google.com by jose.go...@saplinglearning.com on 28 Aug 2014 at 10:27