谷歌Analytics(分析)的Andr​​oid调度 [英] Google Analytics android dispatch

查看:138
本文介绍了谷歌Analytics(分析)的Andr​​oid调度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试谷歌Analytics(分析)在我的Andr​​oid应用程序。一切工作正常,但在我的分析页面没有显示任何游客。我可以在其发送的数据的LogCat中看到的,我从样本复制的4个标签。

I wanted to try Google Analytics in my Android App. Everything worked properly, but on my Analytics page there is no visitor shown. I can see in the LogCat that it sent the data, I copied the 4 labels from the samples.

tracker.trackEvent(
        "Clicks",  // Category
        "Button",  // Action
        "clicked", // Label
        77);       // Value

和我也加入后调度。我现在等待3-4个小时,但仍然没有游客,试了一下在这使网络仿真器。

And I added also the dispatch after it. I waited now 3-4 Hours but still no visitor, tried it out in the emulator which has internet enabled.

推荐答案

您已经进入了正确是唯一的关键。仔细检查

Double check that you've entered you're unique key correctly.

GoogleAnalyticsTracker tracker = GoogleAnalyticsTracker.getInstance();
tracker.start("UA-12345678-1", this);
tracker.trackPageView("/HomeScreen");
tracker.dispatch();

这篇关于谷歌Analytics(分析)的Andr​​oid调度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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