Generic Scripts to add Google Analytics code to HTML pages

Analytics, Google, Shell Script
Before I start, this tip is Unix friendly (not just OSX), but requires you to know what shell scripts are and how you create/run them. Additionally you should be familiar with the workings of the "find" command in Unix.I had lots of trouble getting the Google Analytics code onto my gallery site. The problem is that I use iWeb to create a front end that links to a discrete back end (ie: specific subdirectories generated by Photoshop, iPhoto or Aperture). I found this Automator script earlier, but it seems like every time I run the script on a Folder, the script only changes .html pages created by iWeb....Weird. So after some head scratching and googling, I found the following complementary scripts on RSVP - Xnews site. There is a certain…
Read More