(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7273],{5629:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/advanced/google-tag-manager",function(){return a(2264)}])},2264:function(e,n,a){"use strict";a.r(n),a.d(n,{__toc:function(){return m},default:function(){return b}});var i=a(5893),t=a(2673),o=a(7913),s=a(2702);a(9128);var r=a(2643),l={src:"/_next/static/media/gtm-exclude1.af0dd4a8.png",height:747,width:903,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAABlBMVEX19vf9/v5R20ktAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAHklEQVR4nGNgYGBgZGRkZIDSBBhgGizCwMDIwMgAAARCACFi7RxcAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:7},d={src:"/_next/static/media/gtm-exclude2.33dab7b8.png",height:590,width:899,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAABlBMVEX9/v7z9fYXQbP4AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAG0lEQVR4nGNgZGQAAUYGCA1iMILFQAy4CIQBAAGYABEOVU3BAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5},g={src:"/_next/static/media/gtm-production1.19f022d8.png",height:768,width:814,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAADFBMVEX+/v729/fx8/XC2PWKAVTGAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAJklEQVR4nGXJMQoAMAyAQLX//3MJhC51OhAT6ZBM4oe3FsOtUu0CBgQAKd42b7AAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},c={src:"/_next/static/media/gtm-production2.7bd79614.png",height:484,width:815,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAADFBMVEX4+fr+///y9PjF2/cYjOEcAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAI0lEQVR4nGNgYGBkZGRkYmZgYgIzGcAMBgYQA0SBRCBqGBkAA0IAIFztCjcAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5},h={src:"/_next/static/media/gtm-domain-code1.ca83f610.png",height:909,width:814,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAMAAAAC2hU0AAAADFBMVEX39/j+/v7x8vLR4vclhG8AAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAJElEQVR4nF3JMQoAMAyAQLX//3MJdEmnE4RUDuEEPEM+96+gCwYlADGstz1VAAAAAElFTkSuQmCC",blurWidth:7,blurHeight:8},u={src:"/_next/static/media/gtm-domain-code2.95d32d45.png",height:470,width:692,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAABlBMVEX9/f329vZvsvfuAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAFklEQVR4nGNgZGSAAEYYC5kBYcGUAAABewAO96JcqQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:5};let m=[{depth:2,value:"Data Layer Events and Variables",id:"data-layer-events-and-variables"},{depth:3,value:"Data Layer Events",id:"data-layer-events"},{depth:3,value:"Data Layer Variables",id:"data-layer-variables"},{depth:2,value:"Customizing CookieHub Triggers",id:"customizing-cookiehub-triggers"},{depth:3,value:"Configurations Affecting Triggers",id:"configurations-affecting-triggers"},{depth:3,value:"CookieHub Triggers",id:"cookiehub-triggers"},{depth:3,value:"Tag Firing Options",id:"tag-firing-options"},{depth:3,value:"Choosing the Right Triggers",id:"choosing-the-right-triggers"},{depth:2,value:"Exclude CookieHub from certain pages",id:"exclude-cookiehub-from-certain-pages"},{depth:2,value:"Use development/stage mode on non-production domains",id:"use-developmentstage-mode-on-non-production-domains"},{depth:2,value:"Multiple domains using same GTM code",id:"multiple-domains-using-same-gtm-code"}];function _createMdxContent(e){let n=Object.assign({h1:"h1",h2:"h2",p:"p",h3:"h3",ul:"ul",li:"li",strong:"strong",ol:"ol",img:"img"},(0,r.a)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{children:"Google Tag Manager"}),"\n",(0,i.jsx)(n.h2,{id:"data-layer-events-and-variables",children:"Data Layer Events and Variables"}),"\n",(0,i.jsx)(n.p,{children:"CookieHub provides a set of data layer events and variables that can be effectively utilized in Google Tag Manager to customize and control the behavior of your tags. These events and variables offer valuable insights into user consent and interactions with CookieHub. They are automatically imported when you use the CookieHub GTM template as outlined in the Google Tag Manager Implementation guide."}),"\n",(0,i.jsx)(n.h3,{id:"data-layer-events",children:"Data Layer Events"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_consent_update"}),": This event is triggered whenever there is an update in consent mode types. It covers changes in consent settings, including when CookieHub is initially loaded to override defaults."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_ready"}),": Triggered when CookieHub has fully loaded and is ready for use."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_modified"}),": This event occurs when a user makes any changes to allowed or denied categories within CookieHub."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_necessary"}),': Fired when the "Necessary" cookie category is allowed. This can happen because it was previously allowed or when a user enables it in the settings dialog or by clicking the "Allow all cookies" button.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_preferences"}),': Triggered when the "Preferences" cookie category is allowed, under similar conditions as the "Necessary" category.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_analytics"}),': This event is fired when the "Analytics" cookie category is allowed, based on the same criteria as the "Necessary" category.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_marketing"}),': Triggered when the "Marketing" cookie category is allowed, following the same principles as the "Necessary" category.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_uncategorized"}),': This event is fired when the "Uncategorized" cookie category is allowed, in alignment with the criteria for the "Necessary" category.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_click_allow_all"}),': Triggered when a user clicks the "Allow all cookies" button.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_click_deny_all"}),': This event occurs when a user clicks the "Deny all cookies" button.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_click_open_settings"}),': Fired when a user clicks the settings icon or the "Cookie Settings" button.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_click_save"}),': Triggered when a user clicks the "Save settings" button in the Cookie Settings dialog.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_click_learn_more"}),': This event is triggered when a user clicks the "Learn more" link to access additional information.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_dialog"}),": This event is triggered when the first layer consent dialog is shown."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_settings"}),": This event is triggered when the settings dialog is shown."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_donotsell"}),": This event is triggered when the IAB GPP/CCPA policy framework is active and a user opts-out of selling and sharing of personal data. This event is available in version >=2.8.2."]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"data-layer-variables",children:"Data Layer Variables"}),"\n",(0,i.jsx)(n.p,{children:"The state of each cookie category is stored in data layer variables, enabling you to customize tag loading based on user selections. Here are the variables:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_necessary"}),': A Boolean variable with a default value of "false."']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_preferences"}),': A Boolean variable with a default value of "false."']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_analytics"}),': A Boolean variable with a default value of "false."']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_marketing"}),': A Boolean variable with a default value of "false."']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_uncategorized"}),': A Boolean variable with a default value of "false."']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"cookiehub_allowsale"}),": A Boolean variable set to false if the user has opted-out of selling and sharing of personal information. This variable is linked to the allow sale function when the IAB GPP/CCPA policy framework is in use. When other policy frameworks are in use, the value will return the consent state of the marketing category as fallback. This variable is available in version >=2.8.2."]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"These variables offer valuable insights into the user's consent choices, allowing you to tailor your tag management in Google Tag Manager based on the specific preferences and interactions of your website visitors."}),"\n",(0,i.jsx)(n.h2,{id:"customizing-cookiehub-triggers",children:"Customizing CookieHub Triggers"}),"\n",(0,i.jsx)(n.p,{children:"CookieHub offers various triggers that you can integrate into Google Tag Manager to control when your tags fire. Each use case may require different triggers to ensure tags are fired based on user interactions with the CookieHub dialog. Several factors and configurations can impact how these triggers work. Here's a breakdown of these configurations and the available triggers:"}),"\n",(0,i.jsx)(n.h3,{id:"configurations-affecting-triggers",children:"Configurations Affecting Triggers"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Regional Consent Type (CookieHub)"}),": When multiple regions are specified in CookieHub, an asynchronous request is made to detect the user's country. Google Tag Manager may have already evaluated triggers for tags, and if additional consent checks are required, they may not be automatically re-evaluated once the user's country is detected. This setting can affect all firing triggers when multiple regions are specified and implied consent is used."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Firing Triggers (Google Tag Manager)"}),": CookieHub provides various firing triggers, which can be used independently or in combination with other triggers to fire tags based on user interactions with the CookieHub dialog."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Trigger Exceptions (Google Tag Manager)"}),": All CookieHub triggers can also be used as exceptions to prevent loading a tag when specific conditions are met."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Additional Consent Checks (Google Tag Manager)"}),": When additional consent checks are configured for a tag, the specified consent category must be either explicitly or implicitly allowed before the tag is triggered. If multiple categories are specified, all of them must be allowed."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Tag Firing Options (Google Tag Manager)"}),": These options determine how tags are evaluated with firing and exception triggers and whether a tag can trigger multiple times."]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"cookiehub-triggers",children:"CookieHub Triggers"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"CookieHub - Loaded"}),": Triggered once per page when CookieHub is fully loaded and the user's country is detected. For first-time users, the CookieHub dialog is shown, and depending on the consent type, cookie categories may or may not be allowed at this time."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"CookieHub - Consent Update"}),": Triggered every time consent mode signals are sent. It's activated after every interaction with the CookieHub dialog (Allow all, Deny all, or Save settings). It's also triggered on each page load after CookieHub has determined the current consent settings for the user."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"CookieHub - Choice Modified"}),": Triggered on every user interaction with the CookieHub dialog (Allow all, Deny all, or Save settings)."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"CookieHub - Allowed Necessary, Preferences, Analytics, Marketing"}),": Triggered when the corresponding cookie category is allowed. This can occur due to manual user interaction with the CookieHub, dialog settings, or based on default settings or stored consent preferences."]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"tag-firing-options",children:"Tag Firing Options"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Once per page"}),": The tag fires once on each page load, and if the consent group isn't allowed at the time the trigger combination matches, the tag won't be fired in that page load."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Once per event (default)"}),": The tag fires every time the trigger combination matches. Depending on the setup, using this option may cause multiple instances of a tag to load."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Unlimited"}),": Tags fire whenever triggers indicate, primarily used with tag sequencing."]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"choosing-the-right-triggers",children:"Choosing the Right Triggers"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Built-in consent mode Support"}),": For tags with built-in consent mode support (e.g., Google Analytics, Conversion Linker, Floodlight, Google Ads Conversion Tracking, and Remarketing), special CookieHub triggers may not be needed. These tags respect consent mode and re-evaluate triggers when consent mode signals are received."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Additional Consent Tags"}),': For tags requiring additional consent, you can often use the "CookieHub - Consent Update" firing trigger. However, specific trigger combinations may be more suitable, depending on your requirements.']}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"Consider Firing Options"}),": Be aware of how tag firing options affect trigger evaluations, especially for tags configured with additional consent. The chosen option can impact how often the tag is evaluated."]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:'Please note that the "CookieHub - Consent Update" event is always triggered when CookieHub signals any update to consent mode settings. Be cautious when using "Once per page" with tags that depend on Consent Update, as the tag may not fire again, potentially causing these tags not to load at all.'}),"\n",(0,i.jsx)(n.h2,{id:"exclude-cookiehub-from-certain-pages",children:"Exclude CookieHub from certain pages"}),"\n",(0,i.jsx)(n.p,{children:"In certain cases, it may be necessary to exclude specific pages, such as privacy policy or legal disclaimers, from displaying the CookieHub dialog to allow users to read essential information without interruptions. By following the steps outlined below, you can seamlessly configure CookieHub and Google Tag Manager to exclude designated pages from showing the CookieHub dialog."}),"\n",(0,i.jsx)(n.p,{children:"Please note that this guide assumes you have already set up CookieHub and have basic familiarity with Google Tag Manager. Let's dive into the steps:"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsx)(n.li,{children:"Log in to Google Tag Manager."}),"\n",(0,i.jsx)(n.li,{children:'Click on the "Variables" section on the left.'}),"\n",(0,i.jsx)(n.li,{children:'Click the New button in "User-Defined variables"'}),"\n",(0,i.jsx)(n.li,{children:'Choose "RegEx Table "as the variable type'}),"\n",(0,i.jsx)(n.li,{children:'Select {{Page Path}} as the "Input Variable".'}),"\n",(0,i.jsx)(n.li,{children:"In the RegEx Table, add a row and specify the URL pattern that should be excluded (e.g., /privacy-policy). Please note that special characters need to be escaped so put a backward slash in front of any forward slash."}),"\n",(0,i.jsx)(n.li,{children:"Set the Output value for the excluded URL pattern to false."}),"\n",(0,i.jsx)(n.li,{children:'Check the "Set Default Value" option and set the Default value to true.'}),"\n",(0,i.jsx)(n.li,{children:'From the "Advanced Settings", uncheck both "Full Matches Only" and "Enable Capture Groups and Replacement Functionality".'}),"\n",(0,i.jsxs)(n.li,{children:["Provide a name for the new variable and save it.\n",(0,i.jsx)(n.img,{alt:"RegEx Table in Google Tag Manager",placeholder:"blur",src:l})]}),"\n",(0,i.jsx)(n.li,{children:'Go to the "Tags" section and locate the CookieHub tag.'}),"\n",(0,i.jsx)(n.li,{children:"Click the Edit icon to modify the tag configuration."}),"\n",(0,i.jsx)(n.li,{children:'Look for the "Show user interface" field and select the newly created variable from the dropdown list.'}),"\n",(0,i.jsxs)(n.li,{children:["Save the changes to the CookieHub tag.\n",(0,i.jsx)(n.img,{alt:"Exclude CookieHub dialog from certain pages",placeholder:"blur",src:d})]}),"\n",(0,i.jsx)(n.li,{children:"Publish the changes in Google Tag Manager to make them live on your website."}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"use-developmentstage-mode-on-non-production-domains",children:"Use development/stage mode on non-production domains"}),"\n",(0,i.jsx)(n.p,{children:'CookieHub requires the domain to match the one created in the dashboard to store user choices. When using CookieHub on a different domain, the consent dialog will appear on every page view since the choice isn\'t stored. This can be problematic in development and staging environments where a different top-level domain is used. The issue can be easily resolved when implementing CookieHub with Google Tag Manager. You can dynamically populate the "Production" property in the CookieHub tag using a variable that detects the hostname.'}),"\n",(0,i.jsx)(n.p,{children:"Follow these steps to ensure CookieHub operates in production mode only for the designated production domain, while using development mode for other domains:"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsx)(n.li,{children:"Log in to Google Tag Manager."}),"\n",(0,i.jsx)(n.li,{children:'Click on the "Variables" section on the left.'}),"\n",(0,i.jsx)(n.li,{children:'Click the New button in "User-Defined variables"'}),"\n",(0,i.jsx)(n.li,{children:'Choose "RegEx Table "as the variable type'}),"\n",(0,i.jsx)(n.li,{children:'Select {{Page Hostname}} as the "Input Variable".'}),"\n",(0,i.jsx)(n.li,{children:"In the RegEx Table, add a row and specify the production domain (e.g., cookiehub.com). Please note that special characters need to be escaped so put a backward slash in front of dots."}),"\n",(0,i.jsx)(n.li,{children:"Set the Output value for the pattern to true."}),"\n",(0,i.jsx)(n.li,{children:'Check the "Set Default Value" option and set the Default value to false.'}),"\n",(0,i.jsx)(n.li,{children:'From the "Advanced Settings", uncheck both "Full Matches Only" and "Enable Capture Groups and Replacement Functionality".'}),"\n",(0,i.jsxs)(n.li,{children:["Provide a name for the new variable and save it.\n",(0,i.jsx)(n.img,{alt:"RegEx Table in Google Tag Manager",placeholder:"blur",src:g})]}),"\n",(0,i.jsx)(n.li,{children:'Go to the "Tags" section and locate the CookieHub tag.'}),"\n",(0,i.jsx)(n.li,{children:"Click the Edit icon to modify the tag configuration."}),"\n",(0,i.jsx)(n.li,{children:'Look for the "Production" field and select the newly created variable from the dropdown list.'}),"\n",(0,i.jsxs)(n.li,{children:["Save the changes to the CookieHub tag.\n",(0,i.jsx)(n.img,{alt:"Use development/stage mode on non-production domains",placeholder:"blur",src:c})]}),"\n",(0,i.jsx)(n.li,{children:"Publish the changes in Google Tag Manager to make them live on your website."}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"multiple-domains-using-same-gtm-code",children:"Multiple domains using same GTM code"}),"\n",(0,i.jsx)(n.p,{children:"CookieHub requires the domain to match the one created in the dashboard to store user choices. When using the same Google Tag Manager code for multiple top level domains, you'll have to create all domains in your CookieHub account and adjust the CookieHub GTM tag to use the correct domain code based on the top level domain being viewed."}),"\n",(0,i.jsx)(n.p,{children:"Follow these steps to create a RegEx Table variable, detecting the domain name and populating the CookieHub domain code accordingly:"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsx)(n.li,{children:"Log in to Google Tag Manager."}),"\n",(0,i.jsx)(n.li,{children:'Click on the "Variables" section on the left.'}),"\n",(0,i.jsx)(n.li,{children:'Click the New button in "User-Defined variables"'}),"\n",(0,i.jsx)(n.li,{children:'Choose "RegEx Table "as the variable type'}),"\n",(0,i.jsx)(n.li,{children:'Select {{Page Hostname}} as the "Input Variable".'}),"\n",(0,i.jsx)(n.li,{children:"In the RegEx Table, add rows for all domains and type one top level domain in each row. Please note that special characters need to be escaped so put a backward slash in front of dots."}),"\n",(0,i.jsx)(n.li,{children:"Type the domain code for each top level domain as the Output value."}),"\n",(0,i.jsx)(n.li,{children:'From the "Advanced Settings", uncheck both "Full Matches Only" and "Enable Capture Groups and Replacement Functionality".'}),"\n",(0,i.jsxs)(n.li,{children:["Provide a name for the new variable (ex. CookieHub Code) and save it.\n",(0,i.jsx)(n.img,{alt:"RegEx Table in Google Tag Manager",placeholder:"blur",src:h})]}),"\n",(0,i.jsx)(n.li,{children:'Go to the "Tags" section and locate the CookieHub tag.'}),"\n",(0,i.jsx)(n.li,{children:"Click the Edit icon to modify the tag configuration."}),"\n",(0,i.jsx)(n.li,{children:'Look for the "CookieHub domain code" field and select the newly created variable from the dropdown list.'}),"\n",(0,i.jsxs)(n.li,{children:["Save the changes to the CookieHub tag.\n",(0,i.jsx)(n.img,{alt:"Dynamic CookieHub domain code",placeholder:"blur",src:u})]}),"\n",(0,i.jsx)(n.li,{children:"Publish the changes in Google Tag Manager to make them live on your website."}),"\n"]})]})}let p={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,i.jsx)(n,{...e,children:(0,i.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/advanced/google-tag-manager.mdx",route:"/advanced/google-tag-manager",timestamp:1728649812e3,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-gpp":"IAB Global Privacy Platform Framework (GPP)","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-gpp",route:"/features/iab-gpp"},{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:"Google Tag Manager",headings:m},pageNextRoute:"/advanced/google-tag-manager",nextraLayout:o.ZP,themeConfig:s.Z};var b=(0,t.j)(p)},2702:function(e,n,a){"use strict";var i=a(5893);n.Z={logo:(0,i.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,i.jsxs)("span",{children:["\xa9",new Date().getFullYear()," CookieHub"]})}}},5789:function(){}},function(e){e.O(0,[9774,4543,2888,179],function(){return e(e.s=5629)}),_N_E=e.O()}]);