{"id":10176,"date":"2024-10-24T21:40:01","date_gmt":"2024-10-24T21:40:01","guid":{"rendered":"https:\/\/ceowebltd.com\/blog\/?p=10176"},"modified":"2024-10-24T21:40:01","modified_gmt":"2024-10-24T21:40:01","slug":"how-to-implement-consent-mode-for-google-tag-manager","status":"publish","type":"post","link":"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/","title":{"rendered":"How to implement consent mode for Google Tag Manager"},"content":{"rendered":"<p>Implementing Consent Mode for Google Tag Manager (GTM) is crucial for compliance with privacy regulations such as GDPR and CCPA. Consent Mode allows you to manage the behavior of Google tags based on the consent status of your users. This means that tracking can be adjusted according to whether users have given consent for analytics or marketing cookies.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#Overview_of_Consent_Mode\" title=\"Overview of Consent Mode\">Overview of Consent Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#Steps_to_Implement_Consent_Mode_in_Google_Tag_Manager\" title=\"Steps to Implement Consent Mode in Google Tag Manager\">Steps to Implement Consent Mode in Google Tag Manager<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#Step_1_Update_Google_Tag_Manager_to_Support_Consent_Mode\" title=\"Step 1: Update Google Tag Manager to Support Consent Mode\">Step 1: Update Google Tag Manager to Support Consent Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#Step_2_Create_a_Consent_Management_Solution\" title=\"Step 2: Create a Consent Management Solution\">Step 2: Create a Consent Management Solution<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#Step_3_Configure_Tags_in_Google_Tag_Manager\" title=\"Step 3: Configure Tags in Google Tag Manager\">Step 3: Configure Tags in Google Tag Manager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#Step_4_Set_Up_Custom_Events_for_Consent_Changes\" title=\"Step 4: Set Up Custom Events for Consent Changes\">Step 4: Set Up Custom Events for Consent Changes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#Step_5_Testing_Your_Setup\" title=\"Step 5: Testing Your Setup\">Step 5: Testing Your Setup<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#Step_6_Publish_Your_Changes\" title=\"Step 6: Publish Your Changes\">Step 6: Publish Your Changes<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#Best_Practices\" title=\"Best Practices\">Best Practices<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Overview_of_Consent_Mode\"><\/span>Overview of Consent Mode<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Consent Mode adjusts the behavior of Google tags based on user consent status for various types of cookies, such as:<\/p>\n<ul>\n<li><strong>Analytics cookies<\/strong>: Used for Google Analytics tracking.<\/li>\n<li><strong>Ads cookies<\/strong>: Used for advertising purposes, such as Google Ads.<\/li>\n<\/ul>\n<p>When Consent Mode is implemented, GTM can send a signal to Google services about the consent status, allowing you to continue measuring conversions and user interactions even when users deny consent for cookies.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Steps_to_Implement_Consent_Mode_in_Google_Tag_Manager\"><\/span>Steps to Implement Consent Mode in Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Here\u2019s a detailed guide on how to set up Consent Mode in GTM:<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Update_Google_Tag_Manager_to_Support_Consent_Mode\"><\/span>Step 1: Update Google Tag Manager to Support Consent Mode<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Log in to your GTM Account<\/strong>: Go to <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_new\" rel=\"noopener\">Google Tag Manager<\/a> and log in to your account.<\/li>\n<li><strong>Create or Update Your GTM Container<\/strong>:\n<ul>\n<li>If you don\u2019t have a container, create a new one. If you have one, ensure it\u2019s updated to the latest version.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add the Consent Mode Code<\/strong>:\n<ul>\n<li>Before the GTM container code on your website, you need to add the following code snippet to set the initial consent state:<\/li>\n<\/ul>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary\">html<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center py-1\">Copy code<\/button><\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-html\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">script<\/span>&gt;<\/span><span class=\"javascript\"><br \/>\n  <span class=\"hljs-keyword\">function<\/span> <span class=\"hljs-title function_\">gtag<\/span>(){dataLayer.<span class=\"hljs-title function_\">push<\/span>(<span class=\"hljs-variable language_\">arguments<\/span>);}<br \/>\n  <span class=\"hljs-variable language_\">window<\/span>.<span class=\"hljs-property\">dataLayer<\/span> = <span class=\"hljs-variable language_\">window<\/span>.<span class=\"hljs-property\">dataLayer<\/span> || [];<br \/>\n  <span class=\"hljs-title function_\">gtag<\/span>(<span class=\"hljs-string\">'consent'<\/span>, <span class=\"hljs-string\">'default'<\/span>, {<br \/>\n    <span class=\"hljs-string\">'ad_storage'<\/span>: <span class=\"hljs-string\">'denied'<\/span>,<br \/>\n    <span class=\"hljs-string\">'analytics_storage'<\/span>: <span class=\"hljs-string\">'denied'<\/span>,<br \/>\n    <span class=\"hljs-string\">'wait_for_update'<\/span>: <span class=\"hljs-number\">500<\/span> <span class=\"hljs-comment\">\/\/ Optional<\/span><br \/>\n  });<br \/>\n<\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">script<\/span>&gt;<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<ul>\n<li>This code snippet sets the default consent for both ad and analytics storage to &#8220;denied.&#8221; You can adjust the consent state based on your users&#8217; choices.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_2_Create_a_Consent_Management_Solution\"><\/span>Step 2: Create a Consent Management Solution<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To gather consent from users, you\u2019ll need to implement a Consent Management Platform (CMP) or a custom consent dialog that allows users to opt in or out of different types of cookies.<\/p>\n<ol>\n<li><strong>Implement the CMP<\/strong>:\n<ul>\n<li>Choose a CMP that fits your needs (e.g., OneTrust, Cookiebot, or a custom-built solution).<\/li>\n<li>Ensure that your CMP is set up to ask users for consent regarding both analytics and ad cookies.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Trigger Consent Updates<\/strong>:\n<ul>\n<li>Based on the user\u2019s selection in the consent dialog, you\u2019ll need to call the <code>gtag<\/code> function to update the consent status.<\/li>\n<\/ul>\n<p>For example, if a user consents to analytics but denies ads, you could use:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary\">html<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center py-1\">Copy code<\/button><\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-html\">gtag('consent', 'update', {<br \/>\n  'ad_storage': 'denied',<br \/>\n  'analytics_storage': 'granted'<br \/>\n});<br \/>\n<\/code><\/div>\n<\/div>\n<ul>\n<li>This code should be executed when the user makes a choice regarding their consent preferences.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_3_Configure_Tags_in_Google_Tag_Manager\"><\/span>Step 3: Configure Tags in Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Open Your GTM Container<\/strong>: Go to the GTM dashboard and select your container.<\/li>\n<li><strong>Update Google Analytics Tags<\/strong>:\n<ul>\n<li>Click on \u201cTags\u201d in the left sidebar.<\/li>\n<li>Select your Google Analytics tag (Universal Analytics or GA4) or create a new one.<\/li>\n<li>In the tag configuration, make sure that the tag is set to fire based on user consent status.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add a Consent Check<\/strong>:\n<ul>\n<li>In the tag configuration, under \u201cAdvanced Settings,\u201d use the \u201cEnable this tag when\u201d setting to restrict firing based on the consent status.<\/li>\n<li>You can use the built-in variable <code>{{Consent Status}}<\/code> to define when the tag should fire (e.g., fire only when analytics storage is granted).<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_4_Set_Up_Custom_Events_for_Consent_Changes\"><\/span>Step 4: Set Up Custom Events for Consent Changes<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To track user consent actions as events in Google Analytics, you can set up custom events in GTM.<\/p>\n<ol>\n<li><strong>Create a New Trigger<\/strong>:\n<ul>\n<li>Go to \u201cTriggers\u201d and click \u201cNew.\u201d<\/li>\n<li>Select \u201cCustom Event\u201d as the trigger type.<\/li>\n<li>Name the trigger (e.g., \u201cConsent Granted\u201d or \u201cConsent Denied\u201d).<\/li>\n<li>In the Event Name field, enter the name of the event that corresponds to consent actions (e.g., &#8220;consent_granted&#8221; or &#8220;consent_denied&#8221;).<\/li>\n<li>Choose \u201cAll Custom Events\u201d or specify conditions to fire the trigger.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a New Tag for Analytics Events<\/strong>:\n<ul>\n<li>Go to \u201cTags\u201d and create a new tag.<\/li>\n<li>Select \u201cGoogle Analytics: Universal Analytics\u201d or \u201cGA4 Event.\u201d<\/li>\n<li>For Universal Analytics, set the Track Type to \u201cEvent\u201d and fill in the necessary fields (Category, Action, Label).<\/li>\n<li>Choose the trigger you created in the previous step.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_5_Testing_Your_Setup\"><\/span>Step 5: Testing Your Setup<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Enter Preview Mode<\/strong>: Click on the \u201cPreview\u201d button in GTM to enter preview mode.<\/li>\n<li><strong>Test Consent Dialog<\/strong>: Open your website and interact with the consent dialog.<\/li>\n<li><strong>Check Tag Firing<\/strong>:\n<ul>\n<li>Ensure that the correct tags fire based on the user\u2019s consent choices.<\/li>\n<li>You can monitor the data layer in the preview pane to verify the consent status and tag firing behavior.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Review Analytics<\/strong>: Check the Google Analytics Real-Time reports to confirm that the events are being recorded based on user consent.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_6_Publish_Your_Changes\"><\/span>Step 6: Publish Your Changes<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Once you have tested and verified that everything is working as intended:<\/p>\n<ol>\n<li><strong>Submit Changes<\/strong>: Click on \u201cSubmit\u201d in GTM to publish your changes.<\/li>\n<li><strong>Version Name and Description<\/strong>: Add a version name and description (e.g., \u201cImplemented Consent Mode\u201d).<\/li>\n<li><strong>Publish the Container<\/strong>: Click \u201cPublish\u201d to make your changes live.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Best_Practices\"><\/span>Best Practices<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><strong>Regularly Review Consent<\/strong>: Ensure you have a mechanism to refresh user consent periodically, as regulations may change and user preferences can evolve.<\/li>\n<li><strong>Privacy Policy<\/strong>: Update your privacy policy to reflect how you handle user consent and data processing.<\/li>\n<li><strong>Testing<\/strong>: Regularly test your consent implementation to ensure it works as expected across various scenarios.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Implementing Consent Mode in Google Tag Manager is essential for maintaining compliance with privacy regulations while still collecting valuable analytics data. By following the steps outlined above, you can set up a system that respects user privacy and enables effective tracking. This setup not only enhances user trust but also allows for better insights into user behavior, helping you make data-driven decisions for your website or application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Implementing Consent Mode for Google Tag Manager (GTM) is crucial for compliance with privacy regulations such as GDPR and CCPA. Consent Mode allows you to&#8230;<\/p>\n","protected":false},"author":214,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-10176","post","type-post","status-publish","format-standard","hentry","category-digital-marketing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to implement consent mode for Google Tag Manager - CEOweb Ltd. Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to implement consent mode for Google Tag Manager - CEOweb Ltd. Blog\" \/>\n<meta property=\"og:description\" content=\"Implementing Consent Mode for Google Tag Manager (GTM) is crucial for compliance with privacy regulations such as GDPR and CCPA. Consent Mode allows you to...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"CEOweb Ltd. Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-24T21:40:01+00:00\" \/>\n<meta name=\"author\" content=\"Emmanuel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Emmanuel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/\",\"url\":\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/\",\"name\":\"How to implement consent mode for Google Tag Manager - CEOweb Ltd. Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\"},\"datePublished\":\"2024-10-24T21:40:01+00:00\",\"dateModified\":\"2024-10-24T21:40:01+00:00\",\"author\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\"},\"breadcrumb\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ceowebltd.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to implement consent mode for Google Tag Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\",\"url\":\"https:\/\/ceowebltd.com\/blog\/\",\"name\":\"CEOweb Ltd. Blog\",\"description\":\"Guest Posting - Digital Marketing &amp; Web Services\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ceowebltd.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\",\"name\":\"Emmanuel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g\",\"caption\":\"Emmanuel\"},\"url\":\"https:\/\/ceowebltd.com\/blog\/author\/emmanuel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to implement consent mode for Google Tag Manager - CEOweb Ltd. Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"How to implement consent mode for Google Tag Manager - CEOweb Ltd. Blog","og_description":"Implementing Consent Mode for Google Tag Manager (GTM) is crucial for compliance with privacy regulations such as GDPR and CCPA. Consent Mode allows you to...","og_url":"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/","og_site_name":"CEOweb Ltd. Blog","article_published_time":"2024-10-24T21:40:01+00:00","author":"Emmanuel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Emmanuel","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/","url":"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/","name":"How to implement consent mode for Google Tag Manager - CEOweb Ltd. Blog","isPartOf":{"@id":"https:\/\/ceowebltd.com\/blog\/#website"},"datePublished":"2024-10-24T21:40:01+00:00","dateModified":"2024-10-24T21:40:01+00:00","author":{"@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f"},"breadcrumb":{"@id":"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ceowebltd.com\/blog\/how-to-implement-consent-mode-for-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ceowebltd.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to implement consent mode for Google Tag Manager"}]},{"@type":"WebSite","@id":"https:\/\/ceowebltd.com\/blog\/#website","url":"https:\/\/ceowebltd.com\/blog\/","name":"CEOweb Ltd. Blog","description":"Guest Posting - Digital Marketing &amp; Web Services","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ceowebltd.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f","name":"Emmanuel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g","caption":"Emmanuel"},"url":"https:\/\/ceowebltd.com\/blog\/author\/emmanuel\/"}]}},"_links":{"self":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/users\/214"}],"replies":[{"embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/comments?post=10176"}],"version-history":[{"count":1,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10176\/revisions"}],"predecessor-version":[{"id":10177,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10176\/revisions\/10177"}],"wp:attachment":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/media?parent=10176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/categories?post=10176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/tags?post=10176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}