Skip to content

Commit

Permalink
Add support for GTM noscript iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Penny authored and adrhumphreys committed Sep 22, 2021
1 parent 5d1c2b0 commit 8ed6369
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Fragments/GoogleTagManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public static function enableGTM(Policy $policy): void
// however to provide a default backup for other digital marketing tools like Adobe tag manager
// which can call gtag.js script without applying a nonce, whitelisting the GTM domain is required.
->addDirective(Directive::SCRIPT, 'https://www.googletagmanager.com')
->addDirective(Directive::FRAME, 'https://www.googletagmanager.com')
->addDirective(Directive::IMG, 'https://www.googletagmanager.com');
}

Expand Down

0 comments on commit 8ed6369

Please sign in to comment.