しばらくの間頭を悩ませてきたGoogleアナリティクスの問題は、次のとおりです。サードパーティのiframeをWebサイトに追加して以来、アナリティクスの紹介が狂っています。最初は偽の訪問を追加していましたが、これはフィルターを追加することで解決しました。しかし、紹介者は、以前のように、どのページがサイトを参照しているかをまだ登録していません...
Google アナリティクス コードは単なる標準的なものです。
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxx-1']);
_gaq.push(['_setDomainName', 'xxxxxxx.xxx']);
_gaq.push(['_setAllowLinker', true]);
_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);
})();
クリックまたは関数呼び出しを追跡するための別のプッシュ イベントがあり、iframe 内の分析は次のとおりです。
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxx-3']);
_gaq.push(['_setDomainName', 'b.xxxxxxxxxx.com']);
_gaq.push(['_trackPageview']);
_gaq.push(['external._setAccount', 'UA-xxxxxxxx-1']); //this is my domain ga number
_gaq.push(['external._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 type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 979036530;
var google_conversion_language = "da";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "-BBnCIbQiwUQ8tLr0gM";
var google_conversion_value = 0;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
Google アナリティクスの紹介でこのミックスを作成している理由は何ですか? どんな助けでも本当に感謝しています
更新:
忘れる前に、次のようなフィルターを追加しました: