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

前端 未结 5 2180
慢半拍i
慢半拍i 2020-12-16 21:04

I am trying to track my app speed using Google analytics but i could not see anything under app speed in my google analytics account. I have tracked the other parameters lik

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-16 21:36

    I found that the interval had to be a whole number. It's expecting milliseconds but NSTimeInterval is seconds so it tries to send it as "3.1234" but if you convert it to whole milliseconds it will send it as 3123 and you should see results. To convert I used (GA V3)

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

提交回复
热议问题