Site logo

Archived topic

Which hook to use for just below the head tag?

5 replies · Started by Lee on October 18, 2021

Viewing posts 1–6 of 6

Hi.

I want to add a Facebook Pixel event code which needs to go just below the </head> tag. Using Elements, which hook would be the correct one to use?

Thanks in advance!

Lee

Hi Leo.

I already have the base Pixel hooked into the wp_head via elements. I'm now trying to add a purchase event code and Facebook says the following:

- Place the event code on your order confirmation page or purchase completion page.
- Add the event code just below the </head> tag. This allows the event code to load along with the pixel code when the page loads.

Sounds good.

This archived topic is closed to new replies.