How do I add a site meter to my site?

Having trouble installing serendipity?
Post Reply
jenstewart
Regular
Posts: 49
Joined: Mon Oct 02, 2006 7:50 pm
Location: California

How do I add a site meter to my site?

Post by jenstewart »

I'm not sure if this is the right place to post this and I apologize if I posted in the wrong section.

I just signed up for a free site meter http://www.sitemeter.com and I'm not altogether sure where or how to insert the Javascript HTML

Does anyone else use this site meter, and can anyone help me as to how to add it to my site?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How do I add a site meter to my site?

Post by garvinhicking »

Hi!

Hm, I wasn't able to navigate the page where they post what code needs to be inserted.

Usually you should just put a HTML nugget sidebar plugin onto your page, or if you'd like it more hidden you edit the "index.tpl" file of your template to insert that code?

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jenstewart
Regular
Posts: 49
Joined: Mon Oct 02, 2006 7:50 pm
Location: California

Post by jenstewart »

thank you. I guess what I have the question on is HOW to insert that code. What file do I open, and how do I open it. Do I open up my FTP program and access the file there, in the administration area of my blog etc.

Thanks again!
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

No need to open any files. Just go to your admin page, "Configure Plugins", "Click here to install a new sidebar plugin", and install an "HTML Nugget". You'll be taken to its configuration page. Add the HTML you want (make sure you're using the plain-text editor, or the tag-mode of the WYSIWYG editor).

The HTML should now appear in your sidebar.

If you need to insert code into your document's HEAD section, look in the event plugins for a "Head Nugget". It does the same as an HTML Nugget, but in the document's head.
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

First you need to locate the name of your theme inside the "templates" directory via FTP. Then you go to that directory of your theme and see if it has an "index.tpl" file. If it has, download that file, insert the code into the HTML file and re-upload it.

If you do not have such a file, download the index.tpl inside the templates/default/ directory, edit it and reupload it into the directory of your selected template!

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply