• Resolved samlinck

    (@samlinck)


    Hi I currently use a data attribute “nonce” on my gtm script, to whitelist all the scripts that tag manager sets. How will this plugin whitelist the scripts that are set by tag manager?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter samlinck

    (@samlinck)

    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”

    Thread Starter samlinck

    (@samlinck)

    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 1 year, 2 months ago by samlinck.
    • This reply was modified 1 year, 2 months ago by samlinck.
    Thread Starter samlinck

    (@samlinck)

    For people experiencing the same problem as me: https://stackoverflow.com/a/74662683/22339887

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Nonce in GTM’ is closed to new replies.