我在两个域中设置了三个GWO多变量测试。我已正确设置了目标网页,并且正在跟踪所有三个测试的访问者,但是没有为任何测试记录转化。我已按照Google为cross-domain tracking提供的说明进行操作,但仍然没有骰子。
以下是目标网页摘要(已移除ID):
<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>
标记之前的页脚中。这是由于网站的构建方式。答案 0 :(得分:0)
从阅读GWO加载的siteopt.js
代码代码到为用户分配测试组合时,似乎_udn
变量不支持'none'
,而只支持实际值应该限定cookie域。尝试将其设置为其上包含GWO代码的页面所使用的域名(i 'my.domain.com'
而不是'none'
)。
答案 1 :(得分:0)
在您的目标网页摘要中,您有:
_gaq.push(['gwo._setAllowLinker', 'true']);
如果您查看Google文档,您会发现启用链接器的正确方法是:
_gaq.push(['gwo._setAllowLinker', true]); // TRUE is not eclosed in apostrophes
希望这会有所帮助。