Skip to content

Instantly share code, notes, and snippets.

@stevenscg
stevenscg / google-analytics-for-static-sites.sh
Created June 25, 2013 16:16
Add Google Analytics tracking to an existing static website
#!/bin/sh
#
# Add a Google Analytics tag to static website files
# @see http://adambuchanan.me/post/26345221717/updating-google-analytics-code-on-many-static-pages
# Tested on MacOS 10.8.X
#
# Usage:
# Set the GA parameters below
# Execute the script from the top-level of the static site
#