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

**URL:** <https://forum.builder.io/t/how-can-you-add-code-to-the-header-of-a-specific-builder-page/59>\
**Category:** CMS\
**Tags:** visual-editor, custom-code\
**Created:** [April 23, 2020, 9:17pm UTC](https://forum.builder.io/t/how-can-you-add-code-to-the-header-of-a-specific-builder-page/59 "2020-04-23T21:17:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![john](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/john/32/20_2.png) [@john](https://forum.builder.io/u/john)\
**Post date:** [April 23, 2020, 9:17pm UTC](https://forum.builder.io/t/how-can-you-add-code-to-the-header-of-a-specific-builder-page/59/1 "2020-04-23T21:17:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![korey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/korey/32/12_2.png) [@korey](https://forum.builder.io/u/korey)\
**Post date:** [April 24, 2020, 4:33pm UTC](https://forum.builder.io/t/how-can-you-add-code-to-the-header-of-a-specific-builder-page/59/2 "2020-04-24T16:33:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![john](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/john/32/20_2.png) [@john](https://forum.builder.io/u/john)\
**Post date:** [April 24, 2020, 4:47pm UTC](https://forum.builder.io/t/how-can-you-add-code-to-the-header-of-a-specific-builder-page/59/3 "2020-04-24T16:47:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![korey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/korey/32/12_2.png) [@korey](https://forum.builder.io/u/korey)\
**Post date:** [April 24, 2020, 5:04pm UTC](https://forum.builder.io/t/how-can-you-add-code-to-the-header-of-a-specific-builder-page/59/4 "2020-04-24T17:04:12Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![john](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/john/32/20_2.png) [@john](https://forum.builder.io/u/john)\
**Post date:** [April 28, 2020, 1:16pm UTC](https://forum.builder.io/t/how-can-you-add-code-to-the-header-of-a-specific-builder-page/59/5 "2020-04-28T13:16:04Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![steve](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/steve/32/78_2.png) [@steve](https://forum.builder.io/u/steve)\
**Post date:** [April 28, 2020, 8:57pm UTC](https://forum.builder.io/t/how-can-you-add-code-to-the-header-of-a-specific-builder-page/59/6 "2020-04-28T20:57:49Z")

</div>

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](https://www.builder.io/c/docs/custom-fields) for this like this
