Add Google Tag Manager noscript to body of webpage

Hello friends,

Someone already had this problem, or know how to solve ?


$(document).ready(function() {
    $(document.body).prepend('<noscript><iframe src="" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>');

I added this script in:

If anyone knows how to solve it, it will be of great help.



Hi Agno,

I have implemented this a while ago in Traditional Web. I know I had some issues then and I created this post because of it.

You can check out my marked solution and it was based on some suggestions made in another post.

The only thing that worked for me in order to load the no script tag immediately after the opening <body> tag of the webpage, was to place the Jquery code in the javascript property of the module.

Hope this helps.