Google anlytics code

Having trouble installing serendipity?
Post Reply
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Google anlytics code

Post 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???
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post 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).
Ciao, Stephan
hgoor
Regular
Posts: 297
Joined: Thu Jan 06, 2005 11:46 am

Post by hgoor »

Hmm, yeah, that might work actually...
"If life is worth living, it's worth documenting" -- Adam Curry ("Podfather")

Bloggers@large: http://www.vandegoor.com
iLounge Radio: http://www.hostingperfect.net:8004/listen.pls
Post Reply