Intial commit

Added a google analytics function and a test.