# HUBDB: customize dynamic page head?

**URL:** <https://community.hubspot.com/t/hubdb-customize-dynamic-page-head/35245>\
**Category:** CMS Development\
**Tags:** design-manager, hubdb\
**Created:** [April 9, 2021, 2:41pm UTC](https://community.hubspot.com/t/hubdb-customize-dynamic-page-head/35245 "2021-04-09T14:41:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielSanchez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danielsanchez/32/48193_2.png) [@DanielSanchez](https://community.hubspot.com/u/DanielSanchez)\
**Post date:** [April 9, 2021, 2:41pm UTC](https://community.hubspot.com/t/hubdb-customize-dynamic-page-head/35245/1 "2021-04-09T14:41:06Z")

</div>

Hello Champions!

I need to insert a DataLayer script on my product pages. The problem is that each product should have a different script on the head, but I use a single template for all product pages as it is HubDB.

How could I customize the head scripts for each product page created dynamically in HubDB?

URL of our page: [https://ead.univali.br/cursos-graduacao/administracao-ead](https://ead.univali.br/cursos-graduacao/administracao-ead)

Thanks!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [April 9, 2021, 6:38pm UTC](https://community.hubspot.com/t/hubdb-customize-dynamic-page-head/35245/2 "2021-04-09T18:38:56Z")

</div>

Heyo!

Wonder what @piersg , @Kevin-C and @rikkilear think about this!

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [April 10, 2021, 3:00pm UTC](https://community.hubspot.com/t/hubdb-customize-dynamic-page-head/35245/3 "2021-04-10T15:00:26Z")

</div>

Hi @DanielSanchez,  
We’re talking about js scripts, right?  
There are two ways that come to my mind. (sorry @piersg for jumping in 😉)  
1. Add a column into your HubDB where you place the URL to the script and call/load it in the template  
2. If your scripts have the same nameimg-convention like my-script-1.js, my-script-2.js… you could add another column into the HubDB where you place only the last/changing bit in. On your template you could do something like  
\<script src=“my-script-{{row.js\_number}}.js”\>\</script\>  
(Sorry for not using the code view - typing from my phone)  
Hope this helps  
Best, Anton
