2 つのドメインにわたって 3 つの GWO 多変量テストをセットアップしました。ランディング ページは正しく設定されており、3 つのテストすべてで訪問者を追跡していますが、いずれのテストでもコンバージョンが記録されていません。Google が提供するクロスドメイン トラッキングの指示に従いましたが、サイコロは出ません。
ランディング ページのスニペットは次のとおりです (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>
タグの前にあります。これは、サイトの構築方法によるものです。 - コンバージョン ページの URL は、訪問者がその前の目標到達プロセスをどのように進むかによって異なります。
- ランディング ページとコンバージョン ページの両方で、GWO スニペットの後に Google アナリティクス スニペットが挿入されています (ただし、コンバージョン ページにアナリティクス スニペットがない場合もあります)。