Home › Forums › Support › where to add php tracking code before any HTML output? This topic has 3 replies, 2 voices, and was last updated 11 years, 1 month ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 26, 2015 at 6:06 am #68872 Tudor M I need to add some php tracking code in header.php before any HTML output. I would like to use wp hooks and not to edit header.php. Which section do I need to select? January 26, 2015 at 10:51 am #68973 TomLead Developer Lead Developer I would go for wp_head. Let me know if that works or not 🙂 January 29, 2015 at 1:51 am #69864 Tudor M For my script to work it didn’t worked with wp_head. January 29, 2015 at 8:28 am #70006 TomLead Developer Lead Developer That’s odd – wp_footer worked though? wp_footer is the better option anyways 🙂 Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In