h1. Static GA
Sometimes with static html websites or with inappropriately developped websites (but the client doesn't wish to redevelop it appropriately), it's quite a pain in the ass to add the Google Analytics tag to hundreds of files.
That's what Static GA tries to remove by parsing every file, looking if it already has the Google Analytics tag yet or not.
And if it doesn't have it, adding it.
h2. How it works
Download the application (it'll soon be a gem using rake).
And launch analytics.rb with two parameters :
- The first one is the directory that you wish to recursively parse
- The second one is your Google Analytics code. For example : UA-6352751-33
It'll launch the script and display to you the path of every updated file.
h2. Requirements
The only required package is rake.
h2. Example
rake static_ga
The path to the project and the GA code will be asked to you.
h2. TODO