move page tracking out of head tag