gpt4 book ai didi

android - Google分析跟踪器的创建未给出enableAdvertisingIdCollection(true)的结果

转载 作者:行者123 更新时间:2023-12-03 15:57:31 25 4
gpt4 key购买 nike

我正在尝试实施Google Analytics(分析)。我尝试使用以下代码,但是我的Google Analytics(分析)帐户未获得enableAdvertisingCollection的结果。

Google建议使用其他代码来创建跟踪器。我的代码和Google的代码之间没有区别。有人可以帮助我吗?

我的代码:

GoogleAnalytics analytics =        GoogleAnalytics.getInstance(getApplicationContext());

Tracker tracker = analytics.newTracker("XXXXXXXXX"); // Send hits to tracker id UA-000-1

// All subsequent hits will be send with screen name = "main screen"
tracker.setScreenName("main screen");
tracker.enableExceptionReporting(true);
tracker.enableAdvertisingIdCollection(true);
tracker.enableAutoActivityTracking(true);
tracker.send(new HitBuilders.EventBuilder().build());


Google建议代码:

Tracker t = ((AnalyticsSampleApp) getActivity().getApplication()).getTracker(
TrackerName.APP_TRACKER);
t.enableAdvertisingIdCollection(true);

最佳答案

当没有足够的数据可显示时,就会发生这种情况。 Google Analytics(分析)不想以某种方式使用户可识别,因此它应用了阈值。
实际上,当您跳过验证时,会看到以下消息:


“应用阈值时,该报告中的某些数据可能已被删除。Learn more


只需等待更多用户报告,您将开始查看数据。

关于android - Google分析跟踪器的创建未给出enableAdvertisingIdCollection(true)的结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36428334/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com