0

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 アナリティクス スニペットが挿入されています (ただし、コンバージョン ページにアナリティクス スニペットがない場合もあります)。
4

2 に答える 2

0

siteopt.jsテストの組み合わせをユーザーに割り当てるために GWO がロードするコードのコードを読むと、_udn変数は をサポートしていないように見えますが、Cookie ドメインのスコープを設定する必要があるのは実際の'none'値のみです。代わりに (つまりの代わりに) GWO コードがあるページで使用されているドメインに設定してみてください。'my.domain.com''none'

于 2012-05-04T20:01:29.700 に答える
0

ランディング ページのスニペットには次のものがあります。 _gaq.push(['gwo._setAllowLinker', 'true']);

Google のドキュメントを見ると、リンカを有効にする正しい方法が次のとおりであることがわかります。 _gaq.push(['gwo._setAllowLinker', true]); // TRUE is not eclosed in apostrophes

お役に立てれば。

于 2012-06-08T17:44:57.540 に答える