-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added CSP policy to headers in nginx config
Ticket: SEC-1051 Changelog: None Signed-off-by: Mikita Pilinka <[email protected]>
- Loading branch information
1 parent
b561710
commit 8d1fc1c
Showing
3 changed files
with
21 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
let gaInitialized = false; | ||
document.addEventListener('cookieconsent_allowed', () => { | ||
console.log('allowed'); | ||
if (gaInitialized === true) return; | ||
const script = document.createElement('script'); | ||
script.src = 'https://www.googletagmanager.com/gtag/js?id=G-TW89K2P8L4'; | ||
document.head.appendChild(script); | ||
script.addEventListener('load', function () { | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag() { | ||
dataLayer.push(arguments); | ||
} | ||
gtag('js', new Date()); | ||
gtag('config', 'G-TW89K2P8L4'); | ||
gaInitialized = true; | ||
}); | ||
}); |
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