Tuesday, 15 January 2013

iOS : Google Analytics User Timing report is not updated in my Google Analytics Account -



iOS : Google Analytics User Timing report is not updated in my Google Analytics Account -

i trying track app speed using google analytics not see under app speed in google analytics account. have tracked other parameters events,crashes , exceptions. parameter able see reports generated in google analytic account. next code using send event timing.

self.enddate=[nsdate date]; double timediff=[_startdate timeintervalsincedate:_enddate]; nslog(@"timediff----%f",timediff); if([[[gai sharedinstance]defaulttracker] sendtimingwithcategory:category withvalue:timediff withname:@"loadtime" withlabel:category]) { nslog(@"succesfully sent load time ga"); }

following message printed in console.

googleanalytics 2.0b4 -[gaidispatcher dispatchcomplete:withstarttime:withretrynumber:withresponse:withdata:witherror:] (gaidispatcher.m:415) debug: dispatched nail /gaihit/p479 (0 retries).

provide me sample code if u have. please help me in that. in advance.

i found interval had whole number. it's expecting milliseconds nstimeinterval seconds tries send "3.1234" if convert whole milliseconds send 3123 , should see results. convert used (ga v3)

[tracker send:[[gaidictionarybuilder createtimingwithcategory:category interval:@((int)(interval * 1000)) name:name label:label] build]]

ios google-analytics

No comments:

Post a Comment