Placed the analytics code in the wrong place