Cleanup google Analytics init script

Only log when console is defined, don't input the exports on the selfinvoking function, bind the click immediately and finally also log actual button clicks.