Dns 谷歌分析多域别名网站
我有多领域的网站,但我不确定,如果我跟踪它在良好的方式 主域名:www.domain.com 域名别名:www.Domain.sk、www.Domain.cz(每个都显示来自.COM但使用其他语言的内容) 我在analytics中创建了多域web的新配置文件 我的追踪码:Dns 谷歌分析多域别名网站,dns,google-analytics,aliases,Dns,Google Analytics,Aliases,我有多领域的网站,但我不确定,如果我跟踪它在良好的方式 主域名:www.domain.com 域名别名:www.Domain.sk、www.Domain.cz(每个都显示来自.COM但使用其他语言的内容) 我在analytics中创建了多域web的新配置文件 我的追踪码: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'ACCOUNT_I
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'ACCOUNT_ID']);
_gaq.push(['_setDomainName', 'domain.<? echo $url_localization; ?>']);
_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);
})();
</script>
var _gaq=_gaq | |[];
_gaq.push([''设置帐户','帐户ID']);
_gaq.push(['''u setDomainName','domain.']);
_gaq.push([''设置Allowlinker',true]);
_gaq.push([''u trackPageview']);
(功能(){
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);
})();
这条路对吗?如何按域筛选分析中的访问?如果您不需要跨多个域跟踪访问者(请参阅),我认为更好的解决方案是创建更多单独的属性(在一个GA帐户内)。您将需要更改每个网站上的UA-XXXXXX-X id号,但您不必使用过滤器,而且这将有助于避免数量限制(目前每个财产1000万,但谷歌尚未严格应用)