Google Analytics中的_setCampNameKey使用情况 [英] _setCampNameKey usage in Google Analytics

查看:123
本文介绍了Google Analytics中的_setCampNameKey使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找页面上的Google分析的js。它包含以下内容(更改域名,名称等)。这是在主页上。我知道这些用于设置广告系列变量,但是...为什么有人会在主页上执行此操作?也许是因为他们有多个网站,并且将每个网站的点击次数作为广告系列进行跟踪?这是一个好的配置吗?

I'm looking at the js for google analytics on a page. It contains the following (changed the domain name, name etc). This is on the home page. I understand that these are used to set campaign variables but... why would someone do this on the home page? Perhaps because they have multiple sites and are tracking hits to each one as a campaign? Is this a good configuration?

 _gaq.push(['_setDomainName', 'somesite.co.uk']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_setCampNameKey', 'John Doe']);
  _gaq.push(['_setCampSourceKey', 'any']);
  _gaq.push(['_setCampMediumKey', 'any']);
  _gaq.push(['_setCampTermKey', 'plumbs']);
  _gaq.push(['_setCampContentKey', 'all']);
  _gaq.push(['_trackPageview']);


推荐答案

您正在考虑更进一步。所有 _setCamp * Key 函数告诉GA在那里查找 Key - 而不是值。仔细查看 GA广告系列中的示例跟踪文档

You're thinking a step further. All the _setCamp*Key functions tell GA there to look in the Key -- not the value. Take a closer look at the examples in the GA Campaign Tracking Docs

这篇关于Google Analytics中的_setCampNameKey使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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