Set up consent mode in Google Analytics

preview_player
Показать описание
Consent mode lets you communicate your users’ cookie or app identifier consent status to Google. Tags adjust their behavior and respect users’ choices. In this video, we'll look into how to set up consent mode so you can communicate the users' consent status to Google.

Chapters:
0:00 - Introduction
1:06 - When to get consent
1:34 - Get familiar with the consent banner
3:23 - Implement the consent banner
5:57 - Manage consent in Tag Manager
7:07 - Check that you're receiving user input
7:47 - Conclusion

Resources:

#googleanalytics #googleanalytics4 #googletagmanager #ga4tutorials #ga4tutorialseries #consentmode
Рекомендации по теме
Комментарии
Автор

Thank you so much for this. After scouring the internet, I found the solution I was looking for at the least expected channel: the official channel lol. 😬🙏

DigiMaxxLab
Автор

Never actually thought a video from the official channel can be this helpful <3

shahzadaalihassan-quran
Автор

Thanks Matt, concise and to the point as usual, much appreciated!

rorygrignard
Автор

Great video, explains everything really well. Can I ask, will this also work with just the google tag and not the whole tag manager?

crystalamason
Автор

Hi, I'm Johnny Knoxville and today will going to talk about Google Tag manager consent

emilianunguru
Автор

I think there is a bug in your code examples:

It has to be:
gtag('consent', 'update', consentMode);

instead of:
gtag('consent', 'update', consentMode);gtag('consent', 'update', consent);

lukasvonniederhausern
Автор

The video is interesting and full of relevant information

LoganYoung-ekkk
Автор

Thanks for the video! Is it possible to use the consent mode to fire tag’s retroactively? So if a dataLayer event happens before consent is given, will it fire once consent is given?

carlospwk
Автор

Hi! Great video, thanks. But I think in src/partials/consent.eta on line 60 'personalization' should be 'personalization_storage'. Or is it a totally different parameter? Coz, I see you setting it as 'personalization_storage' in src/layouts/layout.eta on line 20. And I couldn't find the 'personalization' parameter in Google documentation. Please, confirm.

timurgafforov
Автор

What is unclear: From your lecture, it is clear that data for analytics does not work until the user gives consent. In that case, Google will see anonymous data, but I won't see any? If I have traffic of 100 people a day and 50 don't agree, will I see a drop in traffic by 50?

nelmedia
Автор

Tks a lot!. in function setConsent (consent) = /// the correct is personalization_storage

oceannobr
Автор

Thank you for the video. One question though. How to implement a solution where visitors can adjust there consent once given?

hans
Автор

Hi, does it worl with consent mode 2? Could you explain when i have to set ad_user_data? Is this for marketing, analytics, functional or necessary?

groovebird
Автор

Google should create free CMP for small sites and mobile app

PomaranczaPoczestujSie
Автор

Hello, which tool do you use to edit your videos?

EvasBrandchannel-ohos
Автор

Please how can I use this with AdSense? Having 2 consents is not good for UX.
Should I disable AdSense Consent? And use this?
Why Google didn't include Analytics in AdSense consent?

SoufianeSigma
Автор

Thanks for the explanations. But I didn’t get why we have to set security storage to denied? It must be a part of necessary cookies

zakariaelou
Автор

Is it possible to use it without tag manager?

dimitrynevermind
Автор

Great video. The problem is that when I correctly install consent mode v2, the users on the site drop from 8-10k users per day to suddenly 1k, even though everything is set up correctly, tested with Default, Update, and Current state. I leave the campaigns running for a month, and they barely reach 2k users, not to mention transactions which are way down. I don't know how it works well for you, but for us, at least in the EU, we've been struggling with this since March 2024.

laurentiumarin
Автор

Any video or documentation on how to implement consent mode on NextJs (14) with @next/third-parties/google ?

geraAlcantara