SOLVED

Re: Populate webpage title from a variable

Go to solution
fzsofi
Level 1

Populate webpage title from a variable

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

2 ACCEPTED SOLUTIONS

Accepted Solutions
uditmathur
Level 7 - Community Advisor

Re: Populate webpage title from a variable

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.

uditmathur_0-1714478291218.png

You can also choose to add your custom html head.

You can read further on editing meta tags here.

 

Hope this helps.

Thanks

View solution in original post

SanfordWhiteman
Level 10 - Community Moderator

Re: Populate webpage title from a variable

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

 

<title>${pageTitle}</title}

 

 

View solution in original post

4 REPLIES 4
uditmathur
Level 7 - Community Advisor

Re: Populate webpage title from a variable

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.

uditmathur_0-1714478291218.png

You can also choose to add your custom html head.

You can read further on editing meta tags here.

 

Hope this helps.

Thanks

fzsofi
Level 1

Re: Populate webpage title from a variable

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

SanfordWhiteman
Level 10 - Community Moderator

Re: Populate webpage title from a variable

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

 

<title>${pageTitle}</title}

 

 

fzsofi
Level 1

Re: Populate webpage title from a variable

Thanks a lot Sanford. It works 🙂