(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2258],{916:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/features/google-consent-mode",function(){return o(3113)}])},3113:function(e,n,o){"use strict";o.r(n),o.d(n,{__toc:function(){return d}});var t=o(5893),a=o(2673),i=o(7913),s=o(2702);o(9128);var r=o(2643);let d=[{depth:3,value:"What is consent mode?",id:"what-is-consent-mode"},{depth:3,value:"How consent mode works",id:"how-consent-mode-works"},{depth:3,value:"Implementation options",id:"implementation-options"},{depth:3,value:"Consent mode modeling",id:"consent-mode-modeling"},{depth:3,value:"Tags with built-in support for consent mode",id:"tags-with-built-in-support-for-consent-mode"},{depth:3,value:"Impact of consent mode",id:"impact-of-consent-mode"},{depth:3,value:"CookieHub integration with consent mode",id:"cookiehub-integration-with-consent-mode"},{depth:3,value:"Integration with Google Tag Manager",id:"integration-with-google-tag-manager"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",h3:"h3",p:"p",ul:"ul",li:"li",strong:"strong",a:"a"},(0,r.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{children:"Consent mode"}),"\n",(0,t.jsx)(n.h3,{id:"what-is-consent-mode",children:"What is consent mode?"}),"\n",(0,t.jsx)(n.p,{children:"Consent mode is designed to help advertisers and publishers comply with data privacy laws. It works by enabling users to specify their consent preferences for tracking and analytics before any data is sent to Google's servers. Once consent preferences are set, consent mode determines which tags should be loaded, ensuring only authorized tags collect data."}),"\n",(0,t.jsx)(n.h3,{id:"how-consent-mode-works",children:"How consent mode works"}),"\n",(0,t.jsx)(n.p,{children:"Consent mode receives users' consent choices from your cookie banner or widget, dynamically adapting the behavior of Analytics, Ads, and third-party tags that create or read cookies. This feature preserves a visitor’s consent state across different pages they visit, ensuring consistent application of their choices."}),"\n",(0,t.jsx)(n.p,{children:"Consent mode operates by adding an extra parameter to requests sent to Google’s servers, indicating user consent status for ad personalization and analytics. Initially, when no consent is given, Google receives limited information (e.g., IP address, page URL). Once consent is provided, the parameter updates to reflect the user's choice, influencing subsequent data requests."}),"\n",(0,t.jsx)(n.h3,{id:"implementation-options",children:"Implementation options"}),"\n",(0,t.jsx)(n.p,{children:"You can implement consent mode on your website or app using either of two methods:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Basic implementation:"})," Prevents Google tags from loading until a user interacts with a consent banner. No data is transmitted to Google before user interaction. When the user consents, Google tags load and send the consent states to Google. If the user does not consent, no data is sent to Google, and tags are blocked from firing."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Advanced implementation:"})," Google tags load when a user opens the website or app, setting default consent states (usually denied). The tags send cookieless pings until the user interacts with the banner. When consent is granted, the tags send full measurement data. This enables improved, advertiser-specific modeling compared to the basic implementation."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"consent-mode-modeling",children:"Consent mode modeling"}),"\n",(0,t.jsx)(n.p,{children:"To address data collection gaps, Google products use consent mode pings to model your metrics. This modeling helps maintain accurate measurement solutions while protecting user privacy. More details on specific modeling circumstances and processes can be found in Google's documentation:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://support.google.com/google-ads/answer/10548233",children:"Google Ads consent mode modeling"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://support.google.com/google-ads/answer/10081327",children:"Google Ads online conversion modeling"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://support.google.com/analytics/answer/10710245",children:"Google Analytics conversion modeling"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://support.google.com/analytics/answer/11161109",children:"Google Analytics behavioral modeling"})}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"tags-with-built-in-support-for-consent-mode",children:"Tags with built-in support for consent mode"}),"\n",(0,t.jsx)(n.p,{children:"Several Google tags come with built-in consent checks, adjusting their behavior based on the user’s consent state. These include:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.strong,{children:"Google Tag"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.strong,{children:"Google Analytics"})}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Google Ads"})," (supports conversion tracking and data segments; support for Phone Call conversions pending)"]}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.strong,{children:"Floodlight"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.strong,{children:"Conversion Linker"})}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"impact-of-consent-mode",children:"Impact of consent mode"}),"\n",(0,t.jsx)(n.p,{children:"After implementing consent mode for at least seven days, Google Ads and Google Analytics may provide data on the impact of consent mode. Uplift numbers will be shown when the data meets a minimum threshold, offering insights into how consent mode affects your analytics and advertising efforts."}),"\n",(0,t.jsx)(n.h3,{id:"cookiehub-integration-with-consent-mode",children:"CookieHub integration with consent mode"}),"\n",(0,t.jsx)(n.p,{children:"CookieHub integrates seamlessly with consent mode, allowing Google tags to automatically adjust based on signals from CookieHub. This ensures compliance with data privacy regulations without requiring script changes. By integrating with CookieHub, you can:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Enhance user experience:"})," Provide a seamless and privacy-compliant user experience."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Gain valuable insights:"})," Collect meaningful data about website performance while respecting user consent choices."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Ensure compliance:"})," Meet GDPR, CCPA, and other data privacy regulations."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"integration-with-google-tag-manager",children:"Integration with Google Tag Manager"}),"\n",(0,t.jsx)(n.p,{children:"Consent mode can be easily integrated using the CookieHub Google Tag Manager (GTM) template. With consent mode enabled, GTM automatically includes consent mode headers in all tags that support it, such as Google Analytics, Google Ads, and Floodlight. For tags without built-in support, additional consent configurations can be set up in GTM."})]})}let l={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,r.a)(),e.components);return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/features/google-consent-mode.mdx",route:"/features/google-consent-mode",timestamp:1721839578e3,pageMap:[{kind:"Meta",data:{index:{title:"Home",type:"page",display:"hidden"},"getting-started":{title:"Getting started",type:"page"},features:{title:"Features",type:"page"},installation:{title:"Installation",type:"page"},dashboard:{title:"Dashboard",type:"page"},advanced:{title:"Advanced",type:"page"}}},{kind:"Folder",name:"advanced",route:"/advanced",children:[{kind:"Meta",data:{index:"Introduction","google-tag-manager":"Google Tag Manager","consent-mode-v2-signals":"Consent mode v2 signals","javascript-api":"Javascript API",services:"External services",csp:"Content Security Policy (CSP)","known-issues":"Known issues & workarounds"}},{kind:"MdxPage",name:"consent-mode-v2-signals",route:"/advanced/consent-mode-v2-signals"},{kind:"MdxPage",name:"csp",route:"/advanced/csp"},{kind:"MdxPage",name:"google-tag-manager",route:"/advanced/google-tag-manager"},{kind:"MdxPage",name:"index",route:"/advanced"},{kind:"MdxPage",name:"javascript-api",route:"/advanced/javascript-api"},{kind:"MdxPage",name:"known-issues",route:"/advanced/known-issues"},{kind:"MdxPage",name:"services",route:"/advanced/services"}]},{kind:"Folder",name:"dashboard",route:"/dashboard",children:[{kind:"Meta",data:{index:"Getting started",authentication:"Authentication",account:"Account",vendors:"Vendors",services:"Services",billing:"Billing","---":{type:"separator",title:"Domains"},"domain-overview":"Overview","add-domain":"Add domain","domain-settings":"Domain settings",implementation:"Implementation",customization:"Customization",languages:"Languages & Translations",regions:"Regions & Policy frameworks","cookie-management":"Cookie management",scans:"Scans","consent-log":"Consent log",reports:"Reports"}},{kind:"MdxPage",name:"account",route:"/dashboard/account"},{kind:"MdxPage",name:"add-domain",route:"/dashboard/add-domain"},{kind:"MdxPage",name:"authentication",route:"/dashboard/authentication"},{kind:"MdxPage",name:"billing",route:"/dashboard/billing"},{kind:"MdxPage",name:"consent-log",route:"/dashboard/consent-log"},{kind:"MdxPage",name:"cookie-management",route:"/dashboard/cookie-management"},{kind:"MdxPage",name:"customization",route:"/dashboard/customization"},{kind:"MdxPage",name:"domain-overview",route:"/dashboard/domain-overview"},{kind:"MdxPage",name:"domain-settings",route:"/dashboard/domain-settings"},{kind:"MdxPage",name:"implementation",route:"/dashboard/implementation"},{kind:"MdxPage",name:"index",route:"/dashboard"},{kind:"MdxPage",name:"languages",route:"/dashboard/languages"},{kind:"MdxPage",name:"regions",route:"/dashboard/regions"},{kind:"MdxPage",name:"reports",route:"/dashboard/reports"},{kind:"MdxPage",name:"scans",route:"/dashboard/scans"},{kind:"MdxPage",name:"services",route:"/dashboard/services"},{kind:"MdxPage",name:"vendors",route:"/dashboard/vendors"}]},{kind:"Folder",name:"features",route:"/features",children:[{kind:"Meta",data:{index:"Introduction","cookie-scanner":"Cookie scanner","cookie-declaration":"Cookie declaration","automatic-cookie-blocker":"Automatic cookie blocker",regions:"Regions / Geo-targeting",languages:"Languages & translations","policy-frameworks":"Policy frameworks","consent-log":"Consent log",accessibility:"Accessibility",linker:"Linker",reports:"Reports","---":{type:"separator",title:"Integrations"},"google-tag-manager":"Google Tag Manager","google-consent-mode":"Consent mode","shopify-customer-privacy":"Shopify Customer Privacy API","iab-tcf":"IAB Transparency and Consent Framework (TCF)","google-additional-consent-mode":"Google Additional Consent Mode","iab-us-privacy":"IAB US Privacy (CCPA)","global-privacy-control":"Global Privacy Control"}},{kind:"MdxPage",name:"accessibility",route:"/features/accessibility"},{kind:"MdxPage",name:"automatic-cookie-blocker",route:"/features/automatic-cookie-blocker"},{kind:"MdxPage",name:"consent-log",route:"/features/consent-log"},{kind:"MdxPage",name:"cookie-declaration",route:"/features/cookie-declaration"},{kind:"MdxPage",name:"cookie-scanner",route:"/features/cookie-scanner"},{kind:"MdxPage",name:"global-privacy-control",route:"/features/global-privacy-control"},{kind:"MdxPage",name:"google-additional-consent-mode",route:"/features/google-additional-consent-mode"},{kind:"MdxPage",name:"google-consent-mode",route:"/features/google-consent-mode"},{kind:"MdxPage",name:"google-tag-manager",route:"/features/google-tag-manager"},{kind:"MdxPage",name:"iab-tcf",route:"/features/iab-tcf"},{kind:"MdxPage",name:"iab-us-privacy",route:"/features/iab-us-privacy"},{kind:"MdxPage",name:"index",route:"/features"},{kind:"MdxPage",name:"languages",route:"/features/languages"},{kind:"MdxPage",name:"linker",route:"/features/linker"},{kind:"MdxPage",name:"policy-frameworks",route:"/features/policy-frameworks"},{kind:"MdxPage",name:"regions",route:"/features/regions"},{kind:"MdxPage",name:"reports",route:"/features/reports"},{kind:"MdxPage",name:"shopify-customer-privacy",route:"/features/shopify-customer-privacy"}]},{kind:"Folder",name:"getting-started",route:"/getting-started",children:[{kind:"Meta",data:{index:"Introduction","cookie-categories":"Cookie categories","subscriptions-and-pricing":"Subscriptions & pricing","resellers-affiliates":"Reseller & affiliates","data-processing-and-security":"Data Processing & Security",faq:"FAQ",support:"Support","change-log":"Change log","release-notes":"Release notes"}},{kind:"MdxPage",name:"change-log",route:"/getting-started/change-log"},{kind:"MdxPage",name:"cookie-categories",route:"/getting-started/cookie-categories"},{kind:"MdxPage",name:"data-processing-and-security",route:"/getting-started/data-processing-and-security"},{kind:"MdxPage",name:"faq",route:"/getting-started/faq"},{kind:"MdxPage",name:"index",route:"/getting-started"},{kind:"Folder",name:"release-notes",route:"/getting-started/release-notes",children:[{kind:"MdxPage",name:"cookiehub-2.7",route:"/getting-started/release-notes/cookiehub-2.7"},{kind:"Meta",data:{"cookiehub-2.7":"Cookiehub 2.7"}}]},{kind:"MdxPage",name:"resellers-affiliates",route:"/getting-started/resellers-affiliates"},{kind:"MdxPage",name:"subscriptions-and-pricing",route:"/getting-started/subscriptions-and-pricing"},{kind:"MdxPage",name:"support",route:"/getting-started/support",frontMatter:{title:"Support",sidebar_position:200}}]},{kind:"MdxPage",name:"index",route:"/"},{kind:"Folder",name:"installation",route:"/installation",children:[{kind:"Meta",data:{index:"Getting started","upgrade-v2.8":"Upgrade guide","consent-mode-v2":"Consent mode","-":{type:"separator",title:"Tag installation"},tag:"Installation","content-management-systems":"Content Management Systems",wordpress:"Wordpress",matomo:"Matomo Tag Manager",troubleshooting:"Troubleshooting","---":{type:"separator",title:"Google Tag Manager"},"google-tag-manager":"Installation","google-tag-manager-upgrade":"Upgrade","additional-consent":"Additional consent","consent-overview":"Consent overview","----":{type:"separator",title:"Digging deeper"},"conditional-html-tags":"Conditional HTML tags","cookie-declaration":"Cookie declaration","resurface-dialog":"Resurface dialog",linker:"Linker"}},{kind:"MdxPage",name:"additional-consent",route:"/installation/additional-consent"},{kind:"MdxPage",name:"conditional-html-tags",route:"/installation/conditional-html-tags"},{kind:"MdxPage",name:"consent-mode-v2",route:"/installation/consent-mode-v2"},{kind:"MdxPage",name:"consent-overview",route:"/installation/consent-overview"},{kind:"MdxPage",name:"content-management-systems",route:"/installation/content-management-systems"},{kind:"MdxPage",name:"cookie-declaration",route:"/installation/cookie-declaration"},{kind:"MdxPage",name:"google-tag-manager-upgrade",route:"/installation/google-tag-manager-upgrade"},{kind:"MdxPage",name:"google-tag-manager",route:"/installation/google-tag-manager"},{kind:"MdxPage",name:"index",route:"/installation"},{kind:"MdxPage",name:"linker",route:"/installation/linker"},{kind:"MdxPage",name:"matomo",route:"/installation/matomo"},{kind:"MdxPage",name:"resurface-dialog",route:"/installation/resurface-dialog"},{kind:"MdxPage",name:"tag",route:"/installation/tag"},{kind:"MdxPage",name:"troubleshooting",route:"/installation/troubleshooting"},{kind:"MdxPage",name:"upgrade-v2.8",route:"/installation/upgrade-v2.8"},{kind:"MdxPage",name:"wordpress",route:"/installation/wordpress"}]}],flexsearch:{codeblocks:!0},title:"Consent mode",headings:d},pageNextRoute:"/features/google-consent-mode",nextraLayout:i.ZP,themeConfig:s.Z};n.default=(0,a.j)(l)},2702:function(e,n,o){"use strict";var t=o(5893);n.Z={logo:(0,t.jsx)("span",{children:"CookieHub Docs"}),primaryHue:360,primarySaturation:100,editLink:{text:""},feedback:{content:null},sidebar:{defaultMenuCollapseLevel:2,autoCollapse:!0},useNextSeoProps:()=>({titleTemplate:"%s – CookieHub Docs"}),banner:{},footer:{text:(0,t.jsxs)("span",{children:["\xa9",new Date().getFullYear()," CookieHub"]})}}},5789:function(){}},function(e){e.O(0,[9774,4543,2888,179],function(){return e(e.s=916)}),_N_E=e.O()}]);