In this video, I explain cookie consent in a simple way and show how it works with Google Analytics, Google Ads, and Meta Pixel inside Google Tag Manager.
This video explains the topic from a technical tracking point of view. It is not legal advice.
What Is a Cookie?
A cookie is a small file saved in your browser. It helps a website remember you and what you did there.
For example, you visit a shoe website and look at a pair of shoes. The website saves a cookie. Later, you see ads for those same shoes on Facebook or Google. That is cookies at work.
You can see the cookies a website saves by opening your browser's Inspect tool and checking the cookies section.
What Is a Cookie Consent Banner?
A cookie consent banner is the popup that asks visitors whether they accept tracking. It usually has three options:
- Accept - Tracking tools can use cookies
- Reject - Tracking tools should not use cookies
- Customize - The visitor chooses which types of cookies to allow
Websites use these banners because tools like Google Analytics, Google Ads, and Meta Pixel collect information about visitors and their activity. Many countries have privacy rules that control when that is allowed.
Privacy Rules in Simple Terms
The main idea is: no permission, no tracking.
- European Union (GDPR) - Very strict. Accept and Reject must both be clearly visible, and consent boxes cannot be pre-ticked. You must ask first, then track.
- United Kingdom - Works the same way as GDPR.
- California (USA) - Different approach. You can track, but you must stop when the user asks you to.
- Brazil - Similar to GDPR.
Other countries have their own rules. If you build your setup to meet GDPR, you will be safe for almost every website.
What Is Google Consent Mode v2?
Google Consent Mode v2 tells Google tags what the visitor agreed to. It controls four consent signals:
ad_storageanalytics_storagead_user_dataad_personalization
For Google products, always use version 2.
Advanced Consent Mode
- Google tags load before the visitor makes a choice
- If the visitor accepts, Google Analytics and Google Ads work normally
- If the visitor rejects, Google tags still send limited, cookieless signals without using the denied storage
- Google uses these signals to model conversions and user behavior
In GTM, Google tags have built-in consent checks. Under Advanced Settings > Consent Settings, choose No additional consent required and the tag will follow the Consent Mode signals automatically.
Basic Consent Mode
- Tags do not fire at all until the visitor accepts
- If the visitor rejects, nothing is sent
- You add consent requirements to each tag yourself
In GTM, open the tag's Consent Settings, choose Require additional consent for tag to fire, and add the right consent type:
- GA4 tags -
analytics_storage - Google Ads and Meta Pixel tags -
ad_storage
Meta, TikTok, and Other Ad Platforms
Meta, TikTok, and other non-Google platforms do not support Google Consent Mode v2. For these tags, you need to use the Basic Mode approach: require ad_storage consent (or change the trigger conditions) so the tag only fires after the visitor accepts.
Testing Your Consent Setup
I test every consent setup in GTM Preview Mode and Tag Assistant:
- Delete your cookies so you start as a new visitor
- Check the Consent tab before clicking anything. Signals should show as denied by default
- Click Accept and confirm that
ad_storage,analytics_storage,ad_user_data, andad_personalizationchange to granted - Confirm your Google and Meta tags fire after acceptance
- Delete cookies again, click Reject, and confirm that Basic Mode tags stay blocked
- Trigger events like
view_itemto make sure ecommerce tracking follows the same rules
Who This Video Is For
- Marketers running Google Ads or Meta Ads
- Tracking specialists
- WordPress and WooCommerce site owners
- Anyone who uses Google Tag Manager or GA4 and wants to understand cookie consent without making it complicated
Need Help With Consent Mode?
If you're struggling with:
- Setting up Google Consent Mode v2
- Tags firing before consent
- Meta Pixel ignoring your cookie banner
- Missing conversions after adding a consent banner
I can fix it for you.
My services:
- Google Consent Mode v2 setup
- Cookie banner integration with Google Tag Manager
- GA4 and Google Ads tracking
- Meta Pixel and Conversions API tracking
- WordPress and WooCommerce tracking
- Testing and verification
Contact me or message me on WhatsApp for help with your consent setup.
Free Debugging Tool
Debug your tracking with my Chrome extension:
Insighter Debugger - See which tags fire before and after consent:
Respect your visitors' choices and keep your tracking working. Set up consent properly once and stay safe across almost every privacy law.
Keywords: cookie consent, cookie consent banner, Google Consent Mode v2, Consent Mode Advanced vs Basic, GDPR tracking, Google Tag Manager consent settings, GA4 consent mode, Google Ads consent mode, Meta Pixel consent, ad_storage, analytics_storage, ad_user_data, ad_personalization, WordPress cookie consent, WooCommerce tracking