changed code to analytics testing mode