analytics code update