• Welcome to MUGOO Message Board.
 

News:

Many thanks to Dan Millar for creating our board logo, the "mapple"! 
To go to the main MUGOO website, click the big banner above ...

Main Menu

Adding HTML code for Google Analytic Tools to iWeb

Started by pbridges, August 20, 2012, 06:33:58 PM

Previous topic - Next topic

pbridges

I move my website from MobileMe to GoDaddy. It works fine but I miss the Hit Counter that MobileMe supported.
It was suggested that I use Google Analytic Tools to show website usage, its free so I registered for it.
It requires me to add HTML code to my website.
I tried adding an HTML Snippet Widget in iWeb to the first page of the website.
But when I upload the changes then use View Source in Safari, the added HTML code is not there,
and the Google Analytic Tools show 0 use.

I know I am doing something wrong, but I do not know enough to debug it.
Any suggestions.

I am using iWeb 3.04 on OS 10.6.8 on an iMac.

AdminMan

It would help if you supplied the URL for the page with the problem on it. Then we could look at the code and perhaps see the problem ...

pbridges

Thank you for helping. The URL is:
http://pbridges.ca/Photos/Welcome.html

I put in the HTML Snippet in various places as I do not understand where it should go,
but it is now in the upper right corner (approx).

AdminMan

Unfortunately I misread your original post. I thought the code was there but not working. It sounds like iWeb is not properly inserting the code on the page, but since I don't have or use iWeb, I can't say why.

If iWeb allows you to view the source of the page before uploading, I would suggest pasting in the Google HTML in that view. Put it just above the group of "div"s that surround the title line "Paul Bridges' site of old photographs" and see if that works.

If it does, you can fiddle with the position later. If it does not, check http://reviews.cnet.com/8301-13727_7-10330204-263.html

pbridges

Thank you for helping, the CNET review has a link to an Apple Discussion Group on the subject from 2009.
They recommend :

*HTML snippets do indeed work.*
When you choose to insert an HTML Snippet, iWeb-09 always places it in the body of the page. If you try to move it elsewhere, it won't go. Instead, it simply pushes the boundary between the parts to enlarge the body.
You must put the snippet into the page 'Footer'. To move the snippet into the Footer, you must hold down the Command (Apple) key when moving it. That's all.

I have followed this but I now think my code did work before but because Google Analyctics does not report on usage until the next day and I could not find the code on the WebSite I thought it was not working.
My guess is that they are making you put it in the footer because in  most people's websites the stuff in the footer is repeated on every page, and having a footer is the default.
This gives you the full power of Google for hits on every page.

But I do not use footers (I added one to the first page only to obey the recommendation), and I am only interested in the hits on the first page.
Thank you for your help.