Fix local analytics not working and bad event value

* Event values must be numeric (not strings)
* Localizing the _gat, _gaq, ga window variables causes problems when
the Google API asyncronously changes them