Added the analytics code