谷歌Analytics(分析)的Andr​​oid调度Analytics、谷歌、oid、Andr

2023-09-07 10:48:44 作者:瓢把子

我想尝试谷歌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();