Skip to content

Commit

Permalink
Merge pull request #98 from Netcentric/cookie-consent-change
Browse files Browse the repository at this point in the history
change analytics code
  • Loading branch information
lakshmishriaswathnarayana authored Nov 4, 2024
2 parents 0ec00a6 + a1dbc11 commit 46e7695
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/delayed.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ if (!window.location.pathname.includes('srcdoc')
// on localhost/hlx.page/hlx.live the consent notice is displayed every time the page opens,
// because the cookie is not persistent. To avoid this annoyance, disable unless on the
// production page.
loadScript('https://cdn.cookielaw.org/consent/0192f83d-f23b-72a4-88ba-54e881a37a86/OtAutoBlock.js', {
type: 'text/javascript',
charset: 'UTF-8',
});

loadScript('https://cdn.cookielaw.org/scripttemplates/otSDKStub.js', {
type: 'text/javascript',
charset: 'UTF-8',
'data-domain-script': '0192f83d-f23b-72a4-88ba-54e881a37a86',
});

loadScript('https://assets.adobedtm.com/53c8e773d591/d826b4085ef5/launch-1bb397cb091a-development.min.js', {
loadScript('https://assets.adobedtm.com/53c8e773d591/d826b4085ef5/launch-268ad0976d20.min.js', {
type: 'text/javascript',
charset: 'UTF-8',
});
Expand Down

0 comments on commit 46e7695

Please sign in to comment.