**Function:** Adds Google Analytics code to an iWeb published web site.
**Author**: [Echo One](http://echoone.com/)
**Input**: (Files/Folders) The folder with websites published from iWeb
**Output**: Files/Folders) The folder of iWeb websites with the added Google Analytics code
**Notes**:
Warning: This will add the Google Analytics code to all HTML files inside the folder you specify. This will only change the exported HTML code - not touch anyting in iWeb
This is a great Google tool
Comment by Erik — June 6, 2007 @ 2:56 pm
Hum… why is it that the HTML code looks like this after I apply the Automator script. What is the issue here? ( //<![CDATA[ )
WHAT I END UP WITH:
//
WHAT I SHOULD HAVE:
_uacct = “ZZ-123456-1”;
urchinTracker();
Comment by Francois La Roche — October 1, 2007 @ 2:51 pm
Francois,
Did you figure it out yet? Mine adds the same line.
Gary
gary.paul@comcast.net
Comment by Gary Paul — November 17, 2007 @ 9:28 pm
This is a great tool, thanks!
Google has new code. Do you have plans to update the action with the new code or is it easy to modify your action with the new code?
Thanks,
Seamus
Comment by Seamus Berkeley — December 31, 2007 @ 1:29 am
I used the Add Google script. It worked perfectly. But it disabled all the comments, which the website says was suppose to be fixed. Has this been updated for iWeb 08?
Comment by Clifford — January 31, 2008 @ 11:37 pm
hi,
Can somebody help me…. i have created my site …. and ive downloaded automator.
Ive tried publishing to a folder then selecting the automator to run on that folder.. but it still doent track it in google analytics? Do I have to then publish to .mac after running the automator?? Im confused…. please help.
Comment by Amy — July 21, 2008 @ 2:49 pm