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
Merge pull request #807 from kabel/bugfix-local-analytics

Fix local analytics not working and bad event value