Added checking that analytics is setup.