도메인 a.com의 분석을 추적하는 데 사용하는 Google 분석 계정이 있습니다. 이제 동일한 계정에 b.com 통계를 추가하고 싶습니다. 무료 Google Analytics 계정 생성을 더 이상 허용하지 않는다는 것을 감안할 때여러 도메인에 대해 하나의 Google Analytics 계정을 보유하는 방법
내가 한 것은 article과 this에 따른 것입니다. 둘 다 동일합니다.
코드는 여기 아래에 있습니다. b.com 도메인에서
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35089154-8']);
_gaq.push(['_setDomainName', 'www.a.com']);
_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>
나는 코드
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35089154-8']);
_gaq.push(['_setDomainName', 'www.b.com']);
_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>
아래에있는 그러나 b.com의 정적 구글 분석 계정에 표시되지 않는 이유는 무엇입니까? 이 문제를 어떻게 해결할 수 있습니까?
Google Analytics는 무료입니다. – MXMLLN