Android中的Google Analytics(分析) - 过滤掉测试设备 [英] Google Analytics in Android - filter out test device

查看:162
本文介绍了Android中的Google Analytics(分析) - 过滤掉测试设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有办法让我的测试设备在我的Android应用程序打开时不会在Google Analytics上报告?我知道AdMob可以添加测试设备,这些设备会加载虚拟广告。 Android上的Analytics(分析)有什么相似之处吗?

解决方案

您可以将分析客户端置于调试模式,不发送任何数据。 (如果您使用的是v2,请参阅官方文档,如果您使用的是v1:请参阅)。



或者,在服务器端,您可以将GA筛选出来基于域或IP的客户端。请参阅 http://support.google.com/analytics/ bin / answer.py?hl = en& answer = 1033162

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(分析) - 过滤掉测试设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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