generated from hmcts/expressjs-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(PRL-6777): Fix GA CSP issue (#1720)
* fix(PRL-6777): Fix GA CSP issue * fix(PRL-6777): Fix GA CSP issue * fix(PRL-6777): Fix GA CSP issue
- Loading branch information
1 parent
4058a7f
commit 6d3f60d
Showing
5 changed files
with
19 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/steps/common/views/includes/script-ga_tag_manager.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- Google Tag Manager --> | ||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
})(window,document,'script','dataLayer','GTM-NJCKLVT');</script> | ||
<!-- End Google Tag Manager --> |
5 changes: 5 additions & 0 deletions
5
src/main/steps/common/views/includes/script-ga_tag_manager_2.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- Google Tag Manager (noscript) --> | ||
<noscript> | ||
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NJCKLVT" height="0" width="0" style="display:none;visibility:hidden"></iframe> | ||
</noscript> | ||
<!-- End Google Tag Manager (noscript) --> |