Problem/Motivation

Hi,
There is no noticeable effect on the cookies with any setting. It also does not reload the page after rejecting cookies.

Steps to reproduce

I installed the latest version of 8.1.X module, and all other drupal modules are up to date. Tried every setting like:
-Consent by default. Don't provide any option to opt out.
-Opt-in. Don't track visitors unless they specifically give consent. (GDPR compliant)
-Opt-in with categories. Let visitors choose which cookie categories they want to opt-in for (GDPR compliant).
-Opt-out. Track visitors by default, unless they choose to opt out.
-Automatic. Respect the DNT (Do not track) setting in the browser, if present. Uses opt-in when DNT is 1 or not set, and consent by default when DNT is 0.

I do not see any noticeable effect on the cookies with any setting. It also does not reload the page after rejecting cookies.

Proposed resolution

I do not know what I do wrong? I see on this page: https://www.drupal.org/project/eu_cookie_compliance/issues/2933614
a lot of thread about this, but somehow I do not see an solution, how to get this working with rejecting cookies, which is needed for our working of the site?

Can you please pinpoint me to a solution or the settings how to get this module working as such it has effect on the cookies and getting it to work to reload the page with the right settings for the user and rejecting the cookies?

Thanks a lot in advance for your reply, greetings,

Comments

Summit created an issue. See original summary.

summit’s picture

Hi, On drupal 8-10 I found these helpfull pages, but not a plain solution:
I use eu_cookie_compliance/ with latest 4.dev module google_analytics. I just added the Google Analytics code into the footer.

I see lots of issues about it.
- https://drupal.stackexchange.com/questions/297290/how-to-block-third-par...
- https://www.drupal.org/project/eu_cookie_compliance/issues/2933614
- https://www.drupal.org/project/eu_cookie_compliance/issues/3254826
- https://www.drupal.org/project/eu_cookie_compliance/issues/3312879

greetings, Martijn

summit’s picture

Hi,
After looking into this, for me also still this is the problem:
I do not see any noticeable effect on the cookies with any setting. It also does not reload the page after rejecting cookies!

Is this functionality which should be in this module, or do we have to look elsewhere?
Greetings,

atowl’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

Is this still an issue? if not can i close it?

Thanks

xpersonas’s picture

I went down this road as well. It was a bug. It has been corrected in the dev version of this module, at least as of June 2026.

Previously the eraseCookie() didn't account for the domain.

This can be closed as fixed.

kieran.cott’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

kieran.cott’s picture

Thanks for confirming @xpersonas, closing issue.