Don't define 'undefined'
Add google analytics. closes gh-1