UPDATE: The proper way to add Google Analytics to your iWeb site is either through iWeb SEO Tool or SEIntelligence. Please click on the links to watch the proper way of adding Google Analytics using these tools.
Google Analytics is a fantastic tool for getting every sort of statistic for your site that you could ever dream of. It is so much more than number of visitors to your site, and if you are serious about your iWeb site you need the sort of information Analytics can provide.
Why is Google Analytics such a good idea? I hear you ask. As I mentioned above it will give you the number of visitors to your site, but it can give you a lot more. It will tell you which browser, operating system, screen size and resolution of your visitors which is information vital to you when considering the design of your site. It will break down your most popular pages and, of course your least popular so you know what sort of imformation visitors come to your site for.
You can find out where the majority of your visitors are coming from in the world to help you tailor a page or 2 toward them. Analytics is also slowly but surely intergrating adsense so you can check your revenue at the same time. There’s loads it will do and it will all help you to make your site better.
You should really check out what Google Analytics can do for your site, and adding it is so easy you will wonder why you hadn’t bothered before.
All you have to do is sign up for a Google account, if you don’t already have one, then head over to the Analytics homepage. You enter your site details and Google will give you a bit of code to insert on every page you want analysised. Highlight the code, copy it and then paste it into a new Text Editor page. At the end of the code add ‘</body>’ (without speech marks) Save it. You will need it again everytime you create a new page.
Now open your site in iWeb and then publish to a folder. Now open MassReplaceIt (you must have this app already, if not visit HexMonkey Software and download it).
In the ‘find’ window insert </body> then open up that Text Editor file you saved earlier. Copy all of the code from TextEditor and paste it into the ‘Replace with’ window of MassReplaceIt.
Switch to the ‘file’ tab and drag an drop your web folder onto the space provided. Hit ‘Replace’ and confirm all the changes.
Publish your site as normal. That’s it, job done. All you have to do now is resist the urge to check your stays every 5 minutes.
If you don’t want Analytics on every page you can just select the individual pages and add them to MassReplaceIt rather than the whole folder. Remember to save the query to use again later.