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 ? – Kirti Nariya Apr 14 '19 at 6:44

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!

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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