Populate webpage title from a variable | Community
Skip to main content
New Participant
April 30, 2024
Solved

Populate webpage title from a variable

  • April 30, 2024
  • 1 reply
  • 2204 views

Hi All,

We are planning to add a few variables on our landing page template. One of these will be populated with values that could be the page title as well.
We figured that it is not possible to automatically populate the variable with the value that is entered in meta tags under the title. So we are wondering if it is possible the other way around, meaning a value would be entered in a variable and we would like the webpage title meta tag to be populated with this exact same value automatically, so our users don't need to enter the same thing in 2 places.
Does anyone know if this can be done? And if yes, I'd appreciate some guidance on the how.
Thanks a lot for your help,
Sophie

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by uditmathur

Hi,

You can use Tokens for populating your LP title ({{my. Event title}}) & keywords for metatags ({{my. Keywords}}). You can then use these tokens to populate the relevant data.

You can also choose to add your custom html head.

You can read further on editing meta tags here.

 

Hope this helps.

Thanks

1 reply

uditmathur
uditmathurAccepted solution
Community Manager
April 30, 2024

Hi,

You can use Tokens for populating your LP title ({{my. Event title}}) & keywords for metatags ({{my. Keywords}}). You can then use these tokens to populate the relevant data.

You can also choose to add your custom html head.

You can read further on editing meta tags here.

 

Hope this helps.

Thanks

fzsofiAuthor
New Participant
April 30, 2024

And now I'm realizing I missed this one important information from the question that we do not want to use tokens here... 

SanfordWhiteman
New Participant
April 30, 2024

So use a ${mktoVariable}. This is a standard practice in our templates:

 

<title>${pageTitle}</title}