How can I add code inside the <body> tag of a landing page? | Community
Skip to main content
Mike_Sherwood1
New Participant
September 5, 2017
Solved

How can I add code inside the <body> tag of a landing page?

  • September 5, 2017
  • 1 reply
  • 2997 views

I want to add a google analytics conversion code to my thank you page.  According to google, the code must be between the <body> tags.   Because I am using guided landing pages, I can't use the 'add html block' which was available with free form landing page templates.  I don't want to create a new template for each thank you page I need.  Can I add the code to the page itself without making a new template?

Thanks,

Mike

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 SanfordWhiteman

You don't need a new template for every Thank You page, but you do need to make space on your template for the common part of the <script> itself.

But don't use a hard-coded ID in the text. Substitute a {{my.token}} (at the Program level) or a mktoString variable (at the LP level) for the exact conversion ID you're trying to track.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
September 5, 2017

You don't need a new template for every Thank You page, but you do need to make space on your template for the common part of the <script> itself.

But don't use a hard-coded ID in the text. Substitute a {{my.token}} (at the Program level) or a mktoString variable (at the LP level) for the exact conversion ID you're trying to track.

Mike_Sherwood1
New Participant
September 6, 2017

Thanks.  I understand the options.

Mike