I need to place noscript tag of gtm just after closing body tag.

  • You have to need <noscript> code just before closing </body> tag right ? Apr 14, 2019 at 6:44

1 Answer 1


You can set <noscript> tag after body tag, then need to set your template before.body.end where you have to called your template for set <noscript> tag.

Follow below steps:

Your xml file set your template in before.body.end


<referenceContainer name="before.body.end">
    <block class="Vendor\Module\Block\GoogleTag" name="bock_name" template="Vendor_Module::yourtemplete.phtml" after="-" />

Put your <noscript> code in yourtemplete.phtml file

After you can able to show your <noscript> code just after closing body tag.

Hope it help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.