Hi, I want to know how we can create a dynamic header in a HubSpot landing page. In simple terms, we want to create a landing page where, if anyone searches for a specific word, that word will show up in the landing page header with the same context.
Hi @MVerma57! Welcome to the Community-- happy to have you here ![]()
I understand you are looking to have your website header change dynamically based on the keywords searched to find your site, is that correct?
This Knowledge Base article outlines how you can create dynamic pages based on data in CRM objects or a HubDB table. That said, I am not sure this would be possible with a search query keyword. Maybe some of our experts can chime in if this would be possible using custom code. @SteveHTM, @alyssamwilie, or @Anton any suggestions for @MVerma57 or is this not possible?
Best,
Kennedy
@MVerma57 - it seems to me that it should be possible to join the dots here. If you can obtain the search keyword from UTM parameters when you get to the landing page, then you could use HubL to insert the word/phrase into the landing page header (usually a global header partial template).
Does that help?
Steve