adds google analytics to application when setting is present

Fixes #502