Analytics on MobileMe - Now Closed


While MobileMe is closed you can still use this way of adding the analytics code to your pages. The requirement is that you can edit the files directly from your Mac. Mobile me offered this, but if you have regular Apple File Sharing access to your web folder you are fine. “iDisk” is just called what your service provider decided.

When you publish with iWeb to MobileMe iWeb logs on to your iDisk where it updates the web pages of your site. This is also true if you use a personal domain with Mobile Me.

You find those web pages here

Open the Sites folder like this

Here you see the files which make up your web site. The Analytics code only needs to be added to the html files, but it is easiest to select the folder.

Note: On Mac OS X 10.5 the automator action did not work (as in “does nothing”) if you have turned iDisk syncing on in System Preferences->MobileMe.

Make sure the folder for your web site is selected (blue).

Hold down the control key and click the folder to bring up the menu with things to do to that folder.

Pick More->Automator->Add Analytics (the name you chose when when saved as Finder Plugin)

With the current setup on Google Analytics web pages you point to the index.html file which you can also see on the image above at the 2nd red arrow. You also need to add the code to this index.html file. This main index file is a small file which redirects to the one of your sites which you have chosen as default.

After a few seconds (15 sec - sometimes Automator needs to wake up) the Add Analytics script will start which you can see in the the menu in the top of your screen.

It will take 20 seconds (a minimal site) to some minutes (for a larger site).


You want to see that the code it there.

Start Safari and visit your site.

This is the shortcut icon in iWeb, but you go there any way you wish.

In Safari pick “View Source”

Scroll all the way down in the code and if you you see something like what is blue below, the code is added.

You can also check if it sent the little message to Google that you just visited the page.

Pick Safari’s Activity Window.

You will get a long list (don’t have 10 Safari windows open when you do this) of things Safari has loaded from the web, but the Google Analytics “count” is just 35 bytes.

Even though Safari has sent the count to Google, Analytics takes as much as 24 hours to update the statistics.

Automator - Save as Application

If you got this working, you may think it is more flexible than you need if you have only one web site you update.

Then follow the Save as Application instructions.


If you like this software, please support my efforts with in keeping it up to date until this feature gets built into iWeb. It is a small piece of software so I sell it for only $7.95

I must collect Danish VAT if you live in the EU.


Contact Henrik Dalgaard at:

More Software From Echo One


DoubleTake is the "nano" of stitching software. Drag & drop your images onto or into DoubleTake, arrange them, and check the overlaps. When you are done - save and perhaps copy and paste the result to iPhoto.

File Juicer

File Juicer lets you extract/recover images, video, audio and text from files, folders, flash cards and iPods.

File Juicer will extract images from PDF, PowerPoint, Excel or Word just as it will extract them from flash cards. It considers all files as the peel of an orange which can be removed and the contents extracted

Copyright 2007-2009 - Echo One || Contact Henrik Dalgaard at: