add analytics code