谷歌分析测量端点忽略x转发的头部!任何解决方案 [英] google-analytic measurement endpoint is ignoring x-forwarded-for header! any solution?

查看:88
本文介绍了谷歌分析测量端点忽略x转发的头部!任何解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我开始使用 GA测量协议进行游戏,它对定制应用程序有巨大的潜力,尤其是对web应用程序的事件跟踪。



我面临的问题是;
GA始终使用请求者的IP作为源IP!


连GA的文件都说,
$ b


IP地址 - 在HTTP请求中隐式发送,用于
计算Google中的所有地理/网络维度分析。



这是个大问题!为什么?

与我的情况一样;

我通过Heroku托管的一个后端代理不同的跟踪调用。
有趣的是,在这种情况下,所有跟踪调用似乎都来自美国(Heroku)....



应该有更好的解决方案! >
有没有人处理类似的问题和任何建议的解决方案来解决这个问题? 目前尚未支持(截至2013年9月)。有一个Google Group线程正在跟踪此功能请求。我的Google团队成员表示他们正在考虑它。



https://groups.google.com/forum/#!topic/google-analytics-measurement-protocol/8TAp7_I1uTk



2014年2月24日更新

此功能已添加到Google Universal Analytics中。参数名称是'uip'。它应该是一个有效的IP地址。它将永远匿名,就像使用aip(匿名IP)一样。


Recently, I began playing with GA Measurement protocol, it has huge potential for custom-made apps, especially for event tracking of webapps.

The problem I'm facing is; GA is always using the requester's IP as the source IP!

even GA docs says;

"IP Address – Is implicitly sent in the HTTP request and is used to compute all the geo / network dimensions in Google Analytics."

That's a big problem! Why?
As in my case;
I'm proxying different tracking calls thru one backend hosted in Heroku. And funny enough, all tracked calls appears to be from US (Heroku) in that case....

There should be a better solution!
Has anyone dealt with similar problem and any suggested solution to tackle this problem?

解决方案

This isnt supported yet (as of Sept 2013). There is a Google Group thread that is tracking this feature request. I Google team member has said they are considering it.

https://groups.google.com/forum/#!topic/google-analytics-measurement-protocol/8TAp7_I1uTk

Update on Feb 24, 2014
This feature has been added to Google Universal Analytics. The parameter name is 'uip'. It should be a valid IP address. It will always be anonymized just as though aip (anonymize IP) had been used.

这篇关于谷歌分析测量端点忽略x转发的头部!任何解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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