继承人我的传奇 - 我试图将http://www.example.com链接到我的购物车https://secure.example.com,但它并未似乎正确链接。尝试将http://www.example.com链接到https://secure.example.com上的购物车
继承人我的代码:
<!--Google Analytics -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-125xxxxx-1");
//start cart link
pageTracker._setDomainName(".example.com");
pageTracker._setAllowHash(false);
//end cart link
pageTracker._trackPageview();
} catch(err) {}</script>
<!--Google Analytics -->
注意两条线:
pageTracker._setDomainName(".example.com");
pageTracker._setAllowHash(false);
我添加的第一线,所以我可以分享网站和购物车之间的饼干,并添加setAllowHash确保它使用cookie中的utm值,并且当我输入https://secure.example.com时没有'重新创建'它们。
使用firecookie,它确实在网站和购物车之间共享相同的cookie,cookie域为'example.com'。
虽然我很确定,如果它正常工作,我所有的utmz,utma值等应该被复制并保持不变,但它们正在改变。我已经复制了所有发送到谷歌分析并粘贴在下面的参数。它显示了从我的主页,到我的产品页面,然后到订购之前到购物车的所有内容。 (我不能实际测试自己的最后一页不买东西,所以我会发布后,如果需要从我们的确认页面的代码。)
这里所说:
===============================================================
HOMEPAGE - http://www.example.com
----------------------------------------------------------------------------------------
utmac UA-125xxxxx-1
utmcc __utma=1.1920057171.1269446996.1269446996.1269446996.1;+__utmz=1.1269446996.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
utmcs UTF-8
utmdt GSM Cell Phone Rental from example
utmfl 10.0 r45
utmhid 69978133
utmhn www.example.com
utmje 1
utmn 1806413990
utmp/
utmr -
utmsc 24-bit
utmsr 1280x800
utmul en-gb
utmwv 4.6.5
PRODUCT PAGE - http://www.example.com/products/international-cell-phone-purchase/
----------------------------------------------------------------
utmac UA-125xxxxx-1
utmcc __utma=1.1920057171.1269446996.1269446996.1269446996.1;+__utmz=1.1269446996.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
utmcs UTF-8
utmdt example | International Cell Phones
utmfl 10.0 r45
utmhid 276151647
utmhn www.example.com
utmje 1
utmn 155808433
utmp /products/international-cell-phone-purchase/
utmr 0
utmsc 24-bit
utmsr 1280x800
utmul en-gb
utmwv 4.6.5
CART STAGE 1 - https://secure.example.com/checkout/viewbasket.php
------------------------------------------------
utmac UA-125xxxxx-1
utmcc __utma=60286578.994269564.1269447144.1269447144.1269447144.1;+__utmz=60286578.1269447144.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/products/international-cell-phone-purchase/;
utmcn 1
utmcs UTF-8
utmdt Your Cart
utmfl 10.0 r45
utmhid 1802074903
utmhn secure.example.com
utmje 1
utmn 1621444199
utmp 1-reviewcart
utmr http://www.example.com/products/international-cell-phone-purchase/
utmsc 24-bit
utmsr 1280x800
utmul en-gb
utmwv 4.6.5
CART STAGE 2 - https://secure.example.com/checkout/docheckout.php
------------------------------------------------
utmac UA-125xxxxx-1
utmcc __utma=60286578.994269564.1269447144.1269447144.1269447144.1;+__utmz=60286578.1269447144.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/products/international-cell-phone-purchase/;
utmcs UTF-8
utmdt Checkout
utmfl 10.0 r45
utmhid 871670520
utmhn secure.example.com
utmje 1
utmn 1153927228
utmp 2-checkout
utmr 0
utmsc 24-bit
utmsr 1280x800
utmul en-gb
utmwv 4.6.5
CART STAGE 3 - https://secure.example.com/checkout/doreview.php
----------------------------------------------
utmac UA-125xxxxx-1
utmcc __utma=60286578.994269564.1269447144.1269447144.1269447144.1;+__utmz=60286578.1269447144.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/products/international-cell-phone-purchase/;
utmcs UTF-8
utmdt Checkout
utmfl 10.0 r45
utmhid 1731598159
utmhn secure.example.com
utmje 1
utmn 1442257710
utmp 3-checkoutreview
utmr 0
utmsc 24-bit
utmsr 1280x800
utmul en-gb
utmwv 4.6.5
===============================================================
正如你所看到的, utma值没有被保存,所以它看起来像一个配置问题。我研究过这个帮助,但没有一个案例似乎适合我。
我希望有人能为此提供帮助,这是我一段时间以来的一个持续问题,并且最终能够成功建立坚如磐石的可靠分析。
嗨,你能不能从您的购买收据页面发布GA代码(修改GATC)(即页面,您初始化交易对象?好的,如果只是差异 – doug 2010-03-24 20:16:17
继承人一个pastebin,它已经包含电子商务的东西。这似乎记录在分析中,它只是网站'链接' http://pastebin.com/xQGF6sk0 – 2010-03-25 09:52:38