adds google analytics to application when setting is present