[TYPO3-english] Configure google analytic for subdomain
Kay Strobach
typo3 at kay-strobach.de
Mon Apr 30 13:12:43 CEST 2012
Hi,
you need to register the subdomain @GA.
Is the code inserted in the html output?
Regards
Kay
Am 30.04.2012 12:26, schrieb Dimanche Eat:
> 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
--
http://www.kay-strobach.de - Open Source Rocks
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
Answer was useful: https://flattr.com/profile/kaystrobach
More information about the TYPO3-english
mailing list