change the way of loading analytics