推荐人主持人

发布于 2024-08-31 11:27:57 字数 188 浏览 2 评论 0原文

如何找到Referers主机?

我的问题是,我不会检查,用户是来自谷歌广告词还是有机搜索...所以我检查推荐人,但推荐人总是谷歌有机搜索...如果有人有更好的想法:)告诉它。

但我发现,这个HOst很特别!所以现在我不会检查Referes 站点的Host。

有没有办法找出引用者是“google Adwords”?

How to find out the Referers host?

My Problem is, i wont to check, is user from google adwords or organic search... so i checking refferer, but the refferer ist allways google organix search... if some one have a be´tter idea :) tell it.

But I found out, that the HOst is a speacial one! So now I wont to check for Host of the Refferes site.

Is there a way to find out the referer is "google Adwords" ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独自唱情﹋歌 2024-09-07 11:27:57

你能进一步解释一下吗?您想获取推荐人吗?只需使用

$_SERVER['HTTP_REFERER']

然后使用

stristr($haystack , $needle)

来比较它们是否来自有机或adwords(两者的值已知)Blockquote

Can you explain further? You want to grab the referrer? Just use

$_SERVER['HTTP_REFERER']

and then use

stristr($haystack , $needle)

to compare if they came from organic or adwords (with known values for the two)Blockquote

生寂 2024-09-07 11:27:57

正如您所经历的,引荐来源数据整体而言可能不值得信任。如果您只是寻找统计数据来衡量参考来源,我是否建议使用 Google Analytics?

http://www.google.com/analytics/

如果您尝试将逻辑构建到基于引荐来源网址的 PHP 脚本...您可能很难找到完美的解决方案,但这里有一篇涉及同一主题的上一篇文章:

确定 PHP 中的 Referer

Referrer data, as you've experienced, can be untrustworthy as a whole. If you're simply looking for statistical data to measure reference sources, might I suggest using Google Analytics?

http://www.google.com/analytics/

If you're trying to build logic into your PHP script based upon referrer... you might be hard pressed to find a perfect solution but here's a previous post that deals with the same topic:

Determining Referer in PHP

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文