<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Luke Sandelands</title>
    <description>The latest articles on DEV Community by Luke Sandelands (@stack_architect).</description>
    <link>https://dev.to/stack_architect</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4047278%2Ff036e3b8-37c8-482e-80e3-beac221349f9.png</url>
      <title>DEV Community: Luke Sandelands</title>
      <link>https://dev.to/stack_architect</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stack_architect"/>
    <language>en</language>
    <item>
      <title>My 62-page site sent Bing 55,000 URLs. I found out four months later.</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Mon, 16 Nov 2026 17:02:28 +0000</pubDate>
      <link>https://dev.to/stack_architect/my-62-page-site-sent-bing-55000-urls-i-found-out-four-months-later-4jo3</link>
      <guid>https://dev.to/stack_architect/my-62-page-site-sent-bing-55000-urls-i-found-out-four-months-later-4jo3</guid>
      <description>&lt;p&gt;&lt;strong&gt;Two submitters I had forgotten about sent Bing about 55,000 IndexNow URLs for a 62-page site between April and September 2026: an Astro integration that re-sent every page on every build, because its change cache lived in a gitignored file, and Cloudflare Crawler Hints, which pings IndexNow whenever a deploy changes the HTML.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I run &lt;a href="https://stackarchitect.xyz/" rel="noopener noreferrer"&gt;Stack Architect&lt;/a&gt;, a static Astro site on Cloudflare Pages with free Shopify automation guides. It has 38 pages in its sitemap today and had 62 at the time. Google has indexed one of them, the homepage. For months I treated that as a mystery to solve with one more technical fix.&lt;/p&gt;

&lt;p&gt;This is what I found instead, in the order I found it. Three were real problems, two of them running for months. Four were tools and dashboards telling me something that wasn't true. All of it is dated, and most of it you can check on your own site in under ten minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The number
&lt;/h2&gt;

&lt;p&gt;On 18 September 2026 I exported the IndexNow report from Bing Webmaster Tools. It showed about &lt;strong&gt;55,000 URLs submitted since 22 April&lt;/strong&gt;, for a site with 62 pages in its sitemap.&lt;/p&gt;

&lt;p&gt;The busiest days were 23 July (4,886 URLs), 22 July (2,508) and 21 July (2,392). Even on quiet days, 20 to 77 URLs were still going out. Over the same period Bing indexed &lt;strong&gt;33&lt;/strong&gt; URLs, every one of them before 24 July, and then crawled nothing new for eight weeks.&lt;/p&gt;

&lt;p&gt;I hadn't written anything that sent 55,000 URLs. Two things I'd switched on and forgotten had.&lt;/p&gt;

&lt;h2&gt;
  
  
  Culprit 1: an IndexNow integration that couldn't remember anything
&lt;/h2&gt;

&lt;p&gt;On 28 April I added an Astro IndexNow integration. It's the kind of package you install in a minute: on every build it collects the pages in &lt;code&gt;dist/&lt;/code&gt; and tells IndexNow about them, so Bing hears about new content straight away.&lt;/p&gt;

&lt;p&gt;It also promised to send only pages that had changed. It did that by hashing each page and comparing the hashes with a cache file it kept in the project root. That file was in my &lt;code&gt;.gitignore&lt;/code&gt;, which is exactly where a generated cache belongs.&lt;/p&gt;

&lt;p&gt;Cloudflare Pages builds every deploy from a fresh clone of the repo. A fresh clone never has the cache file, so on every build the integration found an empty cache, decided every page was new, and submitted all of them.&lt;/p&gt;

&lt;p&gt;Three things made it worse:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;It ran on preview builds too.&lt;/strong&gt; Every branch push built a preview, and every preview submitted the production URLs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I had an AI coding agent opening branches.&lt;/strong&gt; Roughly 50 of the 355 successful builds between 28 April and 6 August were previews of the agent's branches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It submitted everything in &lt;code&gt;dist/&lt;/code&gt;.&lt;/strong&gt; That included noindex pages and pages that later became redirects.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;At 80 to 190 URLs a build, that adds up to the total. The worst days line up with the days I pushed most.&lt;/p&gt;

&lt;p&gt;I removed the integration on 6 August. The submissions didn't stop.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The general lesson:&lt;/strong&gt; any "only send what changed" logic that keeps its state on the build machine doesn't work on ephemeral CI. It fails without an error, because from the tool's point of view everything really is new every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Culprit 2: a Cloudflare setting that turned itself back on
&lt;/h2&gt;

&lt;p&gt;After 6 August the only live submitter was &lt;strong&gt;Cloudflare Crawler Hints&lt;/strong&gt;, a zone setting that lives in the dashboard, not the repo. It had been switched on at 10:44 UTC on 21 April. Bing's export starts the next day.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developers.cloudflare.com/cache/advanced-configuration/crawler-hints/" rel="noopener noreferrer"&gt;Crawler Hints&lt;/a&gt; notifies IndexNow when Cloudflare sees content change. That's sensible for a site whose pages change when their content changes. On a static site that redeploys several times a day, every deploy changes the HTML, so it fired constantly. That was the 20 to 77 a day.&lt;/p&gt;

&lt;p&gt;I turned it off on 18 September.&lt;/p&gt;

&lt;p&gt;On 19 October I opened Bing's IndexNow page again and found Cloudflare submitting &lt;code&gt;/_astro/*.woff&lt;/code&gt; font files and &lt;code&gt;/diagrams/*.svg&lt;/code&gt; images about every 15 minutes. Crawler Hints was on again. Nothing in git had changed. I turned it off a second time and reloaded to confirm it stayed off.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The general lesson:&lt;/strong&gt; dashboard settings are configuration you can't diff, review or roll back. If one matters, write down where it is and check it on a schedule. "I turned that off" is a statement about the past.&lt;/p&gt;

&lt;h2&gt;
  
  
  Culprit 3: a redirect rule nobody could see
&lt;/h2&gt;

&lt;p&gt;While checking the zone I found a Cloudflare &lt;strong&gt;Redirect Rule&lt;/strong&gt; called "enforce trailing slash". It ran before my own middleware and did the same job, which would have been harmless except for two side effects:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It added a 301 in front of every affiliate redirect, so each one took two hops instead of one.&lt;/li&gt;
&lt;li&gt;It could match my API routes. A 301 on a &lt;code&gt;POST&lt;/code&gt; makes most clients retry as a &lt;code&gt;GET&lt;/code&gt; with no body, and a trailing-slash redirect of exactly that kind is how a form on the site had earlier lost every submission without an error.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this was in the repo, so no code review could have caught it. The rule is now switched off, and the setup notes in the repo record that it exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four things that told me something false
&lt;/h2&gt;

&lt;p&gt;Fixing real problems is the easy part. Most of my wasted time went on things that looked like evidence.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. An AI fetcher's cache
&lt;/h3&gt;

&lt;p&gt;On 9 October a summarising fetch tool showed a page with content I had replaced hours earlier, while the same URL with a throwaway query string showed the new version. I concluded Cloudflare was serving stale HTML to crawlers. I blamed a one-year &lt;code&gt;Cloudflare-CDN-Cache-Control&lt;/code&gt; header, removed it, and told myself to purge the cache and resubmit.&lt;/p&gt;

&lt;p&gt;Then I ran my own check, which fetches each page and reads the response headers. Every HTML response said &lt;code&gt;cf-cache-status: DYNAMIC&lt;/code&gt;. Cloudflare wasn't caching any of them, because a Pages Function runs on every request. The stale copy was in the fetch tool's own cache.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A fetcher that invented a status code
&lt;/h3&gt;

&lt;p&gt;In August a fetch tool reported that two subdomain redirects were 302s, which would have been worth fixing. They were 301s. The tool had followed the chain, reported the second hop's destination, and made up a status for the first. One command settles it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sI https://audit.stackarchitect.xyz/ &lt;span class="o"&gt;|&lt;/span&gt; head -3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;curl -sI&lt;/code&gt; shows you the first response exactly as the server sent it. Anything that summarises is a different thing, however confident it sounds.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. My own crawler counts
&lt;/h3&gt;

&lt;p&gt;I log page requests per day with the claimed client in a small database table, without cookies, IP addresses or user agents stored. It showed 302 of 518 "Googlebot" requests ending in 404, which looked like Google hitting broken links.&lt;/p&gt;

&lt;p&gt;Most of them were vulnerability scanners using a Googlebot User-Agent to probe paths like &lt;code&gt;/.env&lt;/code&gt; and &lt;code&gt;/.ssh/id_rsa&lt;/code&gt;. Cloudflare's security events showed every blocked "Googlebot" coming from Google Cloud addresses (35.242.x, 35.246.x), which anyone can rent. The one real Googlebot request that week came from 66.249.x, Google's own network (AS15169).&lt;/p&gt;

&lt;p&gt;A User-Agent is a claim. Google's own guidance on &lt;a href="https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot" rel="noopener noreferrer"&gt;verifying Googlebot&lt;/a&gt; is to check the IP, by reverse and forward DNS lookup or against its published ranges. For how often Google really crawls you, Search Console's Crawl stats report is the source: this site had 1,380 requests in 90 days, 86% answered 200, average response 111 ms. Healthy.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. My own notes
&lt;/h3&gt;

&lt;p&gt;In August my notes said "Bing indexes the site normally", and I had built a theory on it: Bing was fine, so the problem must be specific to Google. Bing's own export said 5 clicks and 129 impressions in 180 days, with 53 consecutive days of zero impressions at the end. The theory had nothing under it.&lt;/p&gt;

&lt;p&gt;Writing a conclusion down makes it feel like a fact. Re-read your notes against the source data before you build on them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the evidence actually says
&lt;/h2&gt;

&lt;p&gt;After all of that, here is where it stands, read directly from both webmaster tools.&lt;/p&gt;

&lt;p&gt;Search Console's URL Inspection for a typical page says &lt;strong&gt;Crawled - currently not indexed&lt;/strong&gt;: fetched successfully as Googlebot smartphone, crawling and indexing allowed, my canonical accepted, no different canonical chosen by Google. Every page I've tested answers 200 to a browser, Googlebot, Bingbot and the main AI crawlers. Bing's live URL test says the page can be indexed, with no SEO issues.&lt;/p&gt;

&lt;p&gt;So Google can fetch every page and is choosing not to index them. That isn't a fault I can fix with a header. It's a judgement about the site: a young domain with few links, whose old URLs returned 404s for three months after a move in April, until I added redirects in July.&lt;/p&gt;

&lt;p&gt;Knowing that changed what I work on. I set fifteen general guides that mostly restated vendor documentation to noindex, so Google judges the site on its original work. I add first-hand material, such as screenshots from my own accounts, instead of more words. One guide has gone back into the sitemap on that basis. Whether that works is a question of weeks, and I'll report back either way.&lt;/p&gt;

