Add analytics code