Urchin 6 を使用していますが、最近 Google Analytics も使用し始めました。サイト検索には Google 検索アプライアンスも使用しています。
検索はサブドメイン上にあります。つまり、www.search.mysite.com です。
問題は、Google Analytics がサイト検索を自己参照として追跡していることです。オンラインでたくさん読んだ後、検索サブドメインを取得する必要がある以下のGAコード構成になりましたが、そうではありません。私の設定について誰かが間違っているのを見ることができますか? - 例: GATC リクエストの処理順序は正しいか
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxx-1']);
_gaq.push(['_setLocalRemoteServerMode']);
_gaq.push(['_setLocalGifPath', '/__utm.gif']);
_gaq.push(['_setDomainName', 'mysite.com]);
_gaq.push(['_addIgnoredRef', 'mysite.com']);
_gaq.push(['_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>
この問題は、Google 検索アプライアンスでの GA の構成にあるのではないかと疑っています。GA を追加すると、XSLT で UA コードを要求するだけで、各検索ページで以下のスクリプトを送信します。
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">
<!--
_uacct = "UA-xxxxxxx-1";
urchinTracker();
//--></script>
これが問題でしょうか、それとも XSLT でこのコードを変更する必要があるのでしょうか?
どんな助けでも大歓迎です。ありがとう