我已经在我的iPhone应用程序中集成了Google (v2.0) api,但是无法在Google实时上获得实时数据。
已将调度间隔属性设置为0。
self.tracker = [[GAI sharedInstance] trackerWithTrackingId:kTrackingId];
[GAI sharedInstance].debug = YES;
[GAI sharedInstance].dispatchInterval = 0;
[GAI sharedInstance].trackUncaughtExceptions = YES;
正确接收类别事件,但无法接收RealTime数据。
是否有可能从RealTime应用程序中获取iPhone数据?
发布于 2013-03-08 13:31:37
通过实现视图跟踪解决问题。RealTime数据只能通过实现视图跟踪来查看。
演示代码:
HomeViewcontroller.h
#import "GAITrackedViewController.h"
@interface HomeScreenViewController : GAITrackedViewController
HomeViewcontroller.m
//--- Add in viewDidLoad ---//
self.trackedViewName = @"Home Screen";
发布于 2013-03-06 13:35:13
如果您正确地集成了API,并且不要忘记为您在google分析中注册的应用程序设置正确的trackerWithTrackingId
,您将获得实时数据。
// Optional: automatically send uncaught exceptions to Google Analytics.
[GAI sharedInstance].trackUncaughtExceptions = YES;
// Optional: set Google Analytics dispatch interval to e.g. 20 seconds.
[GAI sharedInstance].dispatchInterval = 20;
// Optional: set debug to YES for extra debugging information.
[GAI sharedInstance].debug = YES;
// Create tracker instance.
self.tracker = [[GAI sharedInstance] trackerWithTrackingId:@"UA-YOURAPPID"];
发布于 2013-08-05 17:43:48
还有另一个API --,它提供了相同的功能。https://developers.google.com/analytics/devguides/reporting/realtime/v3/devguide
https://stackoverflow.com/questions/15248445
复制相似问题