電子書籍を販売しているクライアントのコンバージョン トラッキングを設定しています。彼は e-junkie をショッピング カート プロバイダーとして使用しているため、セールス ファネルはユーザーを約 4 つの異なるドメインに移動させます。
- domain1.com: クライアントのドメイン - GA トラッキング コードがインストールされている)
- e-junkie.com: ショッピング カート - トラッキング コードを実装できない
- paypal.com: 支払い処理業者 - 追跡コードを実装することは不可能です
- fatfreecartpro.com: e-junkie がホストするサンキュー ページ - 実装されたクロス ドメイン トラッキング コード + e コマース トラッキング
サンキュー ページに e コマース トラッキング コードをインストールしました。GA で正しいトランザクション データが表示されますが、すべてのトランザクションの参照先は e-junkie.com です。
サンキュー ページのトラッキング コードは次のようになります。
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxx-x']);
_gaq.push(['_setAllowLinker',true],['_setDomainName','fatfreecartpro.com'],['_trackPageview']);
(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>
私も追加しようとしました:
_gaq.push(['_link', 'http://www.fatfreecartpro.com/ecom/rp.php']); return false;
domain1.com からショッピング カートを指すすべてのリンクへの onclick イベントとして。
この場合、紹介が上書きされないようにする方法はありますか?