How can you add code to the header of a specific builder page?

How can you add code to the header of a specific builder page (i.e. not across all pages)?

Hi @john,

What exactly do you mean by “header of a specific builder page”? Are you referring to the head tag in the html document? Or a specific header component you built? What kind of code are you trying to add? Let me know and I’ll see what I can try and figure out to help you.

Hey Korey!

Yes, I’m referring to the head tag in the HTML document.

I am trying to add a tracking pixel to individual pages (vs site-wide). It’s a few lines of javascript code.

I see. What is the tracking library you are using, and does it absolutely need to be in the head of the page? Depending on the use case, it might be totally acceptable (and easier) to add your page specific tracking code to each page via a custom code block. Have you tried that to see if it works for you?

Hey Korey,

We added the code via custom code block and it did work for us in this case.

For future reference, does builder allow you to edit the <head> tag of an individual page?

If you use us for hosting we currently don’t, but for those reading this thread who do their own hosting you can use custom fields for this like this

1 Like