Google Site Optimizer没有跟踪跨网域转换 [英] Google Site Optimizer not tracking cross-domain conversions
问题描述
我已经在两个域中设置了三个GWO多变量测试。我的着陆页设置正确,并且正在跟踪所有三项测试的访问者,但没有任何人记录转换。我已按照Google提供的 以下是着陆页代码段(删除了ID): 以下是转换页面代码片段: 几个小问题: 在您的着陆页片段中,您有: 如果您查看Google文档,您会发现启用链接器的正确方法是: 希望这有帮助。 I've set up three GWO multivariate tests across two domains. I've got the landing page set up correctly, and it's tracking visitors for all three tests, but conversions aren't being recorded for any of them. I've followed the instructions Google provides for cross-domain tracking, but still no dice. Here's the landing page snippet (IDs removed): And here's the conversion page snippet: A few gotchas:
< script>
//允许多域名追踪
_udn =none;
< / script>
<! - Google网站最佳化工具控制脚本 - >
< script>
函数utmx_section(){}函数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 (csubstring(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 / javascriptcharset =utf-8>< / sc'+'ript>')} )();
< / script>
<! - Google网站优化工具控制脚本结束 - >
<! - Google网站最佳化工具追踪指令码 - >
< 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 =文档.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga,s);
})();
< / script>
<! - Google网站优化工具跟踪脚本结束 - >
<! - Google网站优化工具转换脚本 - >
< 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 =文档.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga,s);
})();
< / script>
<! - Google网站优化工具转换脚本结束 - >
< / body>
标记之前的页脚中。这是由于该网站的构建方式。
_gaq.push(['gwo._setAllowLinker','true']);
_gaq.push(['gwo._setAllowLinker',true]); // TRUE在撇号中没有被封闭
<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>
tag. This is due to the way the site is built.
In your landing page snippet you have:
_gaq.push(['gwo._setAllowLinker', 'true']);
If you take a look at Google documentation you will find out that the correct way to enable the linker is:
_gaq.push(['gwo._setAllowLinker', true]); // TRUE is not eclosed in apostrophes
Hope this helps.
这篇关于Google Site Optimizer没有跟踪跨网域转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!