Google 웹 로그 분석 '코드 내 클라이언트 측이 구글 익명 함수를 호출하는 방법구글 웹 로그 분석 자바 스크립트 여기
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20366831-2']);
_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);
})();
입니까? 익명 함수는 당신이 볼 수 있듯이 ()
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})(); // <--- The() calls the anonymous code
로 끝나는 때문에