Google Analytics跟踪代码自定义选项

Filed under: 互联网络 |
Posted on

1.识别其他搜索引擎

pageTracker._addOrganic(“bigsearch”, “;q”);

example: pageTracker._addOrganic(“baidu”, “word”);

2.为Cookie设置域名

pageTracker._setDomainName(“example.com” );

3.自定义广告系列变量

pageTracker._setCampNameKey( “ga_campaign”); // name

pageTracker._setCampMedKey(“quot;ga_medium”quot;); // medium

pageTracker._setCampSrcKey(“quot;ga_source”quot;); // source

pageTracker._setCampTermKey( “quot;ga_term”quot;); // term/keyword

pageTracker._setCampContentKey(“quot;ga_content”quot;); // content

pageTracker._setCampIdKey( “quot;ga_id”quot;); // id number

pageTracker._setCampNOKey(“quot;ga_nooverride”quot;); // don’t override

4.启用链接器功能(1=打开|0=关闭)

pageTracker._setAllowLinker(true);

5.设置非活动会话超时(以秒计)

pageTracker._setSessionTimeout(“3600″);

6.与 Urchin 一起使用 Google Analytics(分析)

pageTracker._setLocalRemoteServerMode();

7.使用”|”之外的字符作为电子商务字段的分隔符

pageTracker._setTransactionDelim(“^”);

Trackback url : u can trackback from your own site
分享到新浪微博

Leave a Reply