{"id":130,"date":"2026-07-20T14:23:00","date_gmt":"2026-07-20T12:23:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=130"},"modified":"2026-09-10T10:54:35","modified_gmt":"2026-09-10T08:54:35","slug":"microsoft-ads-consent-mode-implementation-via-javascript-and-gtm","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/","title":{"rendered":"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">With growing privacy regulations (GDPR, DMA), managing user consent has become the foundation of web analytics. Everyone is familiar with Google Consent Mode (GCM), but Microsoft Ads (formerly Bing Ads) has also introduced its own mechanism for its UET (Universal Event Tracking) tag. How does it work, and how is it implemented?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Microsoft Ads Consent Mode?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Microsoft Ads Consent Mode allows the UET tag to adjust its behavior based on whether the user has granted consent for advertising cookies (<code>ad_storage<\/code>). If consent is denied, the UET tag does not store cookies (like <code>_uetvid<\/code>) but can still send anonymous, cookieless pings to Microsoft&#8217;s servers. This helps with basic conversion modeling.<\/p>\r\n\r\n\r\n\r\n<figure class=\"lw-diagram\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/hand-msconsent-en.png\" width=\"1120\" height=\"560\" alt=\"Comparison of the Microsoft UET consent signal with the four Google Consent Mode signals and the two implementation paths\">\n<figcaption>Microsoft only evaluates ad_storage, while Google splits the same decision into four signals. The order matters more than the number: the default has to be set before the UET tag loads.<\/figcaption>\n<\/figure>\r\n\n\n\n<h2 class=\"wp-block-heading\">Implementation via Vanilla JavaScript<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Without GTM, with the UET tag hardcoded on the site, consent is managed through the <code>.push<\/code> method on the <code>uetq<\/code> array. Microsoft has aligned its API closely with Google&#8217;s approach.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1: Set the default state (before the UET tag loads):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>window.uetq = window.uetq || &#091;];\nwindow.uetq.push('consent', 'default', {\n    'ad_storage': 'denied'\n});\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2: Update after the user clicks &#8220;Accept&#8221; in the banner:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>window.uetq.push('consent', 'update', {\n    'ad_storage': 'granted'\n});\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This tells the UET tag that it is now allowed to drop and read identifiers in the browser.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation via Google Tag Manager (GTM)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Implementing this via GTM is straightforward because the official Microsoft UET tag natively integrates with GTM&#8217;s Consent API.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>State Management (Simo Ahava&#8217;s Template):<\/strong> Use the <em>Consent Mode (Google tags)<\/em> template created by Simo Ahava. While named for Google, this template sets the global GTM consent state (like <code>ad_storage<\/code>).<\/li>\n\n\n\n<li><strong>UET Tag Configuration:<\/strong> Add the official &#8220;Microsoft Advertising Universal Event Tracking&#8221; tag in the GTM workspace.<\/li>\n\n\n\n<li><strong>Advanced Consent Settings:<\/strong> Under the tag&#8217;s Advanced Settings -&gt; Consent Settings, specify that the tag requires <code>ad_storage<\/code> consent.<\/li>\n\n\n\n<li>When consent is granted, GTM updates the state, and the UET tag automatically reacts, shifting from cookieless pings to full tracking.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Differences: Google Consent Mode vs. Microsoft Ads<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The core concept is identical, but the maturity of the modeling engines differs:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Data Modeling:<\/strong> Google has a highly sophisticated Conversion Modeling engine that uses cookieless pings (from Advanced Consent Mode) to fill data gaps in GA4 and Google Ads. Microsoft Ads also uses cookieless pings for modeling, but their system is less mature and typically requires a higher volume of data to function accurately.<\/li>\n\n\n\n<li><strong>Signal Complexity:<\/strong> Google now requires <code>ad_user_data<\/code> and <code>ad_personalization<\/code> flags (GCM v2). Microsoft Ads primarily relies on the core <code>ad_storage<\/code> signal.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Do Other Platforms (Meta, TikTok, LinkedIn, Pinterest) Have a Consent Mode?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The short answer is: <strong>Not in the same way as Google (Advanced Mode with pings).<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Other social networks rely almost entirely on <strong>Basic Consent Mode<\/strong> (which means strictly blocking the tag if consent is denied).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Meta (Facebook):<\/strong> The Meta Pixel does not have an official GDPR &#8220;cookieless ping&#8221; mode. If a user rejects cookies, the Meta tag simply stays blocked in GTM. They do have Limited Data Use (LDU), but that is primarily for California&#8217;s CCPA compliance.<\/li>\n\n\n\n<li><strong>TikTok:<\/strong> The official TikTok GTM template respects GTM&#8217;s Consent API, but it acts as a hard block (no consent = tag doesn&#8217;t fire).<\/li>\n\n\n\n<li><strong>LinkedIn:<\/strong> The Insight Tag supports GTM consent checks, but it pauses tracking completely if consent is missing. It does not send anonymous pings.<\/li>\n\n\n\n<li><strong>Pinterest:<\/strong> The Pinterest Tag behaves similarly. Denied consent results in a hard block.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Google (and subsequently Microsoft) are the main platforms pushing for restricted data transmission (pings) without cookies to train their AI models.<\/p>\n\n\n<div class=\"lw-quellen\">\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/learn.microsoft.com\/en-us\/advertising\/msa-help\/hlp_ba_conc_uet_consentfaq\" target=\"_blank\" rel=\"noopener noreferrer\">UET and user consent (FAQ)<\/a><\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>With growing privacy regulations (GDPR, DMA), managing user consent has become the foundation of web analytics. Everyone is familiar with Google Consent Mode (GCM), but Microsoft Ads (formerly Bing Ads) has also introduced its own mechanism for its UET (Universal Event Tracking) tag. How does it work, and how is it implemented? What is Microsoft [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":19771,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[91040,91041,91261,91279,91270,91267],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-digital-marketing","tag-consent-management","tag-consent-mode-v2","tag-conversion-tracking","tag-prywatnosc-danych-pl","tag-gdpr","tag-google-tag-manager"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google - Lukas Wojcik - 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:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google - Lukas Wojcik - Blog\" \/>\n<meta property=\"og:description\" content=\"With growing privacy regulations (GDPR, DMA), managing user consent has become the foundation of web analytics. Everyone is familiar with Google Consent Mode (GCM), but Microsoft Ads (formerly Bing Ads) has also introduced its own mechanism for its UET (Universal Event Tracking) tag. How does it work, and how is it implemented? What is Microsoft [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-20T12:23:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-10T08:54:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-130-microsoft-ads-consent-mode-implement-tk.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Lukas Wojcik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lukas Wojcik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/\"},\"author\":{\"name\":\"Lukas Wojcik\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google\",\"datePublished\":\"2026-07-20T12:23:00+00:00\",\"dateModified\":\"2026-09-10T08:54:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/\"},\"wordCount\":601,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-130-microsoft-ads-consent-mode-implement-tk.png\",\"keywords\":[\"Consent Management\",\"Consent Mode v2\",\"Conversion Tracking\",\"Data Privacy\",\"GDPR\",\"Google Tag Manager\"],\"articleSection\":[\"Digital Marketing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/\",\"name\":\"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google - Lukas Wojcik - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-130-microsoft-ads-consent-mode-implement-tk.png\",\"datePublished\":\"2026-07-20T12:23:00+00:00\",\"dateModified\":\"2026-09-10T08:54:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-130-microsoft-ads-consent-mode-implement-tk.png\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/hero-130-microsoft-ads-consent-mode-implement-tk.png\",\"width\":1200,\"height\":630,\"caption\":\"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"Lukas Wojcik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"Lukas Wojcik\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google - Lukas Wojcik - 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:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/","og_locale":"en_US","og_type":"article","og_title":"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google - Lukas Wojcik - Blog","og_description":"With growing privacy regulations (GDPR, DMA), managing user consent has become the foundation of web analytics. Everyone is familiar with Google Consent Mode (GCM), but Microsoft Ads (formerly Bing Ads) has also introduced its own mechanism for its UET (Universal Event Tracking) tag. How does it work, and how is it implemented? What is Microsoft [&hellip;]","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-07-20T12:23:00+00:00","article_modified_time":"2026-09-10T08:54:35+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-130-microsoft-ads-consent-mode-implement-tk.png","type":"image\/png"}],"author":"Lukas Wojcik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lukas Wojcik","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/"},"author":{"name":"Lukas Wojcik","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google","datePublished":"2026-07-20T12:23:00+00:00","dateModified":"2026-09-10T08:54:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/"},"wordCount":601,"commentCount":2,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-130-microsoft-ads-consent-mode-implement-tk.png","keywords":["Consent Management","Consent Mode v2","Conversion Tracking","Data Privacy","GDPR","Google Tag Manager"],"articleSection":["Digital Marketing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/","name":"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google - Lukas Wojcik - Blog","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-130-microsoft-ads-consent-mode-implement-tk.png","datePublished":"2026-07-20T12:23:00+00:00","dateModified":"2026-09-10T08:54:35+00:00","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-130-microsoft-ads-consent-mode-implement-tk.png","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/09\/hero-130-microsoft-ads-consent-mode-implement-tk.png","width":1200,"height":630,"caption":"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/microsoft-ads-consent-mode-implementation-via-javascript-and-gtm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Microsoft Ads Consent Mode: Implementation via JavaScript and GTM, Differences From Google"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"Lukas Wojcik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"Lukas Wojcik"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":8,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":17996,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/130\/revisions\/17996"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/19771"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}