Fixing google analytics overrides 

Google analytics is not working if you try to import ga to another project
also cleaned up some null reference issues