&lt;h2&gt;
  
  
  The IndexNow rules I use now
&lt;/h2&gt;

&lt;p&gt;I still use IndexNow, deliberately and by hand. The script that sends it follows five rules, and they apply to any site:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Only canonical URLs from the live sitemap.&lt;/strong&gt; Never redirect sources, noindex pages or anything you wouldn't want indexed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only URLs whose &lt;code&gt;lastmod&lt;/code&gt; changed since the last send.&lt;/strong&gt; Don't hash the HTML; a build changes it every time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the record of what was sent in the repo&lt;/strong&gt;, not on the build machine, and commit it after every run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cap each run.&lt;/strong&gt; Mine stops at 60.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dry run by default.&lt;/strong&gt; Sending takes a flag, and it only happens after a production deploy, never from a build.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is the core of it, small enough to adapt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Send IndexNow only for sitemap URLs whose lastmod changed since the last run.&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;readFileSync&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;writeFileSync&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'node:fs'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;SITE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'https://example.com'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;INDEXNOW_KEY&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;          &lt;span class="c1"&gt;// key file served at /&amp;lt;KEY&amp;gt;.txt&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;LOG&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'data/indexnow-sent.json'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;          &lt;span class="c1"&gt;// committed to the repo&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;CAP&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;submit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'--submit'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;xml&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${SITE}/sitemap-0.xml`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;live&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xml&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;matchAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;\&lt;span class="n"&gt;s&lt;/span&gt;\&lt;span class="no"&gt;S&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;*?&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;\&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;loc&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;lastmod&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;u&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;match&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;lastmod&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;readFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;LOG&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'utf8'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;changed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;live&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lastmod&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;sent&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="n"&gt;lastmod&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;CAP&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`${changed.length} changed of ${live.length}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;submit&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;changed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://api.indexnow.org/indexnow'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'POST'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s1"&gt;'Content-Type'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'application/json; charset=utf-8'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;SITE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;keyLocation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`${SITE}/${KEY}.txt`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;urlList&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;changed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`IndexNow answered ${res.status}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lastmod&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="n"&gt;changed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;sent&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;lastmod&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;writeFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;LOG&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s1"&gt;'\n'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The request format is the one in the &lt;a href="https://www.indexnow.org/documentation" rel="noopener noreferrer"&gt;IndexNow documentation&lt;/a&gt;. The important part is the last two lines: the record of what was sent is written to a file you commit, so the next run, on any machine, knows what it already did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check these before you blame Google
&lt;/h2&gt;

&lt;p&gt;If your pages aren't being indexed, these take minutes and catch everything above:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Bing Webmaster Tools, IndexNow page.&lt;/strong&gt; How many URLs a day, and from which source. If you didn't expect a source, find it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your CDN's dashboard settings.&lt;/strong&gt; In Cloudflare, Crawler Hints (Caching, Configuration) and every Redirect, Transform and Cache rule. Anything there is configuration your repo doesn't show.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Any build step that calls an outside service.&lt;/strong&gt; Does it run on preview builds? Does its "changed" check keep state on the build machine?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;curl -sI&lt;/code&gt; on the URL&lt;/strong&gt;, not a summarising tool, for the status code and headers of the first response.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;cf-cache-status&lt;/code&gt; or your CDN's equivalent&lt;/strong&gt; before you believe anything about stale caches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The IP address behind any "Googlebot" in your logs&lt;/strong&gt;, and Search Console's Crawl stats for the real numbers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;URL Inspection in Search Console.&lt;/strong&gt; If it says the page was fetched, crawling and indexing are allowed and your canonical was accepted, stop looking for a technical fault. What's left is whether Google thinks the page is worth indexing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The last one is the one I wish I'd accepted sooner.&lt;/p&gt;




&lt;p&gt;If you've found a dashboard setting that switched itself back on, or a build step quietly calling an outside service on every preview, I'd like to hear about it in the comments. I'll post an update on whether the indexing changes above work.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://stackarchitect.xyz/blog/indexnow-55000-urls-62-page-site/" rel="noopener noreferrer"&gt;stackarchitect.xyz&lt;/a&gt; by Luke Sandelands.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>seo</category>
      <category>cloudflare</category>
      <category>astro</category>
    </item>
    <item>
      <title>I added Retry to every Make.com scenario I publish. Two of them still couldn't retry anything.</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Sat, 14 Nov 2026 19:19:15 +0000</pubDate>
      <link>https://dev.to/stack_architect/i-added-retry-to-every-makecom-scenario-i-publish-two-of-them-still-couldnt-retry-anything-mfa</link>
      <guid>https://dev.to/stack_architect/i-added-retry-to-every-makecom-scenario-i-publish-two-of-them-still-couldnt-retry-anything-mfa</guid>
      <description>&lt;p&gt;On 11 November I went through the free Make.com scenarios I publish for Shopify stores and replaced every &lt;strong&gt;Ignore&lt;/strong&gt; error handler with &lt;strong&gt;Retry&lt;/strong&gt;, and switched on &lt;strong&gt;Store incomplete executions&lt;/strong&gt;. Failed calls would now be retried three times, fifteen minutes apart, then kept for re-running instead of being thrown away. Job done.&lt;/p&gt;

&lt;p&gt;The next day I opened two of them again and found the fix did nothing for the failures that mattered most.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setting that decides whether an error exists
&lt;/h2&gt;

&lt;p&gt;Make's HTTP module has an advanced setting called &lt;strong&gt;Return error if HTTP request fails&lt;/strong&gt;. Make's own description of it is short: "The module will treat 4xx and 5xx responses as errors."&lt;/p&gt;

&lt;p&gt;Read that the other way round. With the setting on &lt;strong&gt;No&lt;/strong&gt;, a 400 or a 500 is not an error. The module receives the reply, the run carries on, and the scenario history shows a success. An error handler, any error handler, only runs when a module raises an error. So with this setting off, my new Retry handler had nothing to catch.&lt;/p&gt;

&lt;p&gt;That's exactly how an earlier failure stayed hidden. The Meta request in my CAPI Shield blueprint was written against a Graph API version that Meta retired in May 2026. From that day every request came back 400, and every run finished green, for about four months. Three settings hid it together: the HTTP module didn't treat error replies as errors, the step's handler was set to Ignore, and failed runs weren't stored. I had fixed two of the three. On two scenarios, the Meta one and the TikTok one, the first was still off.&lt;/p&gt;

&lt;p&gt;Both are now set to &lt;strong&gt;Yes&lt;/strong&gt;. I found it by opening the module and reading the setting, not because anything told me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this one is easy to miss
&lt;/h2&gt;

&lt;p&gt;You won't see it unless you go looking. It sits under &lt;strong&gt;Show advanced settings&lt;/strong&gt; at the bottom of the HTTP module, a long scroll below the URL, headers and body you actually came to edit.&lt;/p&gt;

&lt;p&gt;The error handler, by contrast, is right there on the canvas: an orange Retry circle hanging off the module. It looks finished. Nothing on the canvas tells you the module it's attached to will never raise an error for it to handle.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five settings to check on every scenario that calls an outside API
&lt;/h2&gt;

&lt;p&gt;I now check these on every scenario before I publish or switch it on:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Every step that sends data out has an error handler, and it's Retry, not Skip.&lt;/strong&gt; Make renamed its handlers: &lt;strong&gt;Skip&lt;/strong&gt; is what older guides call Ignore, and &lt;strong&gt;Retry&lt;/strong&gt; is what they call Break. Skip discards the failed bundle and the run finishes as a success.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every HTTP module has Return error if HTTP request fails set to Yes.&lt;/strong&gt; Without it, a 4xx or 5xx never reaches the handler.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scenario settings → Store incomplete executions is Yes.&lt;/strong&gt; This is where Retry keeps a run that still fails after its attempts, so you can fix the cause and re-run it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A webhook scenario runs Immediately as data arrives.&lt;/strong&gt; One of mine was set to run every 15 minutes, which delayed every order by up to a quarter of an hour.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No module carries a Deprecated label.&lt;/strong&gt; Make labels outdated modules on the canvas. When I opened my Google Ads scenario, its Upload a Click Conversion module said: "This module is deprecated and may not work. We recommend replacing it with an alternative."&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The gap even all five don't close
&lt;/h2&gt;

&lt;p&gt;Some APIs report a rejected event with HTTP 200 and the error inside the reply. TikTok's Events API can answer with a non-zero &lt;code&gt;code&lt;/code&gt; in the body. To Make that's a 200, so it's a success, so it's never retried.&lt;/p&gt;

&lt;p&gt;For those, check the reply, not the status. On a test run, click the HTTP step in the scenario's history and read the reply: for TikTok, &lt;code&gt;"code": 0&lt;/code&gt; means the event was accepted. If you want it enforced on every order, add a filter after the request that stops the run when &lt;code&gt;code&lt;/code&gt; isn't 0, so the failure shows up instead of passing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two-minute test that would have caught all of it
&lt;/h2&gt;

&lt;p&gt;Configuration you've read isn't configuration you've tested. So test a failure on purpose:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Clone the scenario, so the real one keeps running.&lt;/li&gt;
&lt;li&gt;In the clone, change the access token to something wrong.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Run once&lt;/strong&gt; and send it a sample order.&lt;/li&gt;
&lt;li&gt;Open the run in &lt;strong&gt;History&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If that run is a success, your error handling isn't seeing errors, whatever the canvas looks like. With Retry working, Make marks the step as a warning and keeps the bundle for retry. Mine would have shown success on both scenarios until the day I changed the setting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Broken processes are loud. Automated ones aren't.
&lt;/h2&gt;

&lt;p&gt;There's a broader version of this that I gave in a research piece this week, about a Shopify profit report I automated before fixing the cost data underneath it. The automated report was "clean, confident" and wrong, and nobody noticed, because nothing about it looked wrong. My point there was that broken manual processes are loud: somebody complains, and that's how they get fixed. "Automate one without fixing it and the complaints stop while the errors continue."&lt;/p&gt;

&lt;p&gt;An error handler that can never fire is the same thing in miniature. The scenario goes quiet, the history fills with green, and the one signal you had, a failed run, has been switched off without anyone deciding to.&lt;/p&gt;

