Google Analytic cookies not being removed.
jamessan85 opened this issue · 1 comments
jamessan85 commented
Some Google Analytic cookies are not being removed, or GA is doing something funky.
For example if you go here. https://www.cliftoncourtmedicalpractice.nhs.uk/information/our-policies/cookie-policy/choose-which-cookies-we-use/
Enable cookies, you can see 3 cookies being set,
If you then disable cookies, and check, you can see one GA cookie still exists.
I have tried debugging, it seems to get deleted straight after deleteCookies is run, but then seems to somehow get enabled again when the page refreshes after clicking submit.
jamessan85 commented
If anyone else has this issue, you can workaround it by adding NHSCookieConsent.setStatistics(NHSCookieConsent.getStatistics());
into the onload function.