[2.x?] How to block cookies until the user accepts, for example Google Analytics cookies?

Created on 30 December 2017, almost 7 years ago
Updated 13 September 2024, 2 months ago

Hello,

I installed the module, how to block cookies until the user accepts?

Even without clicking OK, cookies are already in my browser

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇫🇷France zenimagine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇰🇬Kyrgyzstan elaman

    #110 works well, however there is an issue. If you want authenticated users to have agreed to cookies by default, but hide the banner for them, the scripts won't load.

  • 🇳🇱Netherlands Summit

    Hi, Should I use 2.dev of this module, and google analytics 4.dev to get this working together?
    Thanks for your reply in advance, greetings,

  • 🇧🇪Belgium f0ns

    The comment in #110 works perfectly (I only use the GA portion).

    Thanks!

Production build 0.71.5 2024