&lt;p&gt;So the job isn't adding the handler. It's proving the failure still reaches you.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An error handler only runs if the module raises an error.&lt;/li&gt;
&lt;li&gt;In Make's HTTP module, &lt;strong&gt;Return error if HTTP request fails&lt;/strong&gt; decides that. Set it to &lt;strong&gt;Yes&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Use &lt;strong&gt;Retry&lt;/strong&gt;, not Skip, and set &lt;strong&gt;Store incomplete executions&lt;/strong&gt; to &lt;strong&gt;Yes&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;APIs that report errors inside a 200 need a filter on the reply.&lt;/li&gt;
&lt;li&gt;Test a failure on purpose before you trust a green history.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full guide, with screenshots from my own Make account and the patterns for deduplicating orders and a daily count check that catches every kind of failure: &lt;a href="https://stackarchitect.xyz/blog/the-complete-guide-to-reliable-shopify-automations/" rel="noopener noreferrer"&gt;Reliable Shopify automations: make every failure visible&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://stackarchitect.xyz/blog/the-complete-guide-to-reliable-shopify-automations/" rel="noopener noreferrer"&gt;stackarchitect.xyz&lt;/a&gt; by Luke Sandelands.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>nocode</category>
      <category>shopify</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Shopify Stocky's export window can close on 29 November. Save these records before it does</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Thu, 12 Nov 2026 17:16:42 +0000</pubDate>
      <link>https://dev.to/stack_architect/shopify-stockys-export-window-can-close-on-29-november-save-these-records-before-it-does-3kci</link>
      <guid>https://dev.to/stack_architect/shopify-stockys-export-window-can-close-on-29-november-save-these-records-before-it-does-3kci</guid>
      <description>&lt;p&gt;Shopify switched Stocky off on 31 August 2026. Its data didn't disappear that day: Shopify says you keep read-only access to export it for at least 90 days after that date. It has not published an end date.&lt;/p&gt;

&lt;p&gt;Ninety days from 31 August is &lt;strong&gt;29 November 2026&lt;/strong&gt;. That's the earliest the window can close, and it's the only date Shopify has given, so treat it as the deadline. If your store used Stocky, here's what to save, what you can't download and have to copy by hand, and how to check you actually have it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What still works, and what doesn't
&lt;/h2&gt;

&lt;p&gt;Stocky's APIs stopped on 31 August with no grace period, so any tool wired into them stopped too. Nothing moved into Shopify Admin by itself. What's left is read-only access to Stocky's own reports.&lt;/p&gt;

&lt;p&gt;Shopify's migration guide is blunt about what replaces it: "You now need to manage inventory in the Shopify admin and Shopify POS."&lt;/p&gt;

&lt;p&gt;If you uninstalled Stocky after Shopify delisted it on 2 February 2026, you can't reinstall it, and the export steps below won't work for you. Skip to the last two sections.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you can export
&lt;/h2&gt;

&lt;p&gt;Shopify lists three kinds of Stocky record you can export through Stocky's own reports. In your Shopify admin, go to &lt;strong&gt;Apps → Stocky → Reports&lt;/strong&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Completed purchase orders, as CSV.&lt;/strong&gt; Pick the purchase order report and set the date range to your full history. The default range cuts off older orders, and a partial archive looks complete right up until you need the missing year.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stocktake history&lt;/strong&gt;, plus the inventory adjustment log beside it, from the same Reports menu with the same full date range. These are your records of what you counted and what you corrected. Nothing else in your stack holds them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Historical cost data.&lt;/strong&gt; Before you archive it, check five SKUs against recent supplier invoices. A cost file you haven't checked is worse than none, because you'll trust it.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What you can't export: copy it by hand
&lt;/h2&gt;

&lt;p&gt;Shopify states that suppliers can't be exported from Stocky. There's no hidden export and no API route. Reorder points and safety-stock settings don't export either.&lt;/p&gt;

&lt;p&gt;So while Stocky still opens, go through each supplier and copy these into a spreadsheet:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Why you'll want it later&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Supplier name and contact&lt;/td&gt;
&lt;td&gt;Nobody else has the list in one place&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lead time&lt;/td&gt;
&lt;td&gt;Decides when you reorder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Minimum order quantity&lt;/td&gt;
&lt;td&gt;Decides how much you reorder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payment terms&lt;/td&gt;
&lt;td&gt;Easy to forget, awkward to ask for again&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reorder point and safety stock, per priority SKU&lt;/td&gt;
&lt;td&gt;Judgement you built up over time, not data you can look up again&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is the slow part. It's also the only part nothing can recover for you after the window closes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check that you actually have it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Put every file in one dated folder in cloud storage: outside Shopify, and not on a single laptop.&lt;/li&gt;
&lt;li&gt;Open each CSV. The earliest date in the purchase order export should match when you started using Stocky.&lt;/li&gt;
&lt;li&gt;Compare row counts with what you'd expect: roughly how many purchase orders and stocktakes you've done.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An export you haven't opened is an assumption.&lt;/p&gt;

&lt;h2&gt;
  
  
  After the export: what replaces Stocky
&lt;/h2&gt;

&lt;p&gt;Shopify's own answer is Shopify itself. Its migration guide lists transfers between locations, tracking and receiving purchase orders, adjusting quantities and reporting on inventory history as built into the admin, with Shopify Flow for low-stock alerts and Sidekick to draft purchase orders.&lt;/p&gt;

&lt;p&gt;The gap many stores notice is the running record of what sold, in a sheet they can sort and share. If that's what you miss, I publish a free &lt;a href="https://stackarchitect.xyz/stocky-swap/" rel="noopener noreferrer"&gt;Make.com scenario that writes one Google Sheets row per order line item&lt;/a&gt;: timestamp, SKU, quantity, order ID and product. It's an order log, not stock management. It doesn't see restocks, returns or manual adjustments. Since 11 November its Sheets step uses Make's Retry error handler, so a failed write is retried and then kept for you to re-run, instead of being dropped without a word.&lt;/p&gt;

&lt;p&gt;If you're not sure how much of your history lives only in Stocky, the free &lt;a href="https://stackarchitect.xyz/stocky-migration-risk-scorer/" rel="noopener noreferrer"&gt;Stocky migration risk scorer&lt;/a&gt; asks about your purchase orders, suppliers and stocktakes and tells you what to move first.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Deadline:&lt;/strong&gt; treat 29 November 2026 as the last day. Shopify has given a minimum, not a date.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Export:&lt;/strong&gt; purchase orders over your full history, stocktakes and adjustments, cost data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copy by hand:&lt;/strong&gt; suppliers, lead times, minimum order quantities, payment terms, reorder points.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check:&lt;/strong&gt; open every file before you trust it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full guide covers what Shopify Admin now does for free and what the paid replacements are worth: &lt;a href="https://stackarchitect.xyz/stocky-alternative/" rel="noopener noreferrer"&gt;Replacing Shopify Stocky: data, deadline and alternatives&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://stackarchitect.xyz/stocky-alternative/" rel="noopener noreferrer"&gt;stackarchitect.xyz&lt;/a&gt; by Luke Sandelands.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>ecommerce</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>I ran a broken Meta Conversions API event through a validator. It caught seven mistakes Meta might never mention.</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Wed, 11 Nov 2026 10:22:46 +0000</pubDate>
      <link>https://dev.to/stack_architect/i-ran-a-broken-meta-conversions-api-event-through-a-validator-it-caught-seven-mistakes-meta-might-461</link>
      <guid>https://dev.to/stack_architect/i-ran-a-broken-meta-conversions-api-event-through-a-validator-it-caught-seven-mistakes-meta-might-461</guid>
      <description>&lt;p&gt;Meta doesn't always tell you when a Conversions API event is wrong. A missing required field returns an error. An email sent in plain text, or an IP address you hashed by mistake, can be accepted and simply never matched to a customer. The purchase goes missing from your reports and nothing warns you.&lt;/p&gt;

&lt;p&gt;So I wrote a typical server-side Purchase event with the mistakes I see most often, and ran it through the open-source &lt;a href="https://www.npmjs.com/package/shopify-capi-validator" rel="noopener noreferrer"&gt;&lt;code&gt;shopify-capi-validator&lt;/code&gt;&lt;/a&gt; package (v1.1.0). Everything below is the real output.&lt;/p&gt;

&lt;h2&gt;
  
  
  The broken event
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"event_name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Purchase"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"event_time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1762855200000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"action_source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"website"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"user_data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"em"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Jane.Doe@Example.com "&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"ph"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"+44 (0)7700 900123"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"client_ip_address"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"custom_data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;49.99&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It looks plausible. It is wrong in seven ways.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the validator reported
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ npx shopify-capi-validator --payload ./bad.json

  Platform: META   Events: 1
  ✓ event_name present (Purchase)
  ✗ event_time looks like milliseconds
      → Meta expects SECONDS (10 digits), not milliseconds (13). Divide by 1000.
  ✓ action_source present (website)
  ! event_id missing
      → Meta marks it optional but recommends it for deduplicating browser Pixel and server events.
  ✗ event_source_url missing
      → Required by Meta for website events: the URL of the page where the event happened.
  ✓ user_data has at least one customer information parameter
  ✗ user_data.client_user_agent missing
      → Required by Meta for website events. Send the browser user agent, unhashed.
  ✗ user_data.em is RAW email (contains "@")
      → PII must be SHA-256 hashed. Lowercase + trim, THEN hash.
  ✗ user_data.ph is not SHA-256 hashed
  ✗ user_data.client_ip_address appears to be hashed
      → client_ip_address must be sent RAW. Hashing it breaks matching.
  ✓ custom_data.value present (49.99)
  ✗ custom_data.currency missing for Purchase

  Summary  4 passed  1 warnings  7 failed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It exits with code 1, so the same check can stop a bad deploy in CI.&lt;/p&gt;

&lt;h2&gt;
  
  
  The seven mistakes, and why each one matters
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Milliseconds instead of seconds.&lt;/strong&gt; Meta's &lt;code&gt;event_time&lt;/code&gt; is a Unix timestamp in seconds. &lt;code&gt;Date.now()&lt;/code&gt; in JavaScript returns milliseconds, which is the most common cause. Use &lt;code&gt;Math.floor(Date.now() / 1000)&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. No &lt;code&gt;event_source_url&lt;/code&gt; on a website event.&lt;/strong&gt; Meta requires it when &lt;code&gt;action_source&lt;/code&gt; is &lt;code&gt;website&lt;/code&gt;. Server-side setups often drop it because the server never sees the browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. No &lt;code&gt;client_user_agent&lt;/code&gt; on a website event.&lt;/strong&gt; Also required for website events, and also lost when the event is built on a server. Capture both values in the browser and pass them to the server with the order.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. A raw email.&lt;/strong&gt; Email, phone, name, city, state, postcode and country must be SHA-256 hashed. A plain-text email isn't matched, and Meta doesn't always say so.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. An unhashed phone number,&lt;/strong&gt; with a trap inside it. &lt;code&gt;+44 (0)7700 900123&lt;/code&gt; becomes &lt;code&gt;4407700900123&lt;/code&gt; if you only strip symbols. The zero after the country code is a national prefix, not part of the international number, so the correct value before hashing is &lt;code&gt;447700900123&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. A hashed IP address.&lt;/strong&gt; The opposite mistake. &lt;code&gt;client_ip_address&lt;/code&gt;, &lt;code&gt;client_user_agent&lt;/code&gt;, &lt;code&gt;fbc&lt;/code&gt; and &lt;code&gt;fbp&lt;/code&gt; must be sent as they are. A hashed IP can't be matched.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. No currency on a Purchase.&lt;/strong&gt; Meta requires both &lt;code&gt;value&lt;/code&gt; and &lt;code&gt;currency&lt;/code&gt; on purchase events.&lt;/p&gt;

