使用谷歌移动分析iphone发布问题 [英] Problem dispatching with google mobile analytics for iphone

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

问题描述

我已将Google移动分析整合到我的iphone应用中,但出于某种原因,网页浏览和事件不会发送。

我把这个放到我的app委托applicationDidFinishLaunching方法(我已经x'd out的UA字符串):


[[GANTracker sharedTracker] startTrackerWithAccountID:@UA-xxxxxx-xdispatchPeriod: 10名代表:自我];
NSError *错误;
[[GANTracker sharedTracker] trackPageview:@/ homewithError:&error];

这是委托方法:

lockquote
- (void)trackerDispatchDidComplete: (GANTracker *)跟踪器eventsDispatched:(NSUInteger)eventsDispatched eventsFailedDispatch:(NSUInteger)eventsFailedDispatch
{
$ b NSLog(@Google Analytics Dispatch:succeeded:%i,failed:%i,eventsDispatched ,eventsFailedDispatch);


打印出这条消息:


Google Analytics调度:成功: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天全站免登陆