Move main process analytics load inside deviceready