使用 iphone 谷歌移动分析进行调度时出现问题 [英] Problem dispatching with google mobile analytics for iphone

查看:19
本文介绍了使用 iphone 谷歌移动分析进行调度时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 Google 移动分析集成到我的 iphone 应用程序中,但由于某种原因,页面浏览量和事件没有分派.

我将其放入我的应用程序委托 applicationDidFinishLaunching 方法中(我已经删除了 UA 字符串):

<块引用>[[GANTracker sharedTracker] startTrackerWithAccountID:@"UA-xxxxxx-x" dispatchPeriod:10 delegate:self];NSError *错误;[[GANTracker sharedTracker] trackPageview:@"/home" withError:&error];

这是委托方法:

<块引用>- (void)trackerDispatchDidComplete:(GANTracker *)tracker eventsDispatched:(NSUInteger)eventsDispatched eventsFailedDispatch:(NSUInteger)eventsFailedDispatch{NSLog(@"Google Analytics Dispatch: 成功:%i, 失败:%i",eventsDispatched,eventsFailedDispatch);}

打印出消息:

<块引用>谷歌分析调度:成功:0,失败:190

有没有其他人遇到过这个问题?

解决方案

事实证明,您所要做的就是删除应用程序并重新安装.一旦您记录了一个错误的页面视图(即开头没有/"的页面),任何内容都不会上传到谷歌分析

I have integrated Google mobile analytics into my iphone app, but for some reason the page views and events are not dispatching.

I put this into my app delegate applicationDidFinishLaunching method (i've x'd out the UA string):

[[GANTracker sharedTracker] startTrackerWithAccountID:@"UA-xxxxxx-x" dispatchPeriod:10 delegate:self]; NSError *error; [[GANTracker sharedTracker] trackPageview:@"/home" withError:&error];

This is the delegate method:

- (void)trackerDispatchDidComplete:(GANTracker *)tracker eventsDispatched:(NSUInteger)eventsDispatched eventsFailedDispatch:(NSUInteger)eventsFailedDispatch { NSLog(@"Google Analytics Dispatch: succeeded:%i, failed:%i",eventsDispatched,eventsFailedDispatch); }

which prints out the message:

Google Analytics Dispatch: succeeded:0, failed:190

Did anyone else run into this problem?

解决方案

It turns out all you have to do is delete the application and reinstall. Once you log one incorrect page view (ie one without a "/" at the beginning) nothing will upload to google analytics

这篇关于使用 iphone 谷歌移动分析进行调度时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