chnaging analytics code