analytics code updated