{"id":8501,"date":"2026-08-12T06:02:00","date_gmt":"2026-08-12T04:02:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=8501"},"modified":"2026-08-10T17:55:44","modified_gmt":"2026-08-10T15:55:44","slug":"first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/","title":{"rendered":"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM"},"content":{"rendered":"\r\n<h2 class=\"wp-block-heading\">First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Safari\u2019s Intelligent Tracking Prevention (ITP) and modern browser privacy engines severely restrict client-side cookie persistence. Identifiers set via JavaScript (using <code>document.cookie<\/code>) are capped at a maximum lifespan of 7 days\u2014and frequently reduced to 24 hours when ad-click decoration parameters are detected in the URL. Even traditional CNAME cloaking setups are identified and mitigated by WebKit CNAME defense algorithms when DNS records resolve to third-party tracking providers.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">To preserve data fidelity and attribution accuracy over longer conversion cycles, data architectures must move away from JavaScript-managed storage toward <strong>True First-Party Edge Routing<\/strong> using server-managed HTTP cookies.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">1. The Architectural Blueprint: Server-Managed Edge Cookies<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Bypassing ITP\u2019s 7-day client-side cap requires generating identifiers directly at the network edge via HTTP response headers (<code>Set-Cookie<\/code>). Because browser restrictions differentiate between client-script cookies and legitimate server-generated session headers, cookies configured via Edge Workers remain intact for up to 365 days when compliant with regional consent regulations.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Cookie Attribute<\/th><th>Required Value<\/th><th>Technical Justification<\/th><\/tr><\/thead><tbody><tr><td><code>HttpOnly<\/code><\/td><td><code>true<\/code><\/td><td>Prevents JavaScript access, immunizing the cookie against ITP script caps and XSS theft.<\/td><\/tr><tr><td><code>Secure<\/code><\/td><td><code>true<\/code><\/td><td>Mandates HTTPS transmission across all endpoints.<\/td><\/tr><tr><td><code>SameSite<\/code><\/td><td><code>Lax<\/code> \/ <code>Strict<\/code><\/td><td>Ensures the cookie is treated as a native first-party context.<\/td><\/tr><tr><td><code>Domain<\/code><\/td><td>Apex Domain (e.g., <code>example.com<\/code>)<\/td><td>Prevents CNAME mismatch penalties across subdomains.<\/td><\/tr><\/tbody><\/table><\/figure>\r\n\r\n\r\n\r\n<figure class=\"lw-diagram\">\n<img loading=\"lazy\" src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/first-party-cookie-restoration-surviving-itp-with-cloudfla-en.png\" width=\"1120\" height=\"366\" decoding=\"async\"\n     alt=\"Diagram for the article: Same-Origin Context, Immunity to DNS CNAME Defense, Zero Latency Penalty\">\n<figcaption>The 3 building blocks of the article at a glance: Same-Origin Context, Immunity to DNS CNAME Defense, Zero Latency Penalty.<\/figcaption>\n<\/figure>\n\n<h2 class=\"wp-block-heading\">2. Cookie Restoration via Cloudflare Workers and ssGTM<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An enterprise-grade cookie restoration pipeline leverages Cloudflare Workers as a reverse proxy in front of a Server-Side Google Tag Manager (ssGTM) container. When an HTTP request is intercepted at the edge, the Worker evaluates whether a valid, server-managed identifier exists. If missing or expiring, the Worker injects an updated <code>Set-Cookie<\/code> header into the response.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>\/\/ Cloudflare Worker Edge Script: Server-Managed Identifier Restoration\r\nexport default {\r\n  async fetch(request, env) {\r\n    const response = await fetch(request);\r\n    const newResponse = new Response(response.body, response);\r\n    \r\n    \/\/ Read or generate anonymous first-party identifier\r\n    let fpId = getCookieValue(request.headers.get(\"Cookie\"), \"fp_id\");\r\n    if (!fpId) {\r\n      fpId = crypto.randomUUID();\r\n    }\r\n\r\n    \/\/ Enforce 1-year Server-Managed Set-Cookie header\r\n    newResponse.headers.append(\r\n      \"Set-Cookie\",\r\n      `fp_id=${fpId}; Max-Age=31536000; Path=\/; Domain=example.com; Secure; HttpOnly; SameSite=Lax`\r\n    );\r\n\r\n    return newResponse;\r\n  }\r\n};<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Within ssGTM, this persistent edge identifier is mapped to the standard GA4 or Google Ads client ID, stabilizing multi-touch attribution reports across extended customer journeys.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">3. Google Tag Gateway (GTG): The Perfect Edge Partner<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The <strong>Google Tag Gateway (GTG)<\/strong> represents a specialized first-party routing mechanism that tunnels analytics traffic directly through the primary apex domain. Deploying GTG via Cloudflare Workers creates an optimal synergy with edge cookie restoration:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Same-Origin Context:<\/strong> GTG routes script libraries (e.g., <code>\/gtg\/gtm.js<\/code>) and data payloads (<code>\/gtg\/collect<\/code>) through the identical IP address and Autonomous System Number (ASN) as the main web application.<\/li>\r\n\r\n\r\n<li><strong>Immunity to DNS CNAME Defense:<\/strong> Because GTG operates directly on the primary domain infrastructure via Edge Proxying rather than external DNS delegation, WebKit anti-tracking algorithms classify the traffic as native backend communication.<\/li>\r\n\r\n\r\n<li><strong>Zero Latency Penalty:<\/strong> Executing GTG routing and cookie restoration within the same Cloudflare Edge Worker processes requests at network edge locations, eliminating extra TLS handshakes.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Summary<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Overcoming ITP restrictions requires shifting identifier management from browser scripts to edge infrastructure. Combining server-managed <code>HttpOnly<\/code> cookies via Cloudflare Workers with the same-origin routing of Google Tag Gateway (GTG) delivers a compliant, privacy-centric, and technically resilient measurement architecture.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>An architectural guide on overcoming Safari ITP 7-day cookie caps using true first-party edge routing, server-managed cookies, and Google Tag Gateway.<\/p>\n","protected":false},"author":1,"featured_media":9227,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[91147,91276,91285,91350,91061,91516],"class_list":["post-8501","post","type-post","status-publish","format-standard","hentry","category-digital-marketing","tag-cloudflare","tag-cookies","tag-first-party-data","tag-safari-itp","tag-server-side-gtm","tag-tracking"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM - 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\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM - Lukas Wojcik - Blog\" \/>\n<meta property=\"og:description\" content=\"An architectural guide on overcoming Safari ITP 7-day cookie caps using true first-party edge routing, server-managed cookies, and Google Tag Gateway.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-12T04:02:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/fi-8501-first-party-cookie-restoration-surviving-itp-with-cl.jpg\" \/>\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\/jpeg\" \/>\n<meta name=\"author\" content=\"luky\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"luky\" \/>\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\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/\"},\"author\":{\"name\":\"luky\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM\",\"datePublished\":\"2026-08-12T04:02:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/\"},\"wordCount\":478,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/fi-8501-first-party-cookie-restoration-surviving-itp-with-cl.jpg\",\"keywords\":[\"Cloudflare\",\"Cookies\",\"First-Party Data\",\"Safari ITP\",\"Server-Side GTM\",\"Tracking\"],\"articleSection\":[\"Digital Marketing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/\",\"name\":\"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM - Lukas Wojcik - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/fi-8501-first-party-cookie-restoration-surviving-itp-with-cl.jpg\",\"datePublished\":\"2026-08-12T04:02:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/fi-8501-first-party-cookie-restoration-surviving-itp-with-cl.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/fi-8501-first-party-cookie-restoration-surviving-itp-with-cl.jpg\",\"width\":1200,\"height\":630,\"caption\":\"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-marketing\\\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM\"}]},{\"@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\":\"luky\",\"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\":\"luky\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/author\\\/luky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM - 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\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/","og_locale":"en_US","og_type":"article","og_title":"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM - Lukas Wojcik - Blog","og_description":"An architectural guide on overcoming Safari ITP 7-day cookie caps using true first-party edge routing, server-managed cookies, and Google Tag Gateway.","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-08-12T04:02:00+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/fi-8501-first-party-cookie-restoration-surviving-itp-with-cl.jpg","type":"image\/jpeg"}],"author":"luky","twitter_card":"summary_large_image","twitter_misc":{"Written by":"luky","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/"},"author":{"name":"luky","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM","datePublished":"2026-08-12T04:02:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/"},"wordCount":478,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/fi-8501-first-party-cookie-restoration-surviving-itp-with-cl.jpg","keywords":["Cloudflare","Cookies","First-Party Data","Safari ITP","Server-Side GTM","Tracking"],"articleSection":["Digital Marketing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/","name":"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM - Lukas Wojcik - Blog","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/fi-8501-first-party-cookie-restoration-surviving-itp-with-cl.jpg","datePublished":"2026-08-12T04:02:00+00:00","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/fi-8501-first-party-cookie-restoration-surviving-itp-with-cl.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/fi-8501-first-party-cookie-restoration-surviving-itp-with-cl.jpg","width":1200,"height":630,"caption":"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-marketing\/first-party-cookie-restoration-itp-cloudflare-workers-ssgtm-8501\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"First-Party Cookie Restoration: Surviving ITP with Cloudflare Workers and ssGTM"}]},{"@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":"luky","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":"luky"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"],"url":"https:\/\/www.lukaswojcik.com\/blog\/author\/luky\/"}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/8501","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=8501"}],"version-history":[{"count":1,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/8501\/revisions"}],"predecessor-version":[{"id":9537,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/8501\/revisions\/9537"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/9227"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=8501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=8501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=8501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}