Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Analytic cookies not being removed. #169

Open
jamessan85 opened this issue Dec 7, 2023 · 1 comment
Open

Google Analytic cookies not being removed. #169

jamessan85 opened this issue Dec 7, 2023 · 1 comment

Comments

@jamessan85
Copy link

jamessan85 commented Dec 7, 2023

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 jamessan85 changed the title Google Anlaytic cookies not being removed. Google Analytic cookies not being removed. Dec 7, 2023
@jamessan85
Copy link
Author

If anyone else has this issue, you can workaround it by adding NHSCookieConsent.setStatistics(NHSCookieConsent.getStatistics()); into the onload function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant