如何捕获访问者是否来自 Google Adwords 点击 [英] How to capture if a visitor is from a google adwords click

查看:24
本文介绍了如何捕获访问者是否来自 Google Adwords 点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户在我的网站上注册时,我希望能够存储他们是否通过 Adwords 活动来到我的网站.

When a user signs up on my site I want to be able to store whether or not they came to my site via an Adwords campaign.

我知道谷歌使用 javascript 来跟踪基于在用户机器上创建的 cookie 的转化.有什么方法可以检查这个 cookie,以便我可以根据用户帐户存储源?

I know google uses javascript to track conversions based on a cookie that is created on the users machine. Is there a way I can check this cookie so I can store the source against the user account?

推荐答案

你说得对——你可以从 cookie 中读取这些数据.

You're correct--you can read this data from the cookies.

配置跟踪:

  1. 连接您的 AdWords 和 GA帐户:

  1. connect your adwords and GA accounts:

在您的 AdWords 帐户中,转到我的帐户 > 帐户首选项,单击跟踪旁边的编辑"链接然后选择显示的框目标 URL 自动标记".点击保存更改";

in your AdWords account, go to My Account > Account Preferences, click the "edit" link next to Tracking then select the box that says "Destination URL Auto-tagging". Click "Save Changes";

仍然来自您的 AdWords 帐户,单击分析选项卡并选择分析设置 > 配置文件设置 > 编辑个人资料信息;勾选应用成本数据",然后点击保存更改

still from your AdWords account, click the Analytics tab and choose Analytics Settings > Profile Settings > Edit Profile Information; check "Apply Cost Data", then click Save Changes

那么你怎么知道它是否有效?GA 将数据存储在哪里?

So how can you tell if it's working? And where does GA store the data?

获取初始 __utm.gif 请求并查看 Referer.附加到 URL 的是一个新参数gclid".这是特定于关键字的参数(对您的帐户而言是唯一的).正是这个参数将您的访问者作为 AdWord 来源(即google(cpc)")与google(organic)"区分开来,这是我刚刚抓取并匿名化的(对数字/字母进行了加扰):

Grab an initial __utm.gif request and look at the Referer. Appended to the URL is a new parameter "gclid." This is the keyword-specific parameter (unique to your account). It's this parameter that distinguishes your visitors as AdWord-originating (i.e., "google(cpc)") from "google(organic)" Here's one i just grabbed and anonymized (scrambled the numbers/letters):

Referer:http://www.adomainname.com/?gclid=CKr61p31yKACFZlg4wodjj3gbA

Referer: http://www.adomainname.com/?gclid=CKr61p31yKACFZlg4wodjj3gbA

您会在同一个跟踪像素请求中的另外两个地方看到这个相同的字符串:

You'll see this identical string in two other places in the same tracking pixel request:

(i) 作为 GIF 请求参数utmp"的值,它是当前页面的页面请求,最重要的是;

(i) as the value for the GIF Request Parameter "utmp" which is the page request for the current page, and, most importantly;

(ii) 作为 GIF 请求参数utmcc"的值——cookie 的容器.保存 Adwords 数据的特定 cookie 是 __utmz,它实际上是所有引荐数据的容器.这是一个匿名示例,我只是或多或少地随机抓取(即,我只是使用由明显的 Adwords 组成的查询在 Google 中进行搜索,然后单击搜索结果中的付费链接之一,然后只是拉出请求标题):

(ii) as the value for the GIF Requests Parameter "utmcc"--the container for the cookies. The specific cookie that holds the adwords data is __utmz, which is actually the container for all referral data. Here's an anonymized example i just grabbed more or less at random (i.e., i just did search in Google using a query comprised of obvious Adwords and then clicked one of the paid links in my search results, then just pulled the Request Header):

utmcc = __ UTMA%3D755416178.1576730350.1269876846.1269143846.1269143846.1%3B%2B__utmz%3D219726107.1269143846.1.1.utmgclid%3CKr61p31yKACFZlg4wodjj3gbA%7Cutmccn%3D(未%2520set)%7Cutmcmd%3D(未%2520set)%7Cutmctr%3Dhomes%2520for%2520sale%3BHTTP/1.1

utmcc=__utma%3D755416178.1576730350.1269876846.1269143846.1269143846.1%3B%2B__utmz%3D219726107.1269143846.1.1.utmgclid%3CKr61p31yKACFZlg4wodjj3gbA%7Cutmccn%3D(not%2520set)%7Cutmcmd%3D(not%2520set)%7Cutmctr%3Dhomes%2520for%2520sale%3B HTTP/1.1

这篇关于如何捕获访问者是否来自 Google Adwords 点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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