Skip to content

Commit

Permalink
Merge pull request #93 from nhsuk/new-splunk-urls
Browse files Browse the repository at this point in the history
added splunk urls which are covered by HAProxy
  • Loading branch information
tomdoughty authored Nov 21, 2019
2 parents b97edef + a9ffbe1 commit 50509b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ export default function insertCookieBanner(onAccept, onAnalyticsAccept, hitLoggi
div.innerHTML = bannerHtml;
div.innerHTML += `<style>${bannerCss.toString()}</style>`;
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);
});
}
2 changes: 1 addition & 1 deletion src/cookieconsent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 50509b3

Please sign in to comment.