Nonce in GTM | WordPress.org

[ad_1]

Because now all the inline scripts initialised by gtm are blocked. But I want to whitelist them all. And I can’t find the inline code I’m referring to inside “Inline Whitelist tab”

It’s always this part of the gtm script, that gets blocked, this is used to place tags in the code. For example a facebook pixel. The external script itself has a nonce so is whitelisted.

  f.prototype.aa = function(a) {
     this.D('<span id="ps-script"/>');
     var b = this.i.getElementById("ps-script");
     b.parentNode.replaceChild(a, b)
   }

The site I’m referring to: https://jobs.realdolmen.com/

  • This reply was modified 46 minutes ago by samlinck.
  • This reply was modified 38 minutes ago by samlinck.

For people experiencing the same problem as me:

This answer fixed it for me. The accepted answer wasn’t working in my case.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer