From a9ffbe1daf2a9c60b571eb2b8ce68008423b4a92 Mon Sep 17 00:00:00 2001 From: bradmorton1 Date: Wed, 20 Nov 2019 08:59:08 +0000 Subject: [PATCH] added splunk urls which are covered by HAProxy --- src/banner.js | 6 +++--- src/cookieconsent.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/banner.js b/src/banner.js index 05befec..e317612 100644 --- a/src/banner.js +++ b/src/banner.js @@ -46,17 +46,17 @@ export default function insertCookieBanner(onAccept, onAnalyticsAccept, hitLoggi div.innerHTML = bannerHtml; div.innerHTML += ``; document.body.insertBefore(div, document.body.firstChild); - hitLoggingUrl('display.html'); + hitLoggingUrl('seen'); document.getElementById('nhsuk-cookie-banner__link_accept').addEventListener('click', (e) => { e.preventDefault(); - hitLoggingUrl('no-consent.html'); + hitLoggingUrl('declined'); handleLinkClick(onAccept); }); document.getElementById('nhsuk-cookie-banner__link_accept_analytics').addEventListener('click', (e) => { e.preventDefault(); - hitLoggingUrl('consent.html'); + hitLoggingUrl('accepted'); handleLinkClick(onAnalyticsAccept); }); } diff --git a/src/cookieconsent.js b/src/cookieconsent.js index 76e1a3f..eec15f5 100644 --- a/src/cookieconsent.js +++ b/src/cookieconsent.js @@ -179,7 +179,7 @@ export function hitLoggingUrl(route) { const oReq = new XMLHttpRequest(); oReq.open( 'GET', - `https://nhsukcookieanalytics.blob.core.windows.net/%24web/${route}` + `https://www.nhs.uk/our-policies/cookies-policy/?policy-action=${route}` ); oReq.send(); }