我已經在兩個域中設置了三個GWO多變量測試。我的着陸頁設置正確,並且正在跟蹤所有三項測試的訪問者,但沒有任何人記錄轉換。我遵循Google爲cross-domain tracking提供的說明,但仍然沒有骰子。Google Site Optimizer沒有跟蹤跨域轉換
這裏的着陸頁片段(IDS刪除):
<script>
// Allows for multiple-domain tracking
_udn = "none";
</script>
<!-- Google Website Optimizer Control Script -->
<script>
function utmx_section(){}function utmx(){}
(function(){var k='xxxxxxxxxx',d=document,l=d.location,c=d.cookie;function f(n){
if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return escape(c.substring(i+n.
length+1,j<0?c.length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;
d.write('<sc'+'ript src="'+
'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com'
+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='
+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
'" type="text/javascript" charset="utf-8"></sc'+'ript>')})();
</script>
<!-- End of Google Website Optimizer Control Script -->
<!-- Google Website Optimizer Tracking Script -->
<script>
var _gaq = _gaq || [];
_gaq.push(['gwo._setAccount', 'UA-xxxxxxxx-x']);
_gaq.push(['gwo._setDomainName', 'none']);
_gaq.push(['gwo._setAllowLinker', 'true']);
_gaq.push(['gwo._trackPageview', '/xxxxxxxxxx/test']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- End of Google Website Optimizer Tracking Script -->
而這裏的轉換網頁摘要:
<!-- Google Website Optimizer Conversion Script -->
<script>
var _gaq = _gaq || [];
_gaq.push(['gwo._setAccount', 'UA-xxxxxxxx-x']);
_gaq.push(['gwo._setDomainName', 'none']);
_gaq.push(['gwo._setAllowLinker', true]);
_gaq.push(['gwo._trackPageview', '/xxxxxxxxxx/goal']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- end of Google Website Optimizer Conversion Script -->
幾個陷阱:
- 轉換腳本片段在頁腳之前,在關閉
</body>
之前標籤。這是由於網站的建立方式。 - 轉換頁面的網址是可變的,具體取決於訪問者通過其之前的渠道的方式。
- 轉換頁面的登錄頁面&的GWO代碼段後面插入了Google Analytics代碼段(儘管在一種情況下,轉換頁面上沒有Google Analytics代碼段)。
而事實證明,我錯過了http://support.google.com/websiteoptimizer/bin/answer.py?hl=zh_CN&answer=151978上的第4步。所以,請確保始終遵循所有步驟... – jeffbyrnes 2012-03-06 22:26:17
或者,即使第4步設置正確,您仍然無法正常工作。幫助,任何人? – jeffbyrnes 2012-03-08 21:27:33