[TYPO3-english] Configure google analytic for subdomain
Dimanche Eat
dimanche at web-essentials.asia
Mon Apr 30 12:26:24 CEST 2012
Hi all,
I can not make my sub domain works with google analytic at all by trying
the script below after doing a research.
# Sub domain
lib.ganalytics = TEXT
lib.ganalytics.value (
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXX-X']);
_gaq.push(['_setDomainName', '.example.com']);
_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>
)
Could anyone give me some hints? Really appreciate for any inputs.
Thanks a lot,
Dimanche
More information about the TYPO3-english
mailing list