check analytics is defined to keep app working if it runs without settings file