显示将用户带到网站的Google关键字 [英] Display Google Keywords that brought a user to the site

查看:72
本文介绍了显示将用户带到网站的Google关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望显示的内容如下:

I am looking to display something like:

您好,您已通过查找[google keyword(s)]

Hello, you've reached this site by looking for [google keyword(s)]

我很确定我之前已经看过这个,但是我很难弄清楚如何抓住用于引导用户访问我网站的关键字。有人知道答案吗?

I'm pretty sure I've seen this done before but I am having troubles figuring out how to grab the keywords that were used to lead a user to my site. Anyone know the answer?

推荐答案

您需要获取引用URL,然后删除q查询字符串的所有内容。这将为您提供用于访问您网页的查询。

You need to get the referring URL and then strip out everything for the "q" query string. This will give you the query that was used to get you to your page.

这篇关于显示将用户带到网站的Google关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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