Site logo

Archived topic

where to add php tracking code before any HTML output?

3 replies · Started by Tudor M on January 26, 2015

Viewing posts 1–4 of 4

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?

I would go for wp_head.

Let me know if that works or not :)

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

That's odd - wp_footer worked though? wp_footer is the better option anyways :)

This archived topic is closed to new replies.