From 8ed6369a18ffd4f7bcb1f48a926dff1777aa4558 Mon Sep 17 00:00:00 2001 From: Chris Penny Date: Wed, 22 Sep 2021 13:00:11 +1200 Subject: [PATCH] Add support for GTM noscript iframe --- src/Fragments/GoogleTagManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Fragments/GoogleTagManager.php b/src/Fragments/GoogleTagManager.php index 35de3e0..c7b574a 100644 --- a/src/Fragments/GoogleTagManager.php +++ b/src/Fragments/GoogleTagManager.php @@ -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'); }