Consent dialog keeps reappearing or doesn’t close after consent

If the dialog does not close after consent or reappears on every page load, it usually means consent data is not stored properly.


Possible causes:

  • CookieHub script added multiple times.
  • Wrong domain configured in CookieHub.
  • Cookie/ad blockers preventing storage.
  • Conflicting JavaScript code on your site.

How to fix:

  1. Make sure the CookieHub implementation script appears only once in your source code.
  2. Confirm the site uses the same top-level domain as configured in the CookieHub dashboard.
  3. Disable ad blockers and test again.
  4. Check your browser console for JavaScript errors.
  5. If you use optimization plugins, ensure they are not delaying CookieHub scripts.