问题描述
是否有办法让我的测试设备在我的Android应用程序打开时不会在Google Analytics上报告?我知道AdMob可以添加测试设备,这些设备会加载虚拟广告。 Android上的Analytics(分析)有什么相似之处吗?
您可以将分析客户端置于调试模式,不发送任何数据。 (如果您使用的是v2,请参阅,如果您使用的是v1:请参阅
Is there a way to make it so that my testing device doesn't report back on my Google Analytics when I open my Android app? I know with AdMob you can add test devices and those devices will load dummy ads. Is there something similar for Analytics on Android?
You can put your analytics client in "debug" mode, so it won't send any data. (If you're using v2: see the official docs, if you're using v1: see the "Testing" section of this overview).
Alternatively, on the server side, you can have GA filter out clients based on domain or IP. See http://support.google.com/analytics/bin/answer.py?hl=en&answer=1033162
这篇关于Android中的Google Analytics(分析) - 过滤掉测试设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!