Updated GA code insertion

* Improved script for inserting Google Analytic code. Better error
checking. Fixed bugs.
* Added file containing GA snippet