Put analytics code in the right place. Duh.