Site logo

where to add php tracking code before any HTML output?

Home Forums Support where to add php tracking code before any HTML output?

Home Forums Support where to add php tracking code before any HTML output?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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?

    #68973
    Tom
    Lead Developer
    Lead Developer

    I would go for wp_head.

    Let me know if that works or not 🙂

    #69864
    Tudor M

    For my script to work it didn’t worked with wp_head.

    #70006
    Tom
    Lead Developer
    Lead Developer

    That’s odd – wp_footer worked though? wp_footer is the better option anyways 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.