{"id":24,"date":"2026-07-08T18:16:00","date_gmt":"2026-07-08T16:16:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=24"},"modified":"2026-10-26T10:52:19","modified_gmt":"2026-10-26T09:52:19","slug":"passing-cookie-consent-choices-to-server-side-google-tag-manager","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/","title":{"rendered":"Passing Cookie Consent Choices to Server-Side Google Tag Manager"},"content":{"rendered":"<p>A server-side Google Tag Manager container (sGTM) processes incoming requests. The current consent-banner choice is available only through a suitable transmitted signal or a reliable server-side source. Missing consent information does not automatically send data to Meta CAPI: the configured tags and triggers determine what happens.<\/p>\n<p>A container groups the configured tags and rules. A tag sends data to a service; a trigger decides when it runs. The consent management platform (CMP), here Usercentrics, manages the banner and saved choices. Meta CAPI sends events from the server to Meta.<\/p>\n<p>This example carries the service-specific Meta choice from Usercentrics as an event parameter. Google Consent Mode remains separately configured for Google tags. The result is a technical firing rule, not proof that the overall data processing is lawful.<\/p>\n<figure class=\"lw-diagram wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/dia-22-bridge-20261024-en.png\" alt=\"Consent from the browser to the Meta CAPI tag\" width=\"1120\" height=\"580\" loading=\"lazy\" \/><\/figure>\n<h2>1. Prerequisites and a consistent value<\/h2>\n<p>The setup requires working web and server containers, a server-side GA4 client, and a Usercentrics integration with documented consent events. CMP versions and integrations expose different structures. The web preview must first confirm the actual event and the exact Meta service name. An invented data-layer key will not retrieve consent automatically.<\/p>\n<p>A Data Layer Variable named <code>{{UC - Meta Consent}}<\/code> reads that service-specific value, with <code>false<\/code> as its default. The data layer is the collection of event information read by web GTM. If the consent system announces a choice through a window event, integration code must first copy the required value into that collection. This Custom JavaScript Variable example accepts only the Boolean value <code>true<\/code> or the text <code>'true'<\/code> as consent:<\/p>\n<pre class=\"wp-block-code\"><code>function () {\n  var value = {{UC - Meta Consent}};\n  return value === true || value === &#x27;true&#x27; ? &#x27;granted&#x27; : &#x27;denied&#x27;;\n}<\/code><\/pre>\n<p>The resulting variable is named <code>{{Meta Consent State}}<\/code>. Missing values, numbers, and other strings become <code>denied<\/code>. These two output strings are a convention for this example, not built-in Meta or Google consent parameters.<\/p>\n<h2>2. Browser tags and transport<\/h2>\n<ol>\n<li>The Meta Pixel initialization tag receives the appropriate consent-event trigger plus <code>{{Meta Consent State}} equals granted<\/code>. Depending on the integration, Usercentrics documents <code>consent_status<\/code> or related event variants. Preview confirms the actual name.<\/li>\n<li>Additional Meta events, such as a purchase, need the same service-specific condition on their own event triggers. An initialization trigger does not protect every subsequent tag.<\/li>\n<li>The Google tag transport routes to the tagging server. Each relevant GA4 event carries <code>meta_consent_state<\/code> with <code>{{Meta Consent State}}<\/code> as its value. Shared event settings can reduce repeated setup. Preview must still show that every intended event actually contains the parameter.<\/li>\n<\/ol>\n<p>Google consent signals do not replace the Meta-specific choice. The transport also needs an appropriate consent configuration. In Basic Consent Mode, an analytics tag without permission can remain completely blocked, so its Meta parameter never reaches the server. Meta permission alone does not justify enabling the GA4 transport indiscriminately.<\/p>\n<p>Blocking a later GTM trigger does not unload a Pixel library that is already running. Automatic Pixel events and other integrations therefore need separate checks. Withdrawal must also update the loaded library through the CMP\/Pixel integration; the Meta template supports <code>grant<\/code>\/<code>revoke<\/code> for this. The state-update path must remain usable when consent is denied.<\/p>\n<h2>3. A server-side firing trigger<\/h2>\n<p>An <strong>Event Data<\/strong> variable with key path <code>meta_consent_state<\/code> reads the received value. The GA4 client must actually expose that parameter in the event; server preview shows whether that happened.<\/p>\n<p>The Meta CAPI trigger requires the expected client, an explicitly supported event, and <code>meta_consent_state equals granted<\/code> together. The client name must match the configured client. Separate rules or a precise list can cover <code>page_view<\/code> and <code>purchase<\/code>; <code>.*<\/code> matches every event, not only e-commerce events.<\/p>\n<p>This rule belongs under the tag&#8217;s <strong>firing triggers<\/strong>. It is not a blocking exception: an exception matching \u201cgranted\u201d would block the allowed case. Other broader firing triggers need removal or equivalent restrictions. Missing, <code>denied<\/code>, and unexpected values do not satisfy this rule.<\/p>\n<h2>4. Limited forwarding and observable checks<\/h2>\n<p>A transport parameter need not reach every destination. An sGTM <strong>Exclude parameters<\/strong> transformation targeted to the GA4 tag can remove <code>meta_consent_state<\/code> before forwarding data to Google. Its scope must preserve the value wherever Meta gating needs it. Not registering a custom dimension does not prevent transmission.<\/p>\n<table>\n<thead>\n<tr>\n<th>Test case<\/th>\n<th>Expected Meta behavior<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>No decision, rejection, or missing parameter<\/td>\n<td>No Pixel\/CAPI delivery through the protected triggers<\/td>\n<\/tr>\n<tr>\n<td>Meta allowed and a relevant event<\/td>\n<td>Only the intended tags fire<\/td>\n<\/tr>\n<tr>\n<td>Other services allowed, Meta denied<\/td>\n<td>Meta stays blocked<\/td>\n<\/tr>\n<tr>\n<td>Withdrawal followed by a new event<\/td>\n<td>Updated state blocks further delivery<\/td>\n<\/tr>\n<tr>\n<td>New page with a saved choice<\/td>\n<td>Choice is restored before the relevant event<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Verification covers web and server preview, resolved variables, and actual outgoing requests. Withdrawal cannot recall events already sent. A newly granted choice is also not a reason to replay previously blocked events without a separate assessment.<\/p>\n<div class=\"lw-faq\">\n<h2>Questions and answers<\/h2>\n<h3>Does the parameter prove valid consent?<\/h3>\n<p>No. A browser parameter can be altered and is not tamper-proof evidence. Validity, purposes, required information, and any separate evidence requirements belong to the overall system design.<\/p>\n<h3>Why can events be missing after consent was granted?<\/h3>\n<p>Possible causes include a choice not yet restored by the CMP, the wrong key, missing parameter inheritance, or a blocked transport. A later choice cannot change a request already received. These cases need separate technical diagnosis.<\/p>\n<h3>Does this work with every Meta CAPI template?<\/h3>\n<p>Event data and triggers must fit the installed template. Parameter mapping, additional delivery paths, and potential browser\/server duplicates require their own checks. A successful trigger condition alone does not establish a correct overall implementation.<\/p>\n<\/div>\n<h2>Sources and review date<\/h2>\n<p>2026-10-24<\/p>\n<ul>\n<li><a href=\"https:\/\/developers.google.com\/tag-platform\/tag-manager\/server-side\/consent-mode\">Google: server-side consent mode<\/a><\/li>\n<li><a href=\"https:\/\/developers.google.com\/tag-platform\/tag-manager\/server-side\/send-data\">Google: event transport and event data<\/a><\/li>\n<li><a href=\"https:\/\/developers.google.com\/tag-platform\/tag-manager\/server-side\/transformations\">Google: transformations<\/a><\/li>\n<li><a href=\"https:\/\/support.usercentrics.com\/hc\/en-us\/articles\/18375671341596-How-to-Configure-Google-Tag-Manager-Tags-to-be-Consent-Aware\">Usercentrics: consent-aware GTM tags<\/a><\/li>\n<li><a href=\"https:\/\/support.usercentrics.com\/hc\/en-us\/articles\/17484523116572-Communicating-consent-information-to-third-party-applications\">Usercentrics: consent events for third-party systems<\/a><\/li>\n<li><a href=\"https:\/\/usercentrics.com\/beta-docs\/web-cmp-v2-events\">Usercentrics: CMP v2 event structure<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/facebook\/GoogleTagManager-WebTemplate-For-FacebookPixel\/blob\/main\/template.tpl\">Meta: Pixel template consent controls<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Consent choices from Usercentrics can control Meta data transfers in the browser and on the server. The example shows how to pass the choice, block delivery after refusal and test withdrawal.<\/p>\n","protected":false},"author":1,"featured_media":30409,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[91040,91041,91279,91267,91057,91061,91059],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-digital-marketing","tag-consent-management","tag-consent-mode-v2","tag-prywatnosc-danych-pl","tag-google-tag-manager","tag-meta-conversions-api","tag-server-side-gtm","tag-usercentrics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Passing Cookie Consent Choices to Server-Side Google Tag Manager | Lukas Wojcik<\/title>\n<meta name=\"description\" content=\"Pass consent status from the browser to Server-Side GTM: Usercentrics, event parameters and conditional firing of Meta CAPI tags.\" \/>\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\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Passing Cookie Consent Choices to Server-Side Google Tag Manager | Lukas Wojcik\" \/>\n<meta property=\"og:description\" content=\"Pass consent status from the browser to Server-Side GTM: Usercentrics, event parameters and conditional firing of Meta CAPI tags.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-08T16:16:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-26T09:52:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-24.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=\"4 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\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/\"},\"author\":{\"name\":\"Lukas Wojcik\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"Passing Cookie Consent Choices to Server-Side Google Tag Manager\",\"datePublished\":\"2026-07-08T16:16:00+00:00\",\"dateModified\":\"2026-10-26T09:52:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/\"},\"wordCount\":901,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/klarheit-20261111-24.png\",\"keywords\":[\"Consent Management\",\"Consent Mode v2\",\"Data Privacy\",\"Google Tag Manager\",\"Meta Conversions API\",\"Server-Side GTM\",\"Usercentrics\"],\"articleSection\":[\"Digital Marketing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/\",\"name\":\"Passing Cookie Consent Choices to Server-Side Google Tag Manager | Lukas Wojcik\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/klarheit-20261111-24.png\",\"datePublished\":\"2026-07-08T16:16:00+00:00\",\"dateModified\":\"2026-10-26T09:52:19+00:00\",\"description\":\"Pass consent status from the browser to Server-Side GTM: Usercentrics, event parameters and conditional firing of Meta CAPI tags.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/klarheit-20261111-24.png\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/klarheit-20261111-24.png\",\"width\":1200,\"height\":630,\"caption\":\"Passing Cookie Consent Choices to Server-Side Google Tag Manager\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/passing-cookie-consent-choices-to-server-side-google-tag-manager\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Passing Cookie Consent Choices to Server-Side Google Tag Manager\"}]},{\"@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":"Passing Cookie Consent Choices to Server-Side Google Tag Manager | Lukas Wojcik","description":"Pass consent status from the browser to Server-Side GTM: Usercentrics, event parameters and conditional firing of Meta CAPI tags.","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\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"Passing Cookie Consent Choices to Server-Side Google Tag Manager | Lukas Wojcik","og_description":"Pass consent status from the browser to Server-Side GTM: Usercentrics, event parameters and conditional firing of Meta CAPI tags.","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-07-08T16:16:00+00:00","article_modified_time":"2026-10-26T09:52:19+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-24.png","type":"image\/png"}],"author":"Lukas Wojcik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lukas Wojcik","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/"},"author":{"name":"Lukas Wojcik","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"Passing Cookie Consent Choices to Server-Side Google Tag Manager","datePublished":"2026-07-08T16:16:00+00:00","dateModified":"2026-10-26T09:52:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/"},"wordCount":901,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-24.png","keywords":["Consent Management","Consent Mode v2","Data Privacy","Google Tag Manager","Meta Conversions API","Server-Side GTM","Usercentrics"],"articleSection":["Digital Marketing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/","name":"Passing Cookie Consent Choices to Server-Side Google Tag Manager | Lukas Wojcik","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-24.png","datePublished":"2026-07-08T16:16:00+00:00","dateModified":"2026-10-26T09:52:19+00:00","description":"Pass consent status from the browser to Server-Side GTM: Usercentrics, event parameters and conditional firing of Meta CAPI tags.","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-24.png","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/11\/klarheit-20261111-24.png","width":1200,"height":630,"caption":"Passing Cookie Consent Choices to Server-Side Google Tag Manager"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/passing-cookie-consent-choices-to-server-side-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Passing Cookie Consent Choices to Server-Side Google Tag Manager"}]},{"@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\/24","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=24"}],"version-history":[{"count":11,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":26323,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions\/26323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/30409"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}