analytics code addition