他们在说谎:$ _SERVER [" HTTP_REFERER"]问题 [英] Are They Lying: $_SERVER["HTTP_REFERER"] Question

查看:56
本文介绍了他们在说谎:$ _SERVER [" HTTP_REFERER"]问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好


我的客户在网上放置了一些横幅广告。在广告发布的网站上没有依赖

,而是告诉我们他们获得了多少点击次数,我们希望自己跟踪这个数字。


我决定使用$ _SERVER [''HTTP_REFERRER'']来确定将

用户引用到我们页面的内容。果然,在测试时,一切正常(即:我点击''sample.com'上的

广告,这将我们带到我的页面,确实在我们的

跟踪数据库我看到''sample.com''的访问次数增加了

one。)我正在寻找字符串sample.com无论该人是否通过

上升target =_ blank> http://www.sample.com
http://示例.com /


我的问题是:$ _SERVER [''HTTP_REFERRER'']可靠吗?从本质上讲,我的客户已经做广告的地方已经说''这个月有80个人点击了你的广告

',而我们自己的统计数据显示只有15个人点击了它。


我的跟踪方法是否足够好/可靠地称他们为骗子,还是我的

方法不太可靠?

Hi There

A client of mine has some banner ads placed on the net. Instead of relying
on the sites the ads are posted on tell us how many clicks they are
getting, we wanted to track the number ourselves.

I settled on using $_SERVER[''HTTP_REFERRER''] to determine what referred the
user to our page. Sure enough, when testing, it all works (ie: i click the
ad on ''sample.com'', which takes us to my page, and sure enough in our
tracking database i see ''sample.com'' has had the visit count increased by
one.) I am looking for the string "sample.com" to make sure that the count
goes up whether or not the person visited sample.com via
http://www.sample.com or http://sample.com/

My question is: is $_SERVER[''HTTP_REFERRER''] reliable? Essentially, a
place my clients have advertised with have said ''80 people clicked your ad
this month'' while our own stats show that only 15 people clicked it.

Is my method of tracking good/reliable enough to call them liars, or is my
method not too dependable?

推荐答案

_SERVER [''HTTP_REFERRER'']确定将

用户引用到我们页面的内容。果然,在测试时,一切正常(即:我点击''sample.com'上的

广告,这将我们带到我的页面,确实在我们的

跟踪数据库我看到''sample.com''的访问次数增加了

one。)我正在寻找字符串sample.com无论该人是否通过

上升target =_ blank> http://www.sample.com
http://示例.com /


我的问题是:是
_SERVER[''HTTP_REFERRER''] to determine what referred the
user to our page. Sure enough, when testing, it all works (ie: i click the
ad on ''sample.com'', which takes us to my page, and sure enough in our
tracking database i see ''sample.com'' has had the visit count increased by
one.) I am looking for the string "sample.com" to make sure that the count
goes up whether or not the person visited sample.com via
http://www.sample.com or http://sample.com/

My question is: is


_SERVER ['''HTTP_REFERRER'']可靠吗?从本质上讲,我的客户已经做广告的地方已经说''这个月有80个人点击了你的广告

',而我们自己的统计数据显示只有15个人点击了它。


我的跟踪方法是否足够好/可靠,可以称他们为骗子,还是我的

方法不太可靠?
_SERVER[''HTTP_REFERRER''] reliable? Essentially, a
place my clients have advertised with have said ''80 people clicked your ad
this month'' while our own stats show that only 15 people clicked it.

Is my method of tracking good/reliable enough to call them liars, or is my
method not too dependable?


Good Man< he *** @ letsgo.com>写道:
Good Man <he***@letsgo.com> wrote:
我的问题是:是


这篇关于他们在说谎:$ _SERVER [&quot; HTTP_REFERER&quot;]问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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