0

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

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

1 Answer 1

0

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

Example:

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

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 you have read our privacy policy.

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