&lt;p&gt;The warning matters too: &lt;code&gt;event_id&lt;/code&gt; is optional, but Meta merges a browser Pixel event and a server event into one purchase only when the event name and &lt;code&gt;event_id&lt;/code&gt; match. Without it, a store running both can count each purchase twice.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fixed event
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"event_name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Purchase"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"event_time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1762851600&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"event_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"order_1001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"action_source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"website"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"event_source_url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://example-store.myshopify.com/checkouts/thank_you"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"user_data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"em"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;sha256 of jane.doe@example.com&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"ph"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;sha256 of 447700900123&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"client_ip_address"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"203.0.113.7"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"client_user_agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X)"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"custom_data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;49.99&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"GBP"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  Summary  12 passed  0 warnings  0 failed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Format first, then hash
&lt;/h2&gt;

&lt;p&gt;The validator can tell whether a field is hashed. It can't tell whether you formatted the value correctly before hashing, because a hash of a badly formatted value still looks like a valid hash. Meta's formatting rules:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Format before hashing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;em&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Trim spaces, lowercase&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ph&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Digits only, with country code, no national-prefix zero&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;fn&lt;/code&gt;, &lt;code&gt;ln&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Lowercase, no punctuation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ct&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowercase, no punctuation or spaces&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;st&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowercase; US states as the 2-letter code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;zp&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowercase, no spaces or dashes; first 5 digits for US zips&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;country&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowercase ISO 3166-1 alpha-2, such as &lt;code&gt;gb&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One more rule worth knowing before you build a retry queue: if any event in a request is more than 7 days old, Meta rejects the whole request and processes none of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it without installing anything
&lt;/h2&gt;

&lt;p&gt;There's a browser version of the same checks, with a hash helper that applies the formatting rules above. It makes no network requests, so nothing you paste leaves your browser: &lt;a href="https://stackarchitect.xyz/meta-capi-payload-validator/" rel="noopener noreferrer"&gt;Meta Conversions API payload validator&lt;/a&gt;. Each rule links to the Meta documentation it comes from, checked on 28 September 2026.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://stackarchitect.xyz/meta-capi-payload-validator/" rel="noopener noreferrer"&gt;stackarchitect.xyz&lt;/a&gt; by Luke Sandelands, author of shopify-capi-validator.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>javascript</category>
      <category>api</category>
      <category>webdev</category>
    </item>
    <item>
      <title>6 Reasons Your Meta Conversions API Events Don't Match (and How to Check Yours)</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Tue, 29 Sep 2026 15:12:07 +0000</pubDate>
      <link>https://dev.to/stack_architect/6-reasons-your-meta-conversions-api-events-dont-match-and-how-to-check-yours-3ldo</link>
      <guid>https://dev.to/stack_architect/6-reasons-your-meta-conversions-api-events-dont-match-and-how-to-check-yours-3ldo</guid>
      <description>&lt;p&gt;Server-side tracking is meant to fix the conversions a browser pixel loses. But a Conversions API event only helps if Meta can match it to a person, and a lot of setups send events that are accepted, counted as received, and then do much less than they should.&lt;/p&gt;

&lt;p&gt;I build server-side tracking for Shopify stores, and the same six mistakes come up again and again. Every rule below comes from Meta's own &lt;a href="https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameters" rel="noopener noreferrer"&gt;Conversions API parameter documentation&lt;/a&gt;, read on 28 September 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. &lt;code&gt;event_time&lt;/code&gt; is in milliseconds
&lt;/h2&gt;

&lt;p&gt;Meta wants a Unix timestamp in &lt;strong&gt;seconds&lt;/strong&gt;. JavaScript's &lt;code&gt;Date.now()&lt;/code&gt; returns &lt;strong&gt;milliseconds&lt;/strong&gt;, so it's the single most common bug:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;event_time&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;                    &lt;span class="c1"&gt;// wrong: 1727600000000&lt;/span&gt;
&lt;span class="nx"&gt;event_time&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;// right: 1727600000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A quick check: a timestamp in seconds has 10 digits. Thirteen digits means milliseconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Customer data is hashed before it's formatted
&lt;/h2&gt;

&lt;p&gt;Meta requires email, phone, name, city, state, zip and country to be SHA-256 hashed. What catches people out is that Meta matches on the hash of the &lt;strong&gt;formatted&lt;/strong&gt; value, and hashing doesn't forgive formatting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Buyer@Example.com &lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="nf"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;buyer@example.com&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both are valid-looking 64-character hashes, so nothing flags the first one as wrong. Format first, then hash. Meta's rules:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Format before hashing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;em&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Trim spaces, lowercase&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ph&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Digits only, no leading zeros, country code included&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;fn&lt;/code&gt;, &lt;code&gt;ln&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Lowercase, no punctuation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ct&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowercase, no punctuation, special characters or spaces&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;st&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowercase; US states as the 2-letter code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;zp&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowercase, no spaces or dashes; first 5 digits for US zips&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;country&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowercase ISO 3166-1 alpha-2, such as &lt;code&gt;gb&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;The UK phone trap.&lt;/strong&gt; &lt;code&gt;+44 (0)7700 900123&lt;/code&gt; becomes &lt;code&gt;4407700900123&lt;/code&gt; if you only strip symbols and leading zeros. The zero after the country code is a national prefix that isn't dialled internationally, so the number should be &lt;code&gt;447700900123&lt;/code&gt;. If your store sells in the UK, remove it before hashing.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Fields that must stay raw get hashed too
&lt;/h2&gt;

&lt;p&gt;It's tempting to hash everything "to be safe". Meta says &lt;strong&gt;not&lt;/strong&gt; to hash four fields:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;client_ip_address&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;client_user_agent&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;fbc&lt;/code&gt; (the click ID cookie)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;fbp&lt;/code&gt; (the browser ID cookie)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Meta uses these as they are. A hashed IP address is just a meaningless string.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Website events are missing the page URL or user agent
&lt;/h2&gt;

&lt;p&gt;For events with &lt;code&gt;action_source: "website"&lt;/code&gt;, Meta requires both &lt;code&gt;event_source_url&lt;/code&gt; and &lt;code&gt;user_data.client_user_agent&lt;/code&gt;. Server-side setups often drop them, because the server never sees the browser. The fix is to capture both in the browser at checkout and pass them to your server with the order.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;action_source&lt;/code&gt; itself is required on every event, as is &lt;code&gt;user_data&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. &lt;code&gt;event_id&lt;/code&gt; is missing, or doesn't match the Pixel
&lt;/h2&gt;

&lt;p&gt;Meta marks &lt;code&gt;event_id&lt;/code&gt; as optional, but recommends it for deduplication. If the browser Pixel and your server both send the same purchase, give them the same ID so Meta can treat them as one event:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Server&lt;/span&gt;
&lt;span class="nx"&gt;event_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`order_&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;orderId&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;

&lt;span class="c1"&gt;// Browser Pixel, same purchase&lt;/span&gt;
&lt;span class="nf"&gt;fbq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;track&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Purchase&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;currency&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;eventID&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`order_&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;orderId&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without a shared ID, you're relying on Meta to work out that two events are the same purchase.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Old events are retried in a batch
&lt;/h2&gt;

&lt;p&gt;If any event in a request is more than 7 days old, Meta returns an error for the &lt;strong&gt;whole request&lt;/strong&gt; and processes none of its events. A retry queue that keeps resending one stale event can take good events down with it. Drop anything older than 7 days before it reaches the batch.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Purchase event that gets all six right
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;createHash&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;node:crypto&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sha256&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;createHash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;sha256&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hex&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;email&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;phone&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="se"&gt;[^&lt;/span&gt;&lt;span class="sr"&gt;0-9&lt;/span&gt;&lt;span class="se"&gt;]&lt;/span&gt;&lt;span class="sr"&gt;/g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/^0+/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// must already include the country code&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;event&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;event_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Purchase&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;event_time&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;       &lt;span class="c1"&gt;// 1. seconds&lt;/span&gt;
  &lt;span class="na"&gt;event_id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`order_&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;order&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                    &lt;span class="c1"&gt;// 5. same ID as the Pixel&lt;/span&gt;
  &lt;span class="na"&gt;action_source&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;website&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;event_source_url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;pageUrl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                        &lt;span class="c1"&gt;// 4. captured in the browser&lt;/span&gt;
  &lt;span class="na"&gt;user_data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;em&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;email&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;order&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;email&lt;/span&gt;&lt;span class="p"&gt;))],&lt;/span&gt;               &lt;span class="c1"&gt;// 2. formatted, then hashed&lt;/span&gt;
    &lt;span class="na"&gt;ph&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;phone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;order&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;phone&lt;/span&gt;&lt;span class="p"&gt;))],&lt;/span&gt;
    &lt;span class="na"&gt;client_ip_address&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;clientIp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                    &lt;span class="c1"&gt;// 3. raw&lt;/span&gt;
    &lt;span class="na"&gt;client_user_agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;userAgent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                   &lt;span class="c1"&gt;// 3. raw, and 4. required&lt;/span&gt;
    &lt;span class="nx"&gt;fbp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                                            &lt;span class="c1"&gt;// 3. raw&lt;/span&gt;
    &lt;span class="nx"&gt;fbc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                                            &lt;span class="c1"&gt;// 3. raw&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;custom_data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;order&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;total&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;                     &lt;span class="c1"&gt;// required for Purchase&lt;/span&gt;
    &lt;span class="na"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;order&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                       &lt;span class="c1"&gt;// required for Purchase&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Check a payload in 10 seconds
&lt;/h2&gt;

&lt;p&gt;I turned these checks into two free tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;In the browser:&lt;/strong&gt; paste an event into the &lt;a href="https://stackarchitect.xyz/meta-capi-payload-validator/" rel="noopener noreferrer"&gt;Meta Conversions API payload validator&lt;/a&gt;. It runs locally, so nothing you paste is sent anywhere, and it has a formatter that applies Meta's rules and hashes the result.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In the terminal or CI:&lt;/strong&gt; the open-source &lt;a href="https://github.com/lsb11/shopify-capi-validator" rel="noopener noreferrer"&gt;shopify-capi-validator&lt;/a&gt; package runs the same checks and exits with code 1 on any failure, so it can block a bad deploy.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx shopify-capi-validator &lt;span class="nt"&gt;--payload&lt;/span&gt; ./event.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you're sending Shopify orders server-side for the first time, the &lt;a href="https://stackarchitect.xyz/blog/shopify-server-side-tracking-complete-setup-guide/" rel="noopener noreferrer"&gt;server-side tracking setup guide&lt;/a&gt; covers the whole flow, and the &lt;a href="https://stackarchitect.xyz/meta-emq-score-estimator/" rel="noopener noreferrer"&gt;EMQ score estimator&lt;/a&gt; shows what the customer data you send means for match quality.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>webdev</category>
      <category>shopify</category>
    </item>
    <item>
      <title>Set Up GA4 on Shopify Free, and Read It Correctly</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Sat, 26 Sep 2026 10:02:43 +0000</pubDate>
      <link>https://dev.to/stack_architect/shopify-to-ga4-without-gtm-native-events-plus-a-server-side-measurement-protocol-fallback-2g25</link>
      <guid>https://dev.to/stack_architect/shopify-to-ga4-without-gtm-native-events-plus-a-server-side-measurement-protocol-fallback-2g25</guid>
      <description>&lt;p&gt;Google Analytics 4 connects to Shopify free through the Google &amp;amp; YouTube app: install it, choose the Google Analytics 4 setup on its Overview page, and connect your GA4 property. Shopify then sends standard ecommerce events, including purchases. Never add a GA4 tag to your theme too, and treat Shopify's order count, not GA4's, as the true number of sales.&lt;/p&gt;

&lt;h2&gt;
  
  
  Questions this guide answers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How do I connect Google Analytics 4 to Shopify?
&lt;/h3&gt;

&lt;p&gt;Create a GA4 property with a web data stream, then install Shopify's Google &amp;amp; YouTube app. On the app's Overview page, find the section for setting up Google Analytics 4 only, click Get started, choose your property under your Google account, click Connect and then Confirm. Google documents these steps in its help article Shopify: Set up your Google tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need Google Tag Manager to use GA4 on Shopify?
&lt;/h3&gt;

&lt;p&gt;No. The Google &amp;amp; YouTube app sends Shopify's standard ecommerce events to GA4 without Google Tag Manager. If you add GA4 through Tag Manager, a theme snippet or a custom pixel as well, the same visit and purchase can be recorded twice, so use one method only.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why does GA4 show fewer purchases than Shopify?
&lt;/h3&gt;

&lt;p&gt;Shopify records every order on its own servers. GA4 only records a purchase if the tag in the shopper's browser runs, and ad blockers, declined cookie consent and browser privacy limits all stop it. A gap is expected. Use Shopify's order count as the true figure and use GA4 for what it is good at: where visitors come from and where they leave.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I send Shopify purchases to GA4 through the Measurement Protocol?
&lt;/h3&gt;

&lt;p&gt;Usually not. Google's Measurement Protocol documentation says the client_id should match the ID generated by the Google Analytics tag on your site, which a Shopify order webhook does not contain. Sending purchases with another ID, such as the customer number, creates purchases with no traffic source and risks counting orders twice alongside the browser tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is GA4 free for Shopify stores?
&lt;/h3&gt;

&lt;p&gt;Yes. The standard version of Google Analytics 4 is free, and so is Shopify's Google &amp;amp; YouTube app. The paid version, Google Analytics 360, is aimed at very large sites and is not needed by a typical Shopify store.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The full guide, with every step, source and date:&lt;/strong&gt; &lt;a href="https://stackarchitect.xyz/blog/shopify-google-analytics-4-setup-free-2026/" rel="noopener noreferrer"&gt;Set Up GA4 on Shopify Free, and Read It Correctly&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://stackarchitect.xyz/" rel="noopener noreferrer"&gt;Stack Architect&lt;/a&gt; by Luke Sandelands. Figures there carry the date they were last checked; this copy does not, so prefer the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>analytics</category>
      <category>webdev</category>
      <category>automation</category>
    </item>
    <item>
      <title>I replaced $700/month of SaaS with Google Apps Script. Here's what broke first.</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Mon, 14 Sep 2026 16:06:55 +0000</pubDate>
      <link>https://dev.to/stack_architect/i-replaced-700month-of-saas-with-google-apps-script-heres-what-broke-first-4pa6</link>
      <guid>https://dev.to/stack_architect/i-replaced-700month-of-saas-with-google-apps-script-heres-what-broke-first-4pa6</guid>
      <description>&lt;p&gt;A while back I looked at a stack of SaaS subscriptions that were, between them, doing something fairly unglamorous: moving rows of data from one system into another and doing arithmetic on them. The combined bill was around $700 a month.&lt;/p&gt;

&lt;p&gt;So I rewrote the lot in Google Apps Script and a webhook layer. It worked immediately, which was the problem — it worked at ten events a day and quietly stopped working at four hundred, in ways that produced no error email and no obvious symptom.&lt;/p&gt;

&lt;p&gt;Here are the four things that broke, in the order they broke, and what actually fixed them.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Per-call service quotas, not row counts
&lt;/h2&gt;

&lt;p&gt;The first version looked like every Apps Script tutorial:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;logEvents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;events&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sheet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;SpreadsheetApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getActiveSheet&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="nx"&gt;events&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;sheet&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendRow&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;source&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is fine for ten rows and fatal for a thousand. &lt;code&gt;appendRow&lt;/code&gt; is a service call, and Apps Script quotas count service calls, not rows. Four hundred appends is four hundred round trips to the Sheets backend, each with its own latency, and you hit &lt;code&gt;Service invoked too many times for one day&lt;/code&gt; long before you hit anything resembling a real data volume.&lt;/p&gt;

&lt;p&gt;One call instead of four hundred:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;logEvents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;events&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;events&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sheet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;SpreadsheetApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getActiveSheet&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;events&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;timestamp&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;source&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
  &lt;span class="nx"&gt;sheet&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getRange&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sheet&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getLastRow&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setValues&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same output, one service call. This single change took a script that died daily to one that hasn't hit a quota in months.&lt;/p&gt;

&lt;p&gt;The general rule: in Apps Script, anything that touches &lt;code&gt;SpreadsheetApp&lt;/code&gt;, &lt;code&gt;DriveApp&lt;/code&gt;, &lt;code&gt;GmailApp&lt;/code&gt; or &lt;code&gt;UrlFetchApp&lt;/code&gt; inside a loop is a bug waiting for volume. Build the array in memory, write once.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Duplicate writes, because webhooks retry
&lt;/h2&gt;

&lt;p&gt;Every webhook provider retries on non-2xx, and some retry on timeout even when your handler succeeded. If your endpoint takes 30 seconds because of point 1 above, you will get the same event twice, and you will write it twice.&lt;/p&gt;

&lt;p&gt;You need idempotency, and you need it at the write layer rather than the transport layer — you cannot control how many times you get called, only what you do about it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;handleEvent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;cache&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;CacheService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getScriptCache&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;evt_&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;cache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;        &lt;span class="c1"&gt;// already processed&lt;/span&gt;
  &lt;span class="nx"&gt;cache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;put&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;1&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;21600&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;        &lt;span class="c1"&gt;// 6h TTL, the cache maximum&lt;/span&gt;

  &lt;span class="nf"&gt;writeEvent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;CacheService&lt;/code&gt; is the right tool here rather than &lt;code&gt;PropertiesService&lt;/code&gt;, because it expires on its own and you are not trying to keep a permanent ledger — you are trying to survive a retry storm that lasts seconds. For anything needing a longer window, reconcile against the sheet itself on a nightly trigger and dedupe on the ID column.&lt;/p&gt;

&lt;p&gt;One caveat worth knowing: &lt;code&gt;CacheService&lt;/code&gt; is best-effort and can evict early under pressure. It is a retry guard, not a correctness guarantee. If duplicates are genuinely unacceptable, you need the nightly reconciliation as well.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Concurrent executions racing for the same row
&lt;/h2&gt;

&lt;p&gt;Two webhooks arriving 200ms apart both call &lt;code&gt;getLastRow()&lt;/code&gt;, both get 4,102, and both write to row 4,103. One of them wins. The other event is gone, with no error anywhere.&lt;/p&gt;

&lt;p&gt;This is the failure mode that cost me the most time, because it produces silent, occasional data loss that you only notice weeks later when a total doesn't reconcile.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;writeEvent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;lock&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;LockService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getScriptLock&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;lock&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;waitLock&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;30000&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;            &lt;span class="c1"&gt;// throws if it can't acquire&lt;/span&gt;
    &lt;span class="nf"&gt;appendRows&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Lock timeout, requeueing: &lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nf"&gt;queueForRetry&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;            &lt;span class="c1"&gt;// don't silently drop it&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;finally&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;lock&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;releaseLock&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;getScriptLock()&lt;/code&gt; rather than &lt;code&gt;getUserLock()&lt;/code&gt; — the lock needs to span every execution of the script, not every execution by a given user. And note the &lt;code&gt;finally&lt;/code&gt;: an early return inside the try block without releasing the lock will stall every subsequent execution for the full 30 seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The six-minute wall
&lt;/h2&gt;

&lt;p&gt;Apps Script kills any execution at six minutes. If you are backfilling, migrating, or processing a queue that grew overnight, you will hit this, and the execution dies mid-write with no transaction to roll back.&lt;/p&gt;

&lt;p&gt;The pattern is checkpointing: process until you are near the limit, save your position, schedule a continuation, exit cleanly.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;MAX_RUNTIME_MS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;4.5&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// leave 90s of headroom&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;processQueue&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;props&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;PropertiesService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getScriptProperties&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;cursor&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;props&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getProperty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;cursor&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;items&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;getQueue&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

  &lt;span class="k"&gt;while &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;cursor&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;items&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;start&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;MAX_RUNTIME_MS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nx"&gt;props&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setProperty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;cursor&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;cursor&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
      &lt;span class="nf"&gt;scheduleContinuation&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nf"&gt;processItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;items&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;cursor&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
    &lt;span class="nx"&gt;cursor&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="nx"&gt;props&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;deleteProperty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;cursor&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;            &lt;span class="c1"&gt;// finished cleanly&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;scheduleContinuation&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;ScriptApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;newTrigger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;processQueue&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;timeBased&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;after&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's more to this than one code block holds once you're processing a backlog rather than a steady queue — batch sizing, resumability after a failed continuation, and reconciling a partial run. I wrote those up separately in &lt;a href="https://stackarchitect.xyz/shopify-google-sheets-automation/" rel="noopener noreferrer"&gt;scalable Google Sheets automation for high-volume workflows&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Two things that bite people here. The headroom matters — if your per-item work takes eight seconds, a 30-second buffer isn't enough and you'll die mid-item. And time-based triggers are themselves a quota'd resource, capped at 20 per script, so delete the trigger once it has fired or you will accumulate orphans until trigger creation starts failing.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;deleteTriggersFor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;handlerName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;ScriptApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getProjectTriggers&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;t&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getHandlerFunction&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nx"&gt;handlerName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;ScriptApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;deleteTrigger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;t&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The backoff you need for external calls
&lt;/h2&gt;

&lt;p&gt;Worth adding for anything calling an external API, since transient 429s and 503s will otherwise surface as permanent failures:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;fetchWithBackoff&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;maxAttempts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;attempt&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;maxAttempts&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;attempt&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;UrlFetchApp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="p"&gt;...&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;muteHttpExceptions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;code&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getResponseCode&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;code&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;code&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;code&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="mi"&gt;429&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// real client error, don't retry&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;backoff&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;attempt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;jitter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;random&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;Utilities&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;backoff&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;jitter&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Max retries exceeded: &lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The jitter is not decoration. Without it, every one of your parallel executions retries at exactly the same moment and you rebuild the thundering herd you were trying to avoid.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell myself at the start
&lt;/h2&gt;

&lt;p&gt;The SaaS tools I replaced were not charging $700 a month for the arithmetic. They were charging for the four things above — retry handling, deduplication, concurrency safety, and job continuation — which is genuinely the hard part and which is invisible until you are running at volume.&lt;/p&gt;

&lt;p&gt;That doesn't make the replacement a bad trade. It cost me maybe 40 hours of debugging spread over a few months, against roughly $8,400 a year, and I now own the thing outright and can read every line of it. But it's a real trade, not a free lunch, and anyone who tells you a Sheets-and-webhooks stack "just replaces" a SaaS subscription has not yet run it at four hundred events a day.&lt;/p&gt;

&lt;p&gt;If you're doing something similar: write these four patterns in before you have the volume that proves you needed them. The failures are silent, and by the time you notice, the missing data is already weeks old.&lt;/p&gt;




&lt;p&gt;What's the most annoying quota wall you've hit in Apps Script? I'm fairly sure I haven't found all of them yet.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>automation</category>
      <category>webdev</category>
      <category>googlecloud</category>
    </item>
    <item>
      <title>How to Recover Lost Shopify Conversions with CAPI Shield (Server-Side Tracking)</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Wed, 12 Aug 2026 18:43:49 +0000</pubDate>
      <link>https://dev.to/stack_architect/how-to-recover-lost-shopify-conversions-with-capi-shield-server-side-tracking-1e3g</link>
      <guid>https://dev.to/stack_architect/how-to-recover-lost-shopify-conversions-with-capi-shield-server-side-tracking-1e3g</guid>
      <description>&lt;p&gt;CAPI Shield is a free Make.com scenario that takes each paid Shopify order from a webhook and sends it to Meta's Conversions API as a Purchase event, so iOS, Safari and ad blockers cannot stop it. This page is the setup. If your Meta results dropped and you do not yet know why, start with &lt;a href="https://stackarchitect.xyz/blog/shopify-meta-roas-dropped-2026-fix/" rel="noopener noreferrer"&gt;the ROAS guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Questions this guide answers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is the Shopify CAPI?
&lt;/h3&gt;

&lt;p&gt;The Shopify CAPI refers to server-side Conversions API implementation for Shopify: sending purchase events from Shopify's servers directly to Meta CAPI, Google Enhanced Conversions, or TikTok Events API. It bypasses iOS privacy restrictions and ad blockers that block browser pixel tracking, covering purchase events that would otherwise be missed.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Shopify server-side tracking?
&lt;/h3&gt;

&lt;p&gt;Server-side tracking sends Shopify conversion events directly from your server to ad platforms, bypassing the browser entirely. iOS restrictions, ad blockers, and cookie expiry cannot interfere. CAPI Shield implements this free via Make.com webhooks: the webhook fires from Shopify's backend the moment an order is paid, completely independent of browser behaviour.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to set up Shopify server-side tracking free?
&lt;/h3&gt;

&lt;p&gt;Use CAPI Shield: a free Make.com scenario that routes Shopify order webhooks to Meta Conversions API. Sign up for Make.com free, create a scenario with a Webhooks trigger, add the Meta Conversions API request, create a Shopify Order Payment webhook pointing to your Make.com URL, and test with a sample order. Takes 6 minutes, no code required, free forever on Make.com's free tier.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Google Enhanced Conversions and how does it work with Shopify?
&lt;/h3&gt;

&lt;p&gt;Google Enhanced Conversions is Google's server-side conversion tracking system. It supplements your standard Google Ads conversion tags by sending hashed first-party customer data (email, phone, name) alongside each conversion event. Google uses this to match conversions to Google accounts with greater accuracy, improving Smart Bidding and Performance Max optimisation even when cookies and pixels are blocked by iOS or ad blockers. CAPI Shield's Google branch is not a working route to it as shipped: it uploads a click conversion keyed on a Google click ID, and Shopify's order data has no field for one. Google is also moving this upload method, offline click conversion import, out of the Google Ads API and into its Data Manager API, and Make's Google Ads module now warns that uploads may fail for developer tokens that have not recently sent click conversions. Its two consent fields must be set to match your own consent setup.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Meta CAPI and how does it work with Shopify?
&lt;/h3&gt;

&lt;p&gt;Meta Conversions API (CAPI) is a server-to-server connection that sends Shopify purchase events directly to Meta without going through the browser. CAPI Shield sets this up free using Make.com, sending hashed email, phone, name, IP and user-agent with every event: the match-key set Meta scores Event Match Quality against, and a larger one than the browser pixel carries.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much conversion data am I losing without server-side tracking?
&lt;/h3&gt;

&lt;p&gt;We do not publish a number, because the honest answer is specific to your store: the loss is driven by how much of your traffic is mobile and iOS, and how many of those visitors decline tracking. Measure yours instead. The Shopify vs Meta Attribution Gap Calculator turns your Ads Manager conversion count and your Shopify order count into your own gap; the Meta EMQ Score Estimator scores the match quality of what you are currently sending; and the Shopify iOS Attribution Gap Benchmark publishes the sourced figures behind the mechanism. After CAPI Shield deployment most stores see an immediate increase in reported conversions in Meta Events Manager within 24–48 hours.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does CAPI Shield replace my Meta Pixel?
&lt;/h3&gt;

&lt;p&gt;No. CAPI Shield works alongside your existing Meta Pixel, not instead of it. The pixel still captures upper-funnel events like ViewContent and AddToCart. CAPI Shield adds server-side Purchase events on top. Both fire simultaneously and Meta deduplicates them automatically using the event_id included in every server event.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the difference between CAPI Shield and Elevar or Northbeam?
&lt;/h3&gt;

&lt;p&gt;Elevar's Core plan is $225/month, and Northbeam lists its Starter plan at $1,500 with every plan quoted through a sales call. CAPI Shield uses Make.com to achieve the same server-side event forwarding for free. The core technical outcome, server-side purchase events reaching Meta CAPI, is identical. Elevar and Northbeam add analytics dashboards on top. If you only need conversion recovery, CAPI Shield is the free equivalent.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will CAPI Shield improve my ROAS?
&lt;/h3&gt;

&lt;p&gt;Indirectly, yes. CAPI Shield gives Meta complete purchase data. Advantage+ Shopping uses conversion signals to optimise delivery. Most stores see measurable ROAS improvement within 14–21 days as the algorithm relearns with full data.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Event Match Quality and why does it matter?
&lt;/h3&gt;

&lt;p&gt;Event Match Quality (EMQ) is Meta's 0–10 score for how well server-side events are matched to Meta user accounts. CAPI Shield sends hashed email, phone, name, IP and user-agent with every event. More match keys give Meta more to match on, which is what the score measures. We have not sampled EMQ across stores, so we do not publish a typical score: the EMQ estimator projects a range from your own parameter set.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is CAPI Shield GDPR compliant?
&lt;/h3&gt;

&lt;p&gt;The data flows through your own Make.com workspace. CAPI Shield hashes all personally identifiable information (email, phone, name) before transmission using SHA-256, as required by Meta's Conversions API specification. Ensure your store's privacy policy covers server-side tracking data sharing.&lt;/p&gt;

&lt;h3&gt;
  
  
  How long does CAPI Shield setup take?
&lt;/h3&gt;

&lt;p&gt;Most stores are fully live within 6 minutes. The Make.com scenario takes 3–4 minutes to configure. The Shopify webhook takes under 2 minutes. Testing takes 1–2 minutes. No developer, no code, no infrastructure required.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why is Shopify's built-in CAPI not enough?
&lt;/h3&gt;

&lt;p&gt;It may be enough. Shopify's Facebook &amp;amp; Instagram app sends Conversions API events at its Enhanced and Maximum data sharing levels, and for a store that only advertises on Meta that is the simplest free route. Shopify does not document exactly what triggers each server event. CAPI Shield is triggered by Shopify's order webhook, which does not depend on the browser at all, and the same trigger can feed TikTok. Use one route for Meta, not both, unless you have confirmed in Events Manager that their event IDs match.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does this work with TikTok Ads as well?
&lt;/h3&gt;

&lt;p&gt;Yes. The same Make.com scenario can route events to Meta CAPI and TikTok Events API from one webhook. Most stores start with Meta, then add TikTok as a second branch if they advertise there: using the same webhook trigger, no additional Shopify setup required.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which Graph API version does CAPI Shield use?
&lt;/h3&gt;

&lt;p&gt;The Meta request names a Graph API version in its URL. Meta retires each version about two years after release, and requests to a retired version fail. Check the version in your scenario's URL against Meta's Graph API changelog and update it before it expires, then send one test order to confirm events still arrive.&lt;/p&gt;

&lt;h3&gt;
  
  
  What happens if I want to remove CAPI Shield?
&lt;/h3&gt;

&lt;p&gt;Delete the Make.com scenario and the Shopify webhook. Nothing is installed on your Shopify store. Data stops flowing immediately. No residue, no lock-in, no cancellation fees.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The full guide, with every step, source and date:&lt;/strong&gt; &lt;a href="https://stackarchitect.xyz/capi-shield/" rel="noopener noreferrer"&gt;Meta CAPI for Shopify — CAPI Shield, Free Server-Side Setup&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://stackarchitect.xyz/" rel="noopener noreferrer"&gt;Stack Architect&lt;/a&gt; by Luke Sandelands. Figures there carry the date they were last checked; this copy does not, so prefer the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>webdev</category>
      <category>ecommerce</category>
      <category>automation</category>
    </item>
    <item>
      <title>Tidio for Shopify: Complete AI Live Chat Setup Guide (2026)</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Sat, 08 Aug 2026 14:02:30 +0000</pubDate>
      <link>https://dev.to/stack_architect/tidio-for-shopify-complete-ai-live-chat-setup-guide-2026-1il8</link>
      <guid>https://dev.to/stack_architect/tidio-for-shopify-complete-ai-live-chat-setup-guide-2026-1il8</guid>
      <description>&lt;p&gt;Tidio installs on Shopify from the App Store and adds live chat to your store. Its Lyro AI agent answers from a knowledge base you write, so it is only as good as those answers. The free plan includes 50 conversations a month and 50 Lyro conversations in total, making it a trial rather than a permanent free helpdesk.&lt;/p&gt;

&lt;h2&gt;
  
  
  Questions this guide answers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is Tidio free for Shopify?
&lt;/h3&gt;

&lt;p&gt;Tidio has a free plan. On 15 October 2026 its pricing page listed it at 50 billable conversations a month, with the first 50 Lyro AI conversations free for the lifetime of the account rather than each month. That is enough to test whether chat and AI answers help your store; a store with steady chat volume will need a paid plan.&lt;/p&gt;

&lt;h3&gt;
  
  
  How does Tidio's Lyro AI answer questions?
&lt;/h3&gt;

&lt;p&gt;Lyro answers from the content you give it: question and answer pairs, pages from your site and similar sources. When it cannot answer, it hands the conversation to a person or collects contact details. Most of the work in setting Lyro up is writing clear, specific answers to the questions your customers actually ask.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can Tidio see and act on Shopify orders?
&lt;/h3&gt;

&lt;p&gt;Yes. Tidio's Shopify App Store listing says agents can see a customer's orders and live cart and send products, discounts and order updates from the Tidio inbox, and that Lyro can act within rules you set on order status, refunds, cancellations and order edits. Check which actions your plan includes before relying on them.&lt;/p&gt;

&lt;h3&gt;
  
  
  What resolution rate should I expect from Lyro?
&lt;/h3&gt;

&lt;p&gt;Tidio publishes its own figure on tidio.com, but your rate depends on how complete your knowledge base is and what your customers ask. Measure it in Tidio's own reporting after a few weeks of real conversations, and improve it by adding answers for the questions Lyro handed to a person.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I use Tidio or Gorgias?
&lt;/h3&gt;

&lt;p&gt;Tidio is chat-first and suits stores whose questions are mostly repetitive and arrive through chat. Gorgias is a ticket helpdesk priced by monthly ticket volume, built for teams answering email, chat and social messages in one queue. Count last month's messages by channel and type before choosing; the Tidio vs Gorgias comparison on this site walks through that test.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The full guide, with every step, source and date:&lt;/strong&gt; &lt;a href="https://stackarchitect.xyz/blog/tidio-for-shopify-complete-setup-guide/" rel="noopener noreferrer"&gt;Tidio for Shopify: Setup, Lyro AI and Free Plan Limits&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://stackarchitect.xyz/" rel="noopener noreferrer"&gt;Stack Architect&lt;/a&gt; by Luke Sandelands. Figures there carry the date they were last checked; this copy does not, so prefer the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>webdev</category>
      <category>ai</category>
      <category>automation</category>
    </item>
    <item>
      <title>Shopify Google Ads Conversion Tracking: The Free Enhanced Conversions Fix</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Thu, 06 Aug 2026 11:01:03 +0000</pubDate>
      <link>https://dev.to/stack_architect/fixing-shopify-google-ads-conversion-tracking-server-side-setup-without-gtm-1ld1</link>
      <guid>https://dev.to/stack_architect/fixing-shopify-google-ads-conversion-tracking-server-side-setup-without-gtm-1ld1</guid>
      <description>&lt;p&gt;The free fix for most Shopify stores is to turn on enhanced conversions in Shopify's Google &amp;amp; YouTube app: Settings, Google Ads settings, Enhanced conversions, Turn on. Google then receives hashed customer data with each purchase its tag records. A Make.com server-side upload is an extra route with limits: Shopify orders carry no Google click ID.&lt;/p&gt;

&lt;h2&gt;
  
  
  Questions this guide answers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why is my Shopify Google Ads conversion tracking wrong in 2026?
&lt;/h3&gt;

&lt;p&gt;Three causes account for most gaps: Apple's Link Tracking Protection (iOS 17 and later) strips the gclid from links opened in Mail, Messages and Private Browsing; Safari's Intelligent Tracking Prevention shortens the life of the cookie that stores the click; and ad blockers stop the Google tag loading. Turning on enhanced conversions in Shopify's Google &amp;amp; YouTube app adds hashed customer data so Google can match more of the conversions its tag does record.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Google Enhanced Conversions for Shopify?
&lt;/h3&gt;

&lt;p&gt;Google Enhanced Conversions is Google's server-side conversion tracking supplement. It sends hashed first-party customer data (email, phone, name) alongside each conversion event via API. Google uses this to match conversions to signed-in Google accounts with greater accuracy, improving Smart Bidding and Performance Max optimisation even when cookies and gclid are blocked. For Shopify stores, it carries purchase events that the browser-based gTag misses when iOS and Safari strip the click ID or clear the cookie. We have not measured what share of events that is, and are not aware of a published figure for Google Ads specifically, so this page does not quote one.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I set up Google Ads conversion tracking on Shopify for free?
&lt;/h3&gt;

&lt;p&gt;Install Shopify's Google &amp;amp; YouTube app and connect your Google Ads account; Google suggests purchase, add to cart and checkout started conversion actions by default. Then, in the app's Settings tab under Google Ads settings, find Enhanced conversions, select Turn on and accept the customer data terms. Remove any older Google Ads tags from your theme or custom pixels so conversions are not counted twice.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is GCLID and why does it matter for Shopify Google Ads?
&lt;/h3&gt;

&lt;p&gt;GCLID (Google Click ID) is the unique identifier Google appends to your ad URLs when someone clicks an ad: for example, ?gclid=CjwKCAjw8. Shopify's thank-you page uses this ID to attribute the purchase back to the specific Google Ads click. When iOS Link Tracking Protection or Safari ITP strips or clears the gclid, the conversion is unattributed. Google's Enhanced Conversions adds hashed customer data to help Google match purchases. A server-side upload built on Shopify's Order payment webhook has no gclid to send, because Shopify's order data has no field for one, so whether Google matches it depends on how your conversion action is set up.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need Google Tag Manager for Shopify Google Ads conversion tracking?
&lt;/h3&gt;

&lt;p&gt;No. Shopify's Google &amp;amp; YouTube app places the Google tag, records purchase conversions and can send enhanced conversions without Google Tag Manager. Tag Manager is useful only if you need custom events beyond what the app tracks; if you use it, make sure it does not fire a second purchase conversion alongside the app.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the difference between standard conversion tracking and Enhanced Conversions?
&lt;/h3&gt;

&lt;p&gt;Standard Google Ads conversion tracking fires a browser-based gTag when the order confirmation page loads. It fails when iOS or Safari blocks the gclid, when ad blockers prevent the gTag from loading, or when the browser session expires before the customer reaches the thank-you page. Google Enhanced Conversions supplements this by sending hashed customer data server-to-server, independently of browser state. Running both simultaneously gives Google the most accurate conversion picture.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I fix Google Ads showing fewer conversions than Shopify?
&lt;/h3&gt;

&lt;p&gt;If Google Ads reports significantly fewer conversions than Shopify shows orders for the same period, you are losing attribution due to iOS restrictions or ad blockers. A server-side upload via Make.com runs independently of the browser, but it only helps if Google can match what it sends: Shopify's order data has no Google click ID, so the upload carries hashed customer email alone, and whether Google accepts that depends on how your conversion action is set up.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will server-side Google Ads tracking improve my Smart Bidding performance?
&lt;/h3&gt;

&lt;p&gt;It can, but nobody can promise a figure for your store. Smart Bidding learns from the conversions Google receives, so matching more real purchases gives it more to learn from. We have not measured the effect across stores. Compare Google Ads conversions with Shopify orders over the same weeks before and after a change, and judge bidding on results over a month or more.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does this work alongside my existing Google Ads conversion tag?
&lt;/h3&gt;

&lt;p&gt;Enhanced conversions in the Google &amp;amp; YouTube app works with the app's own tag, so there is nothing extra to deduplicate. A separate server-side upload is different: unless it is set up so Google treats it as the same conversion as the tag, the same purchase can be counted twice. If you add one, compare conversion counts with Shopify orders for a week to check.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much does it cost to fix Google Ads conversion tracking on Shopify?
&lt;/h3&gt;

&lt;p&gt;Turning on enhanced conversions in Shopify's Google &amp;amp; YouTube app costs nothing. A Make.com upload is also free within Make.com's free plan of 1,000 credits a month, and the number of orders that covers depends on the credits each order uses in your scenario. Paid tools such as Stape ($17/month billed yearly), Littledata ($159+/month) and Analyzify ($145-$275/month) charge a subscription for managed setups.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is this GDPR compliant?
&lt;/h3&gt;

&lt;p&gt;All customer PII (email, phone, name) is hashed with SHA-256 inside Make.com before transmission to Google, as required by Google's Enhanced Conversions specification. The hashed data flows through your own Make.com workspace. Ensure your privacy policy discloses that hashed customer data is shared with Google for conversion matching purposes.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The full guide, with every step, source and date:&lt;/strong&gt; &lt;a href="https://stackarchitect.xyz/shopify-google-ads-conversion-tracking/" rel="noopener noreferrer"&gt;Fix Shopify Google Ads Tracking — Free Setup 2026&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://stackarchitect.xyz/" rel="noopener noreferrer"&gt;Stack Architect&lt;/a&gt; by Luke Sandelands. Figures there carry the date they were last checked; this copy does not, so prefer the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>google</category>
      <category>shopify</category>
      <category>webhooks</category>
      <category>api</category>
    </item>
    <item>
      <title>How to Fix ‘Service Invoked Too Many Times’ in Google Apps Script 2026</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Tue, 28 Jul 2026 16:12:53 +0000</pubDate>
      <link>https://dev.to/stack_architect/how-to-fix-service-invoked-too-many-times-in-google-apps-script-2e0o</link>
      <guid>https://dev.to/stack_architect/how-to-fix-service-invoked-too-many-times-in-google-apps-script-2e0o</guid>
      <description>&lt;p&gt;Google Apps Script stops any single execution after six minutes, on consumer and Workspace accounts alike. Daily quotas depend on the account: triggers may run for 90 minutes a day on a consumer account and six hours on Workspace. No setting or support request raises them, which is why heavy Autocrat and Sheets automations eventually fail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Questions this guide answers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is the Google Apps Script execution time limit in 2026?
&lt;/h3&gt;

&lt;p&gt;Both consumer (free) and Google Workspace accounts are capped at 6 minutes per execution in 2026: the 30-minute Workspace limit cited by older guides no longer applies. Scripts that exceed the limit are hard-stopped mid-run: no graceful shutdown, no warning, just termination.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the daily runtime limit for Google Apps Script in 2026?
&lt;/h3&gt;

&lt;p&gt;Google's official quota for triggers total runtime is 90 minutes per day on consumer accounts and 6 hours per day on Workspace accounts. This applies to trigger-driven executions; manual runs are not counted. The quota resets 24 hours after the first request.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the Google Apps Script UrlFetch daily limit?
&lt;/h3&gt;

&lt;p&gt;Consumer accounts can make 20,000 UrlFetch calls per day. Google Workspace accounts get 100,000 per day. If your automation calls external APIs on every order, this limit can be exhausted faster than expected on high-volume days.&lt;/p&gt;

&lt;h3&gt;
  
  
  Have Google Apps Script quotas changed for 2026?
&lt;/h3&gt;

&lt;p&gt;The core limits, 6-minute execution (both consumer and Workspace) and 90-minute daily trigger runtime on consumer accounts, have remained consistent into 2026. Google does not announce quota changes prominently. If you are seeing new failures, it is more likely that your volume has grown into the limits rather than that Google has tightened them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can Google Apps Script quotas be increased?
&lt;/h3&gt;

&lt;p&gt;Not by request or configuration. Google publishes one set of figures for consumer accounts and a higher set for Google Workspace accounts, so moving to Workspace raises the daily quotas, such as trigger runtime and URL Fetch calls. The six-minute limit per execution is the same on both. To work beyond it, move the work outside Apps Script, into Make.com or a dedicated API layer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why does my script work in the morning but fail in the afternoon?
&lt;/h3&gt;

&lt;p&gt;This is the clearest sign of a daily quota problem. Trigger-driven automations are exhausting the 90-minute daily trigger runtime (consumer) in the first half of the day, leaving nothing for afternoon processing. The quota resets 24 hours after the first request, which is why timing shifts day to day.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why does the same script work one day and fail the next?
&lt;/h3&gt;

&lt;p&gt;Variable load. A day with higher order volume or more form submissions hits limits that a quieter day never reached. The script did not change: the pressure on its quota allowance did.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Apps Script still useful for automation in 2026?
&lt;/h3&gt;

&lt;p&gt;Yes: as a lightweight trigger and orchestration layer for simple spreadsheet actions and low-volume workflows. It becomes a liability when it is the execution engine for mission-critical, high-volume processing. For those cases, Make.com is the right tool.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The full guide, with every step, source and date:&lt;/strong&gt; &lt;a href="https://stackarchitect.xyz/blog/google-apps-script-quotas-explained-how-to-avoid-limits-and-scale-your-automations/" rel="noopener noreferrer"&gt;Google Apps Script Quotas 2026 — Every Limit Explained&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://stackarchitect.xyz/" rel="noopener noreferrer"&gt;Stack Architect&lt;/a&gt; by Luke Sandelands. Figures there carry the date they were last checked; this copy does not, so prefer the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>googleappsscript</category>
      <category>javascript</category>
      <category>automation</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Shopify Agentic Storefronts 2026 — Sell on ChatGPT &amp; Google AI Mode (Setup Guide)</title>
      <dc:creator>Luke Sandelands</dc:creator>
      <pubDate>Mon, 27 Jul 2026 09:57:05 +0000</pubDate>
      <link>https://dev.to/stack_architect/shopify-agentic-storefronts-2026-sell-on-chatgpt-google-ai-mode-setup-guide-h29</link>
      <guid>https://dev.to/stack_architect/shopify-agentic-storefronts-2026-sell-on-chatgpt-google-ai-mode-setup-guide-h29</guid>
      <description>&lt;p&gt;Shopify Agentic Storefronts connect your catalog to ChatGPT, Google AI Mode, Microsoft Copilot and Meta from one admin setting. Since 24 March 2026 the channels split: Google, Copilot and Meta complete checkout inside the AI surface, while ChatGPT redirects shoppers to your own Shopify checkout, which is why most limits apply to only some channels.&lt;/p&gt;

&lt;h2&gt;
  
  
  Questions this guide answers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What are Shopify Agentic Storefronts?
&lt;/h3&gt;

&lt;p&gt;Shopify Agentic Storefronts connect your product catalog to AI assistants (ChatGPT, Google AI Mode and Gemini, Microsoft Copilot, and Meta surfaces such as Muse) through one setting in your Shopify admin, with no separate integration per platform. What each channel then does with a shopper differs: Google, Copilot and Meta complete the purchase inside their own interface, while ChatGPT sends the shopper to your own Shopify checkout. Announced in Shopify's Winter '26 Edition on 10 December 2025 and generally available to eligible merchants from 24 March 2026.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does ChatGPT still let customers buy without leaving the chat?
&lt;/h3&gt;

&lt;p&gt;No. OpenAI retired Instant Checkout on 24 March 2026, and Shopify’s documentation now describes ChatGPT as a discovery-focused referrer: shoppers complete the purchase on your own Shopify checkout, opened in the ChatGPT in-app browser or a new tab. This matters more than it sounds. Because the transaction happens on your checkout, the product-type restrictions, fulfilment restrictions and pixel restrictions that apply to direct checkout do not apply to ChatGPT traffic at all: your normal checkout rules and your client-side pixels work as they always have. Guides published before 24 March 2026 describe the opposite arrangement.&lt;/p&gt;

&lt;h3&gt;
  
  
  Am I eligible for Shopify Agentic Storefronts?
&lt;/h3&gt;

&lt;p&gt;Eligibility is per channel, not one blanket rule, and it stacks two separate conditions: where your store is based, and where you sell. ChatGPT and Microsoft Copilot accept a store based in any country provided it sells to customers in the United States; Meta accepts one that sells to customers in the United States, Canada or Mexico. Google AI Mode and Gemini require the store itself to be based in the United States and to sell to customers there, and direct checkout renders only for US-based customers, with everyone else redirected to the store. So a UK-based store cannot use Google, but can use ChatGPT and Copilot if it sells to US customers, and Meta if it sells to customers in the US, Canada or Mexico. Google is still rolling out, and its product discovery runs on Google Merchant Center, which Shopify feeds through the Google &amp;amp; YouTube sales channel. Agentic storefronts are active by default for eligible stores; the setting lives under Sales channels, then Agentic.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much does the Shopify Knowledge Base app cost?
&lt;/h3&gt;

&lt;p&gt;It is free. The Shopify Knowledge Base app is published by Shopify, launched on 16 May 2025, and its App Store listing shows no paid tier and no Plus-only pricing. Guides quoting a monthly fee for standard plans appear to be describing third-party knowledge-base apps instead. The app is not visible on your storefront: your FAQs serve as a data source that AI platforms read when answering questions about your products.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which products cannot be sold through Agentic Storefronts?
&lt;/h3&gt;

&lt;p&gt;Subscriptions, product bundles, customizable products and B2B-only products are not supported in agentic storefront direct checkouts. Local delivery, pickup in store and pickup points are not available as delivery methods, and custom checkout fields, checkout upsells, checkout validations, a subset of accelerated checkout options and requiring customer sign-in do not work either. Every one of those restrictions applies to the direct-checkout channels only: Google, Copilot and Meta. ChatGPT sends shoppers to your own checkout, where none of them apply.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do discount codes work in agentic checkout?
&lt;/h3&gt;

&lt;p&gt;Yes. Shopify’s documentation states that automatic discounts and discount codes you set up are both supported in agentic storefront direct checkouts. Several widely-shared guides claim the opposite; that claim does not match Shopify’s current documentation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will Google Analytics and my Meta pixel track agentic orders?
&lt;/h3&gt;

&lt;p&gt;Not in direct checkout. Shopify states that Google Analytics and custom pixels will not fire there: only server-to-server pixels for the started and completed events. So an order placed inside Google AI Mode, Copilot or Meta reaches your Shopify admin but arrives in GA4 and Meta Ads Manager with no client-side event behind it. If you buy ads and measure return on ad spend from browser pixels, those orders look like they came from nowhere. Server-side tracking is the fix, and it is worth having in place before you enable the channels rather than after. ChatGPT is unaffected: that checkout is yours, so your pixels fire normally.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Shopify charge a fee for selling through AI channels?
&lt;/h3&gt;

&lt;p&gt;No. Shopify’s documentation states there are no fees associated with selling in ChatGPT, in Google AI Mode and Gemini’s direct checkout, or in agentic storefront direct checkouts generally. You pay your standard payment processing fees and nothing further. Shopify also offers a separate free Agentic plan aimed at merchants who do not use Shopify as their primary storefront; it excludes the Online Store, gift cards, manual orders and Shop post-purchase offers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Perplexity a Shopify agentic channel?
&lt;/h3&gt;

&lt;p&gt;No, despite appearing in Shopify’s December 2025 launch announcement. In-chat buying on Perplexity runs on PayPal Instant Buy, those orders are managed through PayPal rather than your Shopify admin, and merchants apply to the Perplexity Merchant Program separately. Perplexity is no longer listed as an Agentic Storefronts channel in Shopify’s help documentation. Guides presenting it as a Shopify channel with redirect checkout are describing an arrangement that does not exist.&lt;/p&gt;

&lt;h3&gt;
  
  
  My store is not eligible yet. Is any of this worth doing now?
&lt;/h3&gt;

&lt;p&gt;Yes, because discovery already happens without it. AI assistants crawl the web and read Shopify Catalog regardless of your agentic settings: what the feature adds is the checkout, not the visibility. Four things pay off immediately: install and populate the free Knowledge Base app, complete your product data so AI assistants can match products to conversational queries, add FAQPage structured data to your content, and get server-side tracking working so you have no attribution gap on the day the channels switch on.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;The full guide, with every step, source and date:&lt;/strong&gt; &lt;a href="https://stackarchitect.xyz/blog/shopify-agentic-storefronts-setup-guide-2026/" rel="noopener noreferrer"&gt;Shopify Agentic Storefronts — Eligibility &amp;amp; Limits 2026&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://stackarchitect.xyz/" rel="noopener noreferrer"&gt;Stack Architect&lt;/a&gt; by Luke Sandelands. Figures there carry the date they were last checked; this copy does not, so prefer the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>shopify</category>
      <category>ecommerce</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
