Watch: Add a cookie banner that controls my tracking | Vovy
Watch Vovy do it on a Mac: "Add a cookie consent banner that works with GA4 and my Meta pixel". Vovy adds a cookie banner that holds back analytics and ad tags until visitors agree, and wires it to Google Consent Mode v2 so your ads keep measuring.
"Add a cookie consent banner that works with GA4 and my Meta pixel"
Vovy adds a cookie banner that holds back analytics and ad tags until visitors agree, and wires it to Google Consent Mode v2 so your ads keep measuring.
What happens in the video
- List what sets cookies: Vovy loads your site and lists every tracker in DevTools, like GA4, Meta Pixel, PostHog and chat widgets.
- Add the banner: Cursor adds a banner with equal Accept and Reject buttons and a settings link, since EU rules say rejecting must be as easy as accepting.
- Wire Consent Mode v2: It sets Google's consent defaults to denied, including ad_user_data and ad_personalization, and updates them when a visitor accepts.
- Hold other tags until consent: It delays the Meta Pixel and other trackers until the visitor accepts, and remembers their choice.
- Test both choices: Vovy rejects, confirms no tracking cookies are set, then accepts and confirms tags fire. A card shows both results.
Read the step-by-step guideLoading...