Page 1 of 1

Google anlytics code

Posted: Sun Jul 09, 2006 1:59 pm
by hgoor
Hi,

I was wondering: I have a Google analytics account and they want you to add some code to your site in order for it to work:

Code: Select all

<!-- Begin Google Analytics -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
_uacct = "UA-XXXXXX-X";
urchinTracker();
// ]]>
</script>
<!-- End Google Analytics -->
Now, I have my blog set where users can choose their own template, default is Serendipty V3 so I added the code to the index.tpl of that template.

However, if people choose another template, obviously that code won't be included.

Is there a way/place where I can set the code to work as an overall setting???

Posted: Sun Jul 09, 2006 2:12 pm
by stm999999999
take a html-nugget? You have to tell your visitors, that you use google-analytics, so take an nugget, insert the javascript. and wrote "this site uses google-analytics" and make a link to a static page (where is the longform as google suggests in http://www.google.com/analytics/en-GB/tos.html part8 privacy).

Posted: Sun Jul 09, 2006 2:39 pm
by hgoor
Hmm, yeah, that might work actually...