analytics code at the top