simplified method for initializing analytics