How to insert custom code in html head tag | Community
Skip to main content
sungl
November 12, 2020
Solved

How to insert custom code in html head tag

  • November 12, 2020
  • 1 reply
  • 7038 views

In Launch, I setup Rules to have a custom HTML code which needs to be in HTML <head> element.

When I publish it, I can see the custom HTML code is added at the bottom of the HTML output right before closing </body> tag. How can I configure this to be inside <head> ... </head> section?

 

Thanks!

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 yuhuisg

In general, you can't – or rather, shouldn't – add code to <head> through a tag management system. Such code should be added directly to the page's HTML, i.e. with dev support.

What are you trying to insert into the <head>?

1 reply

yuhuisg
Community Advisor
yuhuisgCommunity AdvisorAccepted solution
Community Advisor
November 13, 2020

In general, you can't – or rather, shouldn't – add code to <head> through a tag management system. Such code should be added directly to the page's HTML, i.e. with dev support.

What are you trying to insert into the <head>?

yuhuisg
Community Advisor
Community Advisor
November 14, 2020

Try add the tracking code via this method: https://stackoverflow.com/a/18784960