我在使用谷歌分析时遇到的问题是它已经困扰了我一段时间了,如下所示:由于我在网站中添加了第三方 iframe,分析推荐变得疯狂,首先他们添加了虚假访问,但是这个通过添加过滤器解决了。但是推荐仍然没有像以前那样注册哪个页面引用该站点...
谷歌分析代码只是标准代码:
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>
知道什么可以在谷歌分析推荐上创建这种组合吗?任何帮助真的很感激谢谢
更新: 在我忘记之前,我确实添加了这样的过滤器: