谷歌分析帐户未收到推荐
我正在尝试在谷歌分析帐户中接收推荐参数。但是,似乎没有收到推荐,并且来源和媒介是直接的\无。
try{
Bundle extras=null;
String referralString=extras.getString("referrer");
tracker.setReferrer(referralString);
}catch(Exception e){}
对于上面的代码,推荐链接中的虚拟参数是
source=sourcexyz
medium=referral
name=product.
,上面的参数可以吗? 我缺少什么? 如果referrerString 错误,那么我会得到异常,但我没有得到任何异常。
对于 Android 移动设备,在 google anlytics 帐户中接收推荐参数或在推荐网站中接收数据的先决条件是什么。
I am trying to receive referral parameters in google analytics account. But, it seems referrals are not received and the source and medium is direct\none.
try{
Bundle extras=null;
String referralString=extras.getString("referrer");
tracker.setReferrer(referralString);
}catch(Exception e){}
For the above code dummy parameters in the referral link are
source=sourcexyz
medium=referral
name=product.
Are, the above parameters okie?
What am i missing?
If the referrerString was wrong then i would get exception, but I am not getting any exception.
What are the preconditions to receive referral parameters in google anlytics account or Receieve data in referring sites, for android mobile device.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要注册接收器
AnalyticsReceiver
。您可以在此处了解具体操作方法以及不同的广告系列参数 - 但
setReferrer()
可能就足够了,具体取决于您要寻找的内容。You'll need to register the receiver,
AnalyticsReceiver
.You can see how to do that, and the different campaign parameters here - but
setReferrer()
may be enough depending upon what you are looking for.