How to insert custom code in html head tag

Avatar

Avatar
Validate 1
Level 1
sungl
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
sungl
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
sungl
Level 1

12-11-2020

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!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Publish 1
MVP
yuhuisg
MVP

Likes

196 likes

Total Posts

600 posts

Correct reply

119 solutions
Top badges earned
Publish 1
Affirm 100
Springboard
Bedrock
Validate 1
View profile

Avatar
Publish 1
MVP
yuhuisg
MVP

Likes

196 likes

Total Posts

600 posts

Correct reply

119 solutions
Top badges earned
Publish 1
Affirm 100
Springboard
Bedrock
Validate 1
View profile
yuhuisg
MVP

12-11-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>?

Answers (0)