<?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: Muhammad Hassaan Anjum</title>
    <description>The latest articles on DEV Community by Muhammad Hassaan Anjum (@hassaanistic).</description>
    <link>https://dev.to/hassaanistic</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%2F1129672%2F4d0e71dd-7ddf-4503-acd7-243ad7e75ef4.jpg</url>
      <title>DEV Community: Muhammad Hassaan Anjum</title>
      <link>https://dev.to/hassaanistic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hassaanistic"/>
    <language>en</language>
    <item>
      <title>How to Add the Scrolling Logos Bar in Shopify</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 06:05:41 +0000</pubDate>
      <link>https://dev.to/hassaanistic/how-to-add-the-scrolling-logos-bar-in-shopify-51oi</link>
      <guid>https://dev.to/hassaanistic/how-to-add-the-scrolling-logos-bar-in-shopify-51oi</guid>
      <description>&lt;h2&gt;Steps to Add Scrolling Logos Section&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;Theme&lt;/strong&gt; → &lt;strong&gt;Edit code&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Add a &lt;strong&gt;section&lt;/strong&gt; file&lt;/li&gt;
&lt;li&gt;Name the section file: &lt;strong&gt;scrolling-logo.liquid&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Paste the code into the section file&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Customizer&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Search &lt;strong&gt;"scrolling logos"&lt;/strong&gt; to add the section in the customizer&lt;/li&gt;
&lt;/ol&gt;





&lt;h2&gt;Let's Work Together&lt;/h2&gt;

&lt;p&gt;To do work with me, contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;sections/scrolling-logo.liquid&lt;/strong&gt;&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight liquid"&gt;&lt;code&gt;&lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;style&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="cp"&gt;%}&lt;/span&gt;
    .scrolling-logo-bundle-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; {
      padding-top: &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;padding_top&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;px;
      padding-bottom: &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;padding_bottom&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;px;
      overflow: hidden;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; {
      --space: &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;spacing&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;px;
      --duration: &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;speed&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;s;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-upper-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;,
    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-lower-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      --gap: var(--space);
      display: flex;
      user-select: none;
      margin-bottom: &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;row_spacing&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;px;
      padding: 10px 0px;
      position: relative;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-upper-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;::before,
    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-lower-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;::before {
      background-color: &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;highlight_color&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;;
      width: 110%;
      height: 100%;
      inset-inline-start: -5%;
      inset-block-start: 0%;
      content: "";
      position: absolute;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-upper-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      transform: rotate(calc(357deg));
      position: relative;
      z-index: 100;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-lower-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      transform: rotate(calc(3deg));
      filter: grayscale(1);
      opacity: .25;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-upper-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;,
    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-lower-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      flex-shrink: 0;
      display: flex;
      justify-content: space-around;
      align-items: center;
      gap: var(--gap);
      min-width: 100%;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-upper-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-upper-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      animation: scroll-rtl-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; var(--duration) linear infinite;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-lower-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-lower-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      animation: scroll-ltr-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; var(--duration) linear infinite;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-upper-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;:hover .marquee-upper-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      animation-play-state: paused;
    }
    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-lower-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;:hover .marquee-lower-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      animation-play-state: paused;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;.reverse .marquee-upper-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-upper-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      animation: scroll-ltr-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; var(--duration) linear infinite;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;.reverse .marquee-lower-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-lower-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      animation: scroll-rtl-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; var(--duration) linear infinite;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;.speed-up .marquee-upper-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-upper-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;,
    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;.speed-up .marquee-lower-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-lower-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
      animation-duration: 3s !important;
    }

    @media (prefers-reduced-motion: reduce) {
      .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-upper-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;,
      .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .marquee-lower-content-&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt; {
        animation-play-state: paused;
      }
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .m-item {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex: 0 0 auto;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .m-item img {
      width: auto;
      height: &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;logo_size&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;px;
      object-fit: contain;
      border-radius: &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;image_radius&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;px;
    }

    .marquee-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; .m-item svg {
      width: auto;
      height: &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;logo_size&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;px;
      object-fit: contain;
      border-radius: &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;image_radius&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;px;
    }


    @keyframes scroll-rtl-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; {
      0% {
      transform: translate3d(calc(-200%), 0, 0);
      visibility: visible;
      }
      100% {
        transform: translate3d(calc(-100%), 0, 0);
      }
    }

    @keyframes scroll-ltr-&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; {
      0% {
      transform: translate3d(calc(-100%), 0, 0);
      visibility: visible;
      }
      100% {
        transform: translate3d(calc(-200%), 0, 0);
      }
    }
  &lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;endstyle&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="cp"&gt;%}&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;section&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"scrolling-logo-bundle-{{ section.id }}"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"marquee-{{ section.id }}"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="c"&gt;&amp;lt;!-- First Row (Left to Right) --&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"marquee-upper-{{ section.id }}"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;in&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="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt;
            &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"marquee-upper-content-{{section.id}}"&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;%&lt;/span&gt; &lt;span class="na"&gt;if&lt;/span&gt; &lt;span class="na"&gt;i&lt;/span&gt; &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; 1 %}
              aria-hidden="true"
            &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endif&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
          &amp;gt;
            &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;blocks&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
              &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;type&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;'logo'&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt;
                  &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"m-item"&lt;/span&gt;
                  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;%&lt;/span&gt; &lt;span class="na"&gt;if&lt;/span&gt; &lt;span class="na"&gt;i&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="na"&gt;1&lt;/span&gt; &lt;span class="na"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                    &lt;span class="k"&gt;{{&lt;/span&gt;&lt;span class="na"&gt;- block.shopify_attributes -&lt;/span&gt;&lt;span class="k"&gt;}}&lt;/span&gt;
                  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;%&lt;/span&gt; &lt;span class="na"&gt;endif&lt;/span&gt; &lt;span class="na"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;logoImg&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;blank&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt;
                      &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{{ block.settings.logoImg | img_url: '150x150' }}"&lt;/span&gt;
                      &lt;span class="na"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"brand"&lt;/span&gt;
                      &lt;span class="na"&gt;loading&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"lazy"&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
                    &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="s1"&gt;'product-1'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;placeholder_svg_tag&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;
                  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endif&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
              &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endif&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
            &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endfor&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endfor&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

      &lt;span class="c"&gt;&amp;lt;!-- Second Row (Right to Left) --&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"marquee-lower-{{ section.id }}"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;in&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="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt;
            &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"marquee-lower-content-{{section.id}}"&lt;/span&gt;
            &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;%&lt;/span&gt; &lt;span class="na"&gt;if&lt;/span&gt; &lt;span class="na"&gt;i&lt;/span&gt; &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; 1 %}
              aria-hidden="true"
            &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endif&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
          &amp;gt;
            &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;blocks&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt; 
              &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;type&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s1"&gt;'logo'&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt;
                  &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"m-item"&lt;/span&gt;
                  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;%&lt;/span&gt; &lt;span class="na"&gt;if&lt;/span&gt; &lt;span class="na"&gt;i&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="na"&gt;1&lt;/span&gt; &lt;span class="na"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                    &lt;span class="k"&gt;{{&lt;/span&gt;&lt;span class="na"&gt;- block.shopify_attributes -&lt;/span&gt;&lt;span class="k"&gt;}}&lt;/span&gt;
                  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;%&lt;/span&gt; &lt;span class="na"&gt;endif&lt;/span&gt; &lt;span class="na"&gt;%&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;logoImg&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;blank&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt;
                      &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{{ block.settings.logoImg | img_url: '150x150' }}"&lt;/span&gt;
                      &lt;span class="na"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"brand"&lt;/span&gt;
                      &lt;span class="na"&gt;loading&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"lazy"&lt;/span&gt;
                    &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
                  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
                    &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="s1"&gt;'product-1'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;placeholder_svg_tag&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;
                  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endif&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
                &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
              &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endif&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
            &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endfor&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endfor&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/section&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;marqueeRoot&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'.marquee-{{ section.id }}'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;lastScrollTop&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pageYOffset&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;scrollTop&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'scroll'&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="o"&gt;=&amp;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;currentScrollTop&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pageYOffset&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;scrollTop&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;direction&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;currentScrollTop&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;lastScrollTop&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s1"&gt;'down'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'up'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;lastScrollTop&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;currentScrollTop&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;direction&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'down'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;marqueeRoot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'reverse'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;marqueeRoot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'speed-up'&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;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;marqueeRoot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'reverse'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'speed-up'&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;clearTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;scrollBoostTimeout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;scrollBoostTimeout&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;setTimeout&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="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;marqueeRoot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'speed-up'&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;marqueeRoot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;contains&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'reverse'&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;marqueeRoot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;classList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'reverse'&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="mi"&gt;100&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="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;schema&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
  {
    "name": "Scrolling Logo",
    "tag": "section",
    "class": "section",
    "settings": [
      {
        "type": "range",
        "id": "logo_size",
        "label": "Logo Size",
        "min": 20,
        "max": 200,
        "step": 2,
        "default": 80,
        "unit": "px"
      },
      {
        "type": "range",
        "id": "spacing",
        "label": "Spacing Between Items",
        "min": 10,
        "max": 100,
        "step": 5,
        "default": 20,
        "unit": "px"
      },
      {
        "type": "range",
        "id": "row_spacing",
        "label": "Spacing Between Rows",
        "min": 0,
        "max": 100,
        "step": 5,
        "default": 0,
        "unit": "px"
      },
      {
        "type": "color",
        "id": "highlight_color",
        "label": "Highlight Color",
        "default": "#fde68a"
      },
      {
        "type": "range",
        "id": "speed",
        "label": "Animation Speed",
        "min": 10,
        "max": 300,
        "step": 10,
        "default": 20,
        "unit": "s"
      },
      {
        "type": "range",
        "id": "image_radius",
        "label": "Image Border Radius",
        "min": 0,
        "max": 50,
        "step": 1,
        "default": 8,
        "unit": "px"
      },
      {
        "type": "range",
        "id": "padding_top",
        "label": "Padding Top",
        "min": 0,
        "max": 300,
        "step": 4,
        "default": 60,
        "unit": "px"
      },
      {
        "type": "range",
        "id": "padding_bottom",
        "label": "Padding Bottom",
        "min": 0,
        "max": 300,
        "step": 4,
        "default": 60,
        "unit": "px"
      }
    ],
    "blocks": [
      {
        "type": "logo",
        "name": "Logo Item",
        "settings": [
          {
            "type": "image_picker",
            "id": "logoImg",
            "label": "Logo Image"
          }
        ]
      }
    ],
    "presets": [
      {
        "name": "Scrolling Logo",
        "blocks": [
          {
            "type": "logo"
          },
          {
            "type": "logo"
          },
          {
            "type": "logo"
          },
          {
            "type": "logo"
          },
           {
            "type": "logo"
          },
           {
            "type": "logo"
          }
        ]
      }
    ]
  }
  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endschema&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/scrolling-logos-showcase" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;a href="http://www.hassaanistic.com/blogs/scrolling-logos-showcase" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/scrolling-logos-showcase&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;


</description>
      <category>shopify</category>
      <category>liquid</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>SEO in the Next.js App Router: Metadata, sitemap.ts, robots.ts and JSON-LD</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 06:05:20 +0000</pubDate>
      <link>https://dev.to/hassaanistic/seo-in-the-nextjs-app-router-metadata-sitemapts-robotsts-and-json-ld-5g91</link>
      <guid>https://dev.to/hassaanistic/seo-in-the-nextjs-app-router-metadata-sitemapts-robotsts-and-json-ld-5g91</guid>
      <description>&lt;p&gt;The App Router has good SEO tools built in, but they are spread over several files and it is easy to get one of them slightly wrong. This is the setup I use on the &lt;a href="https://www.eventsiq.io" rel="noopener noreferrer"&gt;EventsIQ&lt;/a&gt; public site, which has a few hundred pages: features, integrations, docs, a glossary and a blog.&lt;/p&gt;

&lt;p&gt;There are four pieces:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Metadata&lt;/strong&gt; for each page: title, description, canonical URL and share card.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;sitemap.ts&lt;/code&gt;&lt;/strong&gt; : every page you want found.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;robots.ts&lt;/code&gt;&lt;/strong&gt; : what crawlers may fetch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JSON-LD&lt;/strong&gt; : structured data that tells Google what a page is.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  1. One helper for every page's metadata
&lt;/h2&gt;

&lt;p&gt;Each page exports &lt;code&gt;metadata&lt;/code&gt; or &lt;code&gt;generateMetadata&lt;/code&gt;. Rather than repeat the same fields everywhere, I use one helper:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Metadata&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"next"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;pageMetadata&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="s2"&gt;"website"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="s2"&gt;"article"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;publishedTime&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&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="nc"&gt;Metadata&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;image&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`/api/og?${new URLSearchParams({ title: input.title })}`&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="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;alternates&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;canonical&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;openGraph&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s2"&gt;"website"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;description&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;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;images&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;image&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;630&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&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="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"article"&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;publishedTime&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;publishedTime&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="n"&gt;twitter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;card&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"summary_large_image"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;images&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;image&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few things this gets right without anyone having to remember:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every page has a canonical URL.&lt;/strong&gt; Relative paths work because the root layout sets &lt;code&gt;metadataBase&lt;/code&gt; to the site address.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every page has a share card.&lt;/strong&gt; &lt;code&gt;/api/og&lt;/code&gt; draws a 1200 by 630 image from the page's title with &lt;code&gt;ImageResponse&lt;/code&gt;, so no one has to design a card per page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long titles stay readable.&lt;/strong&gt; The root layout uses a title template like &lt;code&gt;%s | EventsIQ&lt;/code&gt;. If the title plus the suffix gets too long for search results, the helper returns &lt;code&gt;{ absolute: title }&lt;/code&gt; and drops the suffix.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then a page is one line:&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="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;metadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pageMetadata&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Click tracking"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Record every paid click on your own domain and send each sale back to the ad network."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/click-tracking"&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;h2&gt;
  
  
  2. A sitemap built from your content
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;app/sitemap.ts&lt;/code&gt; returns a list, and Next.js serves it as &lt;code&gt;/sitemap.xml&lt;/code&gt;. The important part is to build it &lt;strong&gt;from the same data the pages use&lt;/strong&gt; , so a new blog post or integration page is in the sitemap the moment it exists.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;MetadataRoute&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"next"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;sitemap&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="nc"&gt;MetadataRoute&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Sitemap&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;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;priority&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lastModified&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;SITE_CONTENT_UPDATED&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="nf"&gt;absoluteUrl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;lastModified&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;priority&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;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="nf"&gt;page&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="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;page&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/pricing"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.9&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="no"&gt;FEATURES&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;f&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;page&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`/features/${f.slug}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.8&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="no"&gt;DOCS&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="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;comingSoon&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="n"&gt;d&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;page&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`/docs/${d.slug}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.7&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="no"&gt;BLOG_POSTS&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;p&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;page&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`/blog/${p.slug}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;date&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two habits that keep it honest:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Real dates.&lt;/strong&gt; A blog post uses its own date. Everything else uses one constant, the day the site's copy last changed. Do not use &lt;code&gt;new Date()&lt;/code&gt;: if every page claims it changed today, Google learns to ignore the dates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Leave out pages that are not ready.&lt;/strong&gt; Docs marked "coming soon" and drafts stay out of the sitemap.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;EventsIQ also serves &lt;code&gt;/sitemap.txt&lt;/code&gt;, a plain list of the same addresses for tools that want one. It is a route handler that calls the same &lt;code&gt;sitemap()&lt;/code&gt; function, so the two lists can never disagree.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. robots.ts that knows about your app
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;app/robots.ts&lt;/code&gt; becomes &lt;code&gt;/robots.txt&lt;/code&gt;. For a SaaS, the main job is keeping the signed-in app out of search.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;MetadataRoute&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"next"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;robots&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="nc"&gt;MetadataRoute&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Robots&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="n"&gt;rules&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;userAgent&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="n"&gt;allow&lt;/span&gt;&lt;span class="p"&gt;:&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="s2"&gt;"/api/og"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;disallow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"/api/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/checkout"&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="no"&gt;SIGNED_IN_PREFIXES&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;sitemap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;absoluteUrl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/sitemap.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="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;Lessons from getting this wrong first:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Take the signed-in paths from the same list your auth uses.&lt;/strong&gt; Then a new app page is kept out of search without a second edit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Allow &lt;code&gt;/api/og&lt;/code&gt; even though &lt;code&gt;/api/&lt;/code&gt; is blocked.&lt;/strong&gt; X and other sites read robots.txt before fetching a share image. Block it and your cards disappear.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not block pages you want removed. Use &lt;code&gt;noindex&lt;/code&gt; instead.&lt;/strong&gt; A blocked page can still appear in search as a bare address, because Google cannot fetch the page to see its &lt;code&gt;noindex&lt;/code&gt;. Sign-in and register pages are allowed in robots and carry &lt;code&gt;robots: { index: false }&lt;/code&gt; in their metadata.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One app on two hosts?&lt;/strong&gt; If the site is &lt;code&gt;www.&lt;/code&gt; and the dashboard is &lt;code&gt;app.&lt;/code&gt;, &lt;code&gt;robots.ts&lt;/code&gt; can read the &lt;code&gt;host&lt;/code&gt; header and return &lt;code&gt;disallow: "/"&lt;/code&gt; on the app host.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. JSON-LD, safely
&lt;/h2&gt;

&lt;p&gt;Structured data is a &lt;code&gt;&amp;lt;script type="application/ld+json"&amp;gt;&lt;/code&gt; tag. A tiny component is enough:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;JsonLd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&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="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;unknown&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="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;return&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;script&lt;/span&gt;
      &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"application/ld+json"&lt;/span&gt;
      &lt;span class="n"&gt;dangerouslySetInnerHTML&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="n"&gt;__html&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;data&lt;/span&gt;&lt;span class="p"&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="o"&gt;/&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"\\u003c"&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="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="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;.replace(/&amp;lt;/g, "\\u003c")&lt;/code&gt; matters. If any string in the data contains &lt;code&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;, for example a title someone typed, it would close the tag early and open the page to script injection. Escaping &lt;code&gt;&amp;lt;&lt;/code&gt; makes that impossible, and the JSON still means the same thing.&lt;/p&gt;

&lt;p&gt;Then add small builders for the types you need. On EventsIQ that is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Organization&lt;/strong&gt; and &lt;strong&gt;WebSite&lt;/strong&gt; on every page, from the root layout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SoftwareApplication&lt;/strong&gt; on the home page and feature pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BlogPosting&lt;/strong&gt; and &lt;strong&gt;TechArticle&lt;/strong&gt; for blog posts and docs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BreadcrumbList&lt;/strong&gt; on nested pages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FAQPage&lt;/strong&gt; where a page has real questions and answers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VideoObject&lt;/strong&gt; for the guide videos.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Only describe what is really on the page. Structured data that does not match the visible content can be ignored, or worse.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick check before you ship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Open &lt;code&gt;/sitemap.xml&lt;/code&gt; and &lt;code&gt;/robots.txt&lt;/code&gt; on a preview deploy and read them.&lt;/li&gt;
&lt;li&gt;Paste a page into Google's Rich Results Test to check the JSON-LD.&lt;/li&gt;
&lt;li&gt;Share a link in a private chat to see the card.&lt;/li&gt;
&lt;li&gt;View the page source and check the &lt;code&gt;&amp;lt;link rel="canonical"&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One metadata helper, so every page gets a canonical URL and a share card.&lt;/li&gt;
&lt;li&gt;Build the sitemap from your content, with real dates.&lt;/li&gt;
&lt;li&gt;Keep the app out of search with robots, but use &lt;code&gt;noindex&lt;/code&gt; for pages you want removed.&lt;/li&gt;
&lt;li&gt;Escape &lt;code&gt;&amp;lt;&lt;/code&gt; in JSON-LD, and only describe what is on the page.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Let's Work Together
&lt;/h2&gt;

&lt;p&gt;If you want your Next.js site set up for search, contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/nextjs-app-router-seo" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/nextjs-app-router-seo&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>seo</category>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How eSIM Vendors and Dealers Work: The Supply Chain Behind Travel eSIMs</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 06:05:11 +0000</pubDate>
      <link>https://dev.to/hassaanistic/how-esim-vendors-and-dealers-work-the-supply-chain-behind-travel-esims-590p</link>
      <guid>https://dev.to/hassaanistic/how-esim-vendors-and-dealers-work-the-supply-chain-behind-travel-esims-590p</guid>
      <description>&lt;p&gt;I recently finished building &lt;a href="https://tidalsim.com" rel="noopener noreferrer"&gt;Tidal&lt;/a&gt;, a travel eSIM store on Shopify that sells data plans for 217 destinations. Before writing any code, I had to understand how the eSIM business is organised: who owns the network, who makes the eSIM, who sets the price, and who the customer actually buys from.&lt;/p&gt;

&lt;p&gt;This post explains that supply chain in plain terms. It is useful if you are thinking of starting an eSIM brand, or if a client has asked you to build one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four layers
&lt;/h2&gt;

&lt;p&gt;Every travel eSIM passes through four layers, as shown in the diagram at the top of this post:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Mobile networks.&lt;/strong&gt; The operators who own the towers and spectrum. They sell data in bulk through roaming and wholesale agreements.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The eSIM vendor.&lt;/strong&gt; A company that buys that data in many countries, packages it into eSIM plans, and makes the plans available to other businesses through a &lt;strong&gt;partner or dealer API&lt;/strong&gt;. Airalo Partners is one example; there are several others.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The dealer.&lt;/strong&gt; That is your store. The dealer owns the brand, the prices, the website and the customer relationship. It holds no stock: it buys each eSIM from the vendor at the moment a customer pays.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The traveller.&lt;/strong&gt; They pay the dealer, scan a QR code, and get online when they land.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You will also see dealers called resellers or partners, and vendors called providers or wholesalers. The model is the same whatever the name.&lt;/p&gt;

&lt;h2&gt;
  
  
  Vendor vs dealer: who does what
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The vendor handles:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;network deals and coverage in each country;&lt;/li&gt;
&lt;li&gt;creating the eSIM profile and its QR code;&lt;/li&gt;
&lt;li&gt;the catalogue of plans and the wholesale prices;&lt;/li&gt;
&lt;li&gt;the minimum retail price dealers must respect;&lt;/li&gt;
&lt;li&gt;optional white-label delivery emails, and escalations for network problems.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The dealer handles:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the brand, the website and the marketing;&lt;/li&gt;
&lt;li&gt;the actual retail price, at or above the vendor's minimum;&lt;/li&gt;
&lt;li&gt;taking payment from the customer;&lt;/li&gt;
&lt;li&gt;reading the vendor's catalogue and placing orders through its API;&lt;/li&gt;
&lt;li&gt;first-line customer support.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The key point: &lt;strong&gt;the dealer is a software and marketing business.&lt;/strong&gt; The vendor does the telecom work. That is why one developer can build a working eSIM brand.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a vendor gives a dealer
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa0gc8z5sn1so89ebz5i8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa0gc8z5sn1so89ebz5i8.jpg" alt="The Airalo Partners homepage, an example of a vendor's partner portal" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A good vendor gives a dealer much more than a price list. On Tidal, the Airalo Partner API provided:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A catalogue endpoint.&lt;/strong&gt; Every package with its countries, data amount, validity, operator details, and two prices per currency: the &lt;strong&gt;net price&lt;/strong&gt; (what the dealer pays) and the &lt;strong&gt;recommended retail price&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An order endpoint.&lt;/strong&gt; Post a package ID and quantity, get back the eSIM: its ICCID, activation code, QR code and install instructions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Branded emails.&lt;/strong&gt; The vendor can email the eSIM to the customer using the dealer's own brand name and logo, so the customer never sees the vendor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A usage endpoint.&lt;/strong&gt; Remaining data, total data, expiry and status for each eSIM.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Webhooks.&lt;/strong&gt; Notifications when an eSIM has used 75% or 90% of its data, or is about to expire.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A sandbox.&lt;/strong&gt; A test mode where orders cost nothing, so the whole flow can be built and tested before real money is involved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A prepaid balance.&lt;/strong&gt; The dealer tops up credit with the vendor, and every order is deducted from it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When comparing vendors, those last three matter most. A vendor without webhooks or a usage endpoint leaves you building workarounds, and a vendor without a sandbox makes you test with real money.&lt;/p&gt;

&lt;h2&gt;
  
  
  How a dealer makes money
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8wahk53s0iji5j9sxo48.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8wahk53s0iji5j9sxo48.jpg" alt="A Tidal product page with plan cards showing price and price per GB" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The dealer's margin is simple:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;margin = retail price − wholesale price − payment fees&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Two rules shape everything else:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The minimum retail price is contractual.&lt;/strong&gt; Most vendors require dealers to sell at or above their recommended retail price, so partners cannot undercut the vendor's own consumer app. Treat it as a floor, not a suggestion: round prices up, never down.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The floor applies after discounts too.&lt;/strong&gt; If a price sits exactly on the floor, any discount code takes it below. On Tidal I solved this by lifting every price by 1 / (1 − 10%), so a 10% affiliate code lands exactly back on the floor. A script checks every one of the 2,040 plans before any code is created.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Currencies add one more trap. Vendors often publish fixed USD and EUR minimums alongside GBP. If your store converts prices with live exchange rates, a weak day can push a converted price below the vendor's USD minimum. The safe option is a &lt;strong&gt;manual exchange rate&lt;/strong&gt; set just above the vendor's own ratio.&lt;/p&gt;

&lt;p&gt;Here is an example with made-up numbers. Say the vendor charges £2.00 for a plan and sets a £3.00 minimum. You list it at £3.34, so that a 10% code lands on £3.00. After a card fee of around 2% plus 25p, a full-price sale leaves you about £1.02 and a coded sale about 70p. Small per order, so volume and the absence of stock are what make the model work.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens after the customer pays
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnzov4thlqqkofu0jqyyv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnzov4thlqqkofu0jqyyv.jpg" alt="Six steps from Shopify checkout to a delivered eSIM and usage alerts" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the part that needs real engineering. On Tidal it runs on a Cloudflare Worker:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The SKU is the package ID.&lt;/strong&gt; Each Shopify variant's SKU holds the vendor's package ID, so the order already says exactly what to buy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shopify sends a webhook&lt;/strong&gt; when the order is paid. The Worker checks its signature and replies within Shopify's 5-second limit, then works in the background.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lock before buying.&lt;/strong&gt; Shopify retries webhooks, and a backup sweep looks for missed orders, so the same order can arrive more than once. Before buying, the Worker creates a lock on the order (a Shopify metafield that can only be created once). A second attempt sees the lock and walks away. &lt;strong&gt;Without this you will eventually buy the same eSIM twice.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Buy, then save immediately.&lt;/strong&gt; Each eSIM is written to the order the moment the vendor returns it, before the next line is bought. A crash halfway through resumes instead of repeating.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fulfil and tag.&lt;/strong&gt; The order is marked fulfilled and tagged with each ICCID, so later webhooks from the vendor (which carry only the ICCID) can find it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sweep.&lt;/strong&gt; Every 10 minutes, the Worker looks for paid, unfulfilled orders a webhook missed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Two more guards are worth copying. In production, never buy for a test-gateway order, since it is a fake payment. And keep the vendor's sandbox and production modes as explicit settings rather than guessing them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping the catalogue in sync
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F93voyrv5y5kpe2950aqb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F93voyrv5y5kpe2950aqb.jpg" alt="The Tidal destinations directory: a grid of countries with flags and from-prices" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A vendor's catalogue changes constantly: prices move, new packages appear, old ones are withdrawn. A dealer that syncs once at launch will soon be selling plans at the wrong price, or plans that no longer exist.&lt;/p&gt;

&lt;p&gt;On Tidal the Worker runs every minute and checks a small batch of destinations, so the whole catalogue is covered every hour. It updates prices, adds new plans as variants, and hides withdrawn plans rather than deleting them. It also refuses any price move above 50% in one step, which protects against a bad data day at the vendor.&lt;/p&gt;

&lt;h2&gt;
  
  
  After the sale: where customers check their data
&lt;/h2&gt;

&lt;p&gt;This is the question I did not think about until late: &lt;strong&gt;once a customer has installed the eSIM, where do they see how much data is left?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not in the vendor's app. An eSIM bought through a dealer does not appear in the vendor's consumer app, because the customer has no account there. And you should not send customers to that app anyway: the vendor's app sells eSIMs directly, so you would be handing your customers to a competitor.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpevb599vis04j1d94l3c.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpevb599vis04j1d94l3c.jpg" alt="The Tidal Check my data page on a laptop and a phone" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The answer is to build it yourself with the vendor's usage endpoint. Tidal's "Check my data" page:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;opens from a &lt;strong&gt;signed link&lt;/strong&gt; in the customer's emails, so no login is needed and nobody can look up someone else's eSIM;&lt;/li&gt;
&lt;li&gt;also accepts an &lt;strong&gt;order number and checkout email&lt;/strong&gt; , with a rate limit against guessing;&lt;/li&gt;
&lt;li&gt;shows remaining data, status (not started, active, running low, used up) and the plan end date;&lt;/li&gt;
&lt;li&gt;caches each answer for a few minutes so the vendor's API is not hit on every refresh.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pair it with the vendor's low-data webhooks: email the customer at 75% and 90% used, with a link to buy another plan for the same destination.&lt;/p&gt;

&lt;h2&gt;
  
  
  A checklist for choosing a vendor
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Coverage and network quality&lt;/strong&gt; in the countries your customers visit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API completeness:&lt;/strong&gt; catalogue, orders, usage, webhooks and a sandbox.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pricing rules:&lt;/strong&gt; what the minimum retail price is, and whether it applies per currency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;White-label delivery:&lt;/strong&gt; can it send the eSIM email under your brand?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Top-ups:&lt;/strong&gt; can customers add data to an existing eSIM, or must they buy a new one?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payment terms:&lt;/strong&gt; prepaid balance or invoice, and what happens if the balance runs out mid-order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Support:&lt;/strong&gt; who handles a customer whose eSIM will not connect, and how fast.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;A travel eSIM store is a thin, well-built layer between a vendor's API and a traveller. The vendor handles networks and eSIM profiles. The dealer's job is the brand, honest pricing above the vendor's floor, fulfilment that never double-buys, a catalogue that stays in sync, and after-sale features like usage tracking that keep customers coming back to you rather than to the vendor.&lt;/p&gt;

&lt;p&gt;You can see the finished store at &lt;a href="https://tidalsim.com" rel="noopener noreferrer"&gt;tidalsim.com&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let's Work Together
&lt;/h2&gt;

&lt;p&gt;To do work with me, contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/esim-vendors-dealers" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/esim-vendors-dealers&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>esim</category>
      <category>ecommerce</category>
      <category>business</category>
      <category>travel</category>
    </item>
    <item>
      <title>What's New in Shopify: The Fall '26 Edition and the Developer Deadlines Ahead</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 06:04:46 +0000</pubDate>
      <link>https://dev.to/hassaanistic/whats-new-in-shopify-the-fall-26-edition-and-the-developer-deadlines-ahead-5hcm</link>
      <guid>https://dev.to/hassaanistic/whats-new-in-shopify-the-fall-26-edition-and-the-developer-deadlines-ahead-5hcm</guid>
      <description>&lt;p&gt;Shopify releases a large batch of updates twice a year, called an &lt;strong&gt;Edition&lt;/strong&gt;. The latest, the &lt;strong&gt;Fall '26 Edition, named "Exponential"&lt;/strong&gt; , was announced on &lt;strong&gt;28 October 2026&lt;/strong&gt; with more than 150 updates. It follows Spring '26 ("Everywhere") and Winter '26 ("Renaissance").&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkcuxtxnw5iiwafj1k1xx.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkcuxtxnw5iiwafj1k1xx.jpg" alt="The Shopify Editions page showing Exponential as the latest edition" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I build Shopify stores for a living, so this is a practical read rather than a full list. Many features are in early access or rolling out by region and plan, so check what is actually switched on in your admin before you plan around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Agentic commerce: selling through AI assistants
&lt;/h2&gt;

&lt;p&gt;The theme of this Edition is shoppers buying through AI assistants rather than only through a store's own website.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;shop.md.&lt;/strong&gt; A skill that lets AI agents such as ChatGPT or Claude act as a shopping assistant: search products across Shopify stores, recommend them, check out with Shop Pay and track the order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shop Pay inside AI experiences.&lt;/strong&gt; Checkout with Shop Pay extends to supported AI assistants and, per Shopify, to Google Search.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shopify Connectors for AI agents.&lt;/strong&gt; Merchants can manage products, inventory and orders and ask about store performance from a chat with their preferred AI assistant.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Catalog eligibility check and knowledge base.&lt;/strong&gt; Shows whether your store qualifies for Shopify Catalog (the product feed AI agents read) and lets you review the business information agents receive about you.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What this means:&lt;/strong&gt; your product data is now read by machines as much as by people. Clear titles, complete variant data, accurate descriptions and correct policies matter more than ever. If an agent cannot understand a product, it will not recommend it.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Sidekick, SimGym and Canvas
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sidekick&lt;/strong&gt; , Shopify's built-in AI assistant, can now handle multi-step tasks: run calculations, write code, search the web, and remember what you teach it. Changes still need your approval, but one approval can now apply many edits, so decide who on your team is allowed to approve.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SimGym&lt;/strong&gt; lets Sidekick test a proposed change against simulated shoppers before it goes live.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Canvas&lt;/strong&gt; (early access, desktop only) is a visual workspace for viewing and editing storefront pages, with larger design changes made by talking to Sidekick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A redesigned admin&lt;/strong&gt; brings updated navigation, typography and icons, with a Sidekick prompt available on every page.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Checkout, payments and fraud
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Shopify Protect rule builder.&lt;/strong&gt; Create and test your own fraud rules for risky orders and disputes. Worth setting up before peak season.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More local payment methods&lt;/strong&gt; in Shopify Payments, including MB WAY, Satispay and Scalapay, depending on market.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Universal checkout&lt;/strong&gt; lets Shop app customers buy from several merchants in one session, while each merchant's checkout rules still apply.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shop.com&lt;/strong&gt; brings the Shop app experience to the web, with shoppable posts, curated collections and order tracking in the browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom checkout fields&lt;/strong&gt; were announced but, according to early coverage, will not arrive before Black Friday and Cyber Monday 2026.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Retail and POS
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;In-store customer identification.&lt;/strong&gt; POS can link an in-store purchase to a customer profile when the shopper chooses a digital receipt and agrees to share their details.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recent carts.&lt;/strong&gt; Staff can start a cart on one device and finish it on another.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. For developers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WebMCP&lt;/strong&gt; gives browser-based AI agents structured tools to search products, update carts and guide checkout, rolling out across Liquid and Hydrogen storefronts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shop MCP on shop.dev&lt;/strong&gt; lets developers start building agent experiences without an API key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A new theme architecture&lt;/strong&gt; with more modular page structures and guidance written for coding agents. Shopify's Horizon theme family is the foundation here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hydrogen&lt;/strong&gt; is now positioned as a framework-agnostic JavaScript library, with starters for React Router and Next.js.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;App Events and Dev Dashboard updates&lt;/strong&gt; combine app health and store management, and send app activity into Shopify Analytics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An app security check command&lt;/strong&gt; scans your app locally for common vulnerabilities and reports the file, line, severity and a suggested fix.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The developer changelog: deadlines coming up
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6bur6x9r1b1tlddklya0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6bur6x9r1b1tlddklya0.jpg" alt="The Shopify developer changelog" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Edition gets the headlines, but the changelog is where deadlines live. From the &lt;a href="https://shopify.dev/changelog" rel="noopener noreferrer"&gt;Shopify developer changelog&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;IP allowlists are now required for public apps&lt;/strong&gt; : by &lt;strong&gt;20 November&lt;/strong&gt; , or &lt;strong&gt;12 November&lt;/strong&gt; if your app uses bulk operations. Allowlists now support &lt;strong&gt;ASNs&lt;/strong&gt; , so apps on serverless platforms such as Cloudflare Workers or Vercel can comply without fixed IP addresses. &lt;em&gt;With the earlier deadline only two weeks away, this is the one to act on first.&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Partner apps must enable bulk operations&lt;/strong&gt; before they can use them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;orderCreate line items accept custom IDs&lt;/strong&gt; , which helps when importing orders from another system.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Store credit transactions can carry merchant notes&lt;/strong&gt; in the GraphQL Admin API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gift card line_item_id becomes read-only&lt;/strong&gt; in REST Admin API version 2027-01.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API versions:&lt;/strong&gt; 2026-10 is the latest stable version, and 2027-01 is the release candidate. If your app pins an old version, plan the upgrade now.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I would act on first
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4zixtwwriip9i07tz66g.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4zixtwwriip9i07tz66g.jpg" alt="Tidal, a Shopify store built on the Horizon theme" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I recently shipped &lt;a href="https://tidalsim.com" rel="noopener noreferrer"&gt;Tidal&lt;/a&gt;, a travel eSIM store built on Horizon with a Cloudflare Worker doing fulfilment. Based on that, here is the order I would work in:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;App owners: check the IP allowlist deadline now.&lt;/strong&gt; If your backend runs on serverless hosting, use the new ASN support rather than trying to pin IP addresses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make your catalogue agent-ready.&lt;/strong&gt; Run the Catalog eligibility check, then review the knowledge base the way you would review a product page. On Tidal, every product already had complete variant data, Product structured data and unique descriptions, which is exactly what agents read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set Protect rules and plan peak season&lt;/strong&gt; as one bundled rollout rather than a late-night manual push.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decide who approves Sidekick changes&lt;/strong&gt; before someone approves a hundred edits at once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Theme developers: watch the new architecture.&lt;/strong&gt; If you build on Horizon, start adding the context files Sidekick reads about your theme, and keep custom work in clearly named sections and snippets rather than editing core files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audit your apps.&lt;/strong&gt; Native fraud rules, WhatsApp tools and predictive search may now overlap with apps you pay for.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;Fall '26 is Shopify betting that a growing share of shopping will start in AI assistants, not search boxes. For merchants, the practical work is clean product data and sensible approval rules for Sidekick. For developers, it is the IP allowlist deadline in November, the API upgrade path, and preparing themes and apps for agents as a second audience.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sources:&lt;/strong&gt; &lt;a href="https://www.shopify.com/editions" rel="noopener noreferrer"&gt;Shopify Editions&lt;/a&gt;, &lt;a href="https://shopify.dev/changelog" rel="noopener noreferrer"&gt;Shopify developer changelog&lt;/a&gt;, &lt;a href="https://itbrief.com.au/story/shopify-unveils-ai-shopping-tools-in-fall-26-update" rel="noopener noreferrer"&gt;IT Brief: Shopify unveils AI shopping tools in Fall '26 update&lt;/a&gt;, &lt;a href="https://meetanshi.com/blog/shopify-fall-edition-2026/" rel="noopener noreferrer"&gt;Meetanshi: Shopify Fall '26 Edition explained&lt;/a&gt;, &lt;a href="https://www.flatlineagency.com/blog/shopify-editions-fall-26" rel="noopener noreferrer"&gt;Flatline Agency: Shopify Editions Fall '26&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let's Work Together
&lt;/h2&gt;

&lt;p&gt;To do work with me, contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/shopify-fall-2026-updates" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/shopify-fall-2026-updates&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>ecommerce</category>
      <category>news</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How Click IDs Work on Google, Meta, TikTok, Microsoft and Snapchat</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 06:04:37 +0000</pubDate>
      <link>https://dev.to/hassaanistic/how-click-ids-work-on-google-meta-tiktok-microsoft-and-snapchat-38k</link>
      <guid>https://dev.to/hassaanistic/how-click-ids-work-on-google-meta-tiktok-microsoft-and-snapchat-38k</guid>
      <description>&lt;p&gt;When someone clicks an ad, the ad network adds a long random value to the landing page address. That value is the &lt;strong&gt;click id&lt;/strong&gt;. It is the network's own name for that one click, and it is the most reliable way to tell the network later: "the person from this click became a customer."&lt;/p&gt;

&lt;p&gt;I work with these ids every day while building &lt;a href="https://www.eventsiq.io" rel="noopener noreferrer"&gt;EventsIQ&lt;/a&gt;, a lead routing and conversion tracking platform. This post covers what each network sends, where to find it, and how to send it back.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Google Ads:&lt;/strong&gt; &lt;code&gt;gclid&lt;/code&gt;, or &lt;code&gt;gbraid&lt;/code&gt; / &lt;code&gt;wbraid&lt;/code&gt; on iOS. Sent back through the Data Manager API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Meta:&lt;/strong&gt; &lt;code&gt;fbclid&lt;/code&gt; on the URL, kept by the pixel in the &lt;code&gt;_fbc&lt;/code&gt; cookie. Sent back through the Conversions API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TikTok:&lt;/strong&gt; &lt;code&gt;ttclid&lt;/code&gt; on the URL, plus the pixel cookie &lt;code&gt;_ttp&lt;/code&gt;. Sent back through the Events API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Microsoft Ads:&lt;/strong&gt; &lt;code&gt;msclkid&lt;/code&gt;. Sent back as an offline conversion.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Snapchat:&lt;/strong&gt; &lt;code&gt;ScCid&lt;/code&gt;. Sent back through the Snapchat Conversions API.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each one is different in small ways, and those small ways are where conversions get lost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Google: gclid, gbraid and wbraid
&lt;/h2&gt;

&lt;p&gt;With auto-tagging on, Google adds &lt;code&gt;gclid&lt;/code&gt; to the landing page URL. For some iOS traffic you get &lt;code&gt;gbraid&lt;/code&gt; (app to web) or &lt;code&gt;wbraid&lt;/code&gt; (web to web) instead, because Apple limits tracking there.&lt;/p&gt;

&lt;p&gt;Two rules I learned the hard way:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If a lead has both a &lt;code&gt;gclid&lt;/code&gt; and a &lt;code&gt;gbraid&lt;/code&gt;, send both. Google recommends it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;gbraid&lt;/code&gt; and &lt;code&gt;wbraid&lt;/code&gt; do not go together. Send one, &lt;code&gt;gbraid&lt;/code&gt; first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is also a catch with custom variables: Google only accepts them on a conversion that carries just a &lt;code&gt;gclid&lt;/code&gt;. If the event also has hashed contact details or an iOS id, adding custom variables can get the whole conversion rejected. So the safe move is to drop the extras rather than lose the sale.&lt;/p&gt;

&lt;h2&gt;
  
  
  Meta: fbclid and the _fbc cookie
&lt;/h2&gt;

&lt;p&gt;Meta adds &lt;code&gt;fbclid&lt;/code&gt; to the URL. The Meta pixel then saves it in a cookie called &lt;code&gt;_fbc&lt;/code&gt;, in this format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fb.1.&amp;lt;click time in milliseconds&amp;gt;.&amp;lt;fbclid&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When you send a conversion through the Conversions API, Meta wants this &lt;code&gt;fbc&lt;/code&gt; value, not the bare &lt;code&gt;fbclid&lt;/code&gt;. If the visitor has the real &lt;code&gt;_fbc&lt;/code&gt; cookie, use it as it is. The time inside it is the moment Meta saw the click, and that is what Meta matches against. If there is no cookie (for example the pixel is not on the page), you can build the value yourself from the &lt;code&gt;fbclid&lt;/code&gt; on the URL, with the current time.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;_fbp&lt;/code&gt; is a different cookie. It names the browser, not the click. Send it too when you have it.&lt;/p&gt;

&lt;p&gt;Instant forms (Meta lead ads) are different again. Nobody visits a page, so there is no &lt;code&gt;fbclid&lt;/code&gt; at all. Instead Meta gives each lead a &lt;strong&gt;leadgen id&lt;/strong&gt; , and that is the key you send back.&lt;/p&gt;

&lt;h2&gt;
  
  
  TikTok: ttclid and _ttp
&lt;/h2&gt;

&lt;p&gt;TikTok adds &lt;code&gt;ttclid&lt;/code&gt; to the URL. The TikTok pixel sets a browser cookie called &lt;code&gt;_ttp&lt;/code&gt;. Both go to the Events API as they are, without hashing. Email and phone are hashed, but these ids are not.&lt;/p&gt;

&lt;p&gt;For TikTok instant forms, the strong key is TikTok's own &lt;code&gt;lead_id&lt;/code&gt;, the same idea as Meta's leadgen id.&lt;/p&gt;

&lt;h2&gt;
  
  
  Microsoft Ads: msclkid
&lt;/h2&gt;

&lt;p&gt;With auto-tagging on, Microsoft adds &lt;code&gt;msclkid&lt;/code&gt;. You report the sale as an &lt;strong&gt;offline conversion&lt;/strong&gt; against a conversion goal you create in Microsoft Ads. Since enhanced conversions, you can also send a SHA-256 hashed email or phone. Phone has to be in E.164 format (a plus sign, the country code, then the number) before it is hashed, or it simply will not match.&lt;/p&gt;

&lt;h2&gt;
  
  
  Snapchat: ScCid
&lt;/h2&gt;

&lt;p&gt;Snapchat adds &lt;code&gt;ScCid&lt;/code&gt; to the URL. Note the capital letters: if your code lowercases query keys and then looks for &lt;code&gt;ScCid&lt;/code&gt;, it will never find it. It goes to the Snapchat Conversions API as &lt;code&gt;sc_click_id&lt;/code&gt;, unhashed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why keep the click id with the lead
&lt;/h2&gt;

&lt;p&gt;A click id is only useful if it is still attached to the person when the sale happens. In lead generation, that can be minutes or days later, and often in a different system (a buyer's CRM).&lt;/p&gt;

&lt;p&gt;So the first job is simple: when the form is submitted, save every click id you saw on the page &lt;strong&gt;on the lead record&lt;/strong&gt;. In EventsIQ the form remembers the click for 90 days, so a visitor who comes back next week still carries it.&lt;/p&gt;

&lt;p&gt;A second rule: a click should fill gaps, never overwrite. If the lead already has a campaign id from the page, an older click in the browser must not replace it. A visitor can come back through a newer ad while an old click id is still stored.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why send it back from the server
&lt;/h2&gt;

&lt;p&gt;The pixel in the browser can report a form fill. It cannot report a sale that happens later in someone else's CRM. It also misses a lot: ad blockers, iOS limits and cookie consent all cut into what a browser pixel sees.&lt;/p&gt;

&lt;p&gt;Sending the conversion from your server fixes both problems:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;You report the real outcome.&lt;/strong&gt;"Sold for $42" is far more useful to the ad network's bidding than "filled a form."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nothing in the browser can block it.&lt;/strong&gt; The server already has the click id saved on the lead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You control what is sent.&lt;/strong&gt; Personal details are hashed before they leave, and only what the network needs goes out.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The pattern is the same on every network: capture the click id on the page, keep it on the lead, and when the lead sells, send the network its own id back with the sale value.&lt;/p&gt;

&lt;p&gt;In the next posts I cover &lt;a href="https://www.hassaanistic.com/blogs/transparent-click-tracking-custom-domain" rel="noopener noreferrer"&gt;how a custom tracking domain records the click&lt;/a&gt; and &lt;a href="https://www.hassaanistic.com/blogs/sending-conversions-back-to-ad-networks" rel="noopener noreferrer"&gt;how the conversion APIs work&lt;/a&gt;, with hashing and deduplication.&lt;/p&gt;




&lt;h2&gt;
  
  
  Let's Work Together
&lt;/h2&gt;

&lt;p&gt;If you need click tracking or conversion APIs built into your product, contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/click-ids-across-ad-platforms" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/click-ids-across-ad-platforms&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>marketing</category>
      <category>analytics</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Transparent Click Tracking: Custom Tracking Domains, Redirects and Postbacks</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 05:52:17 +0000</pubDate>
      <link>https://dev.to/hassaanistic/transparent-click-tracking-custom-tracking-domains-redirects-and-postbacks-34k2</link>
      <guid>https://dev.to/hassaanistic/transparent-click-tracking-custom-tracking-domains-redirects-and-postbacks-34k2</guid>
      <description>&lt;p&gt;A click tracker sits between the ad and the landing page. It records the click, gives it an id, and sends the visitor on. Done badly, it is a black box that ad networks distrust and that adds delay. Done well, it is &lt;strong&gt;transparent&lt;/strong&gt; : it runs on your own domain, it says exactly where it sends people, and it adds nothing but its own id.&lt;/p&gt;

&lt;p&gt;This is how I built the click tracker in &lt;a href="https://www.eventsiq.io" rel="noopener noreferrer"&gt;EventsIQ&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: a tracking domain of your own
&lt;/h2&gt;

&lt;p&gt;The ad link should point at a subdomain you own, like &lt;code&gt;track.yoursite.com&lt;/code&gt;, not at the tracker company's domain. Visitors and ad networks see your name.&lt;/p&gt;

&lt;p&gt;Setting one up is a single DNS record:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;track.yoursite.com CNAME &amp;lt;the tracker's address&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Behind the scenes, EventsIQ uses &lt;strong&gt;Cloudflare for SaaS&lt;/strong&gt; custom hostnames for this. When a customer adds their subdomain, the app registers it with Cloudflare, Cloudflare checks the CNAME and issues the HTTPS certificate, and the status moves from "Waiting for DNS" to "Issuing certificate" to "Live". The customer never handles a certificate.&lt;/p&gt;

&lt;p&gt;Two small rules that save support tickets:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Refuse a bare domain.&lt;/strong&gt; Pointing &lt;code&gt;yoursite.com&lt;/code&gt; itself at a tracker would take over the whole website. Only subdomains are allowed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Help with DNS panels.&lt;/strong&gt; Providers like Namecheap and GoDaddy add your domain to the Name field for you, so the customer should type only &lt;code&gt;track&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ofcy20392sr7nox5xzo.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ofcy20392sr7nox5xzo.webp" alt="Two kinds of tracking domain: a shared subdomain that works straight away, or your own that needs one DNS record." width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: record the click, then one plain redirect
&lt;/h2&gt;

&lt;p&gt;When a visitor hits the tracking link, the tracker:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Reads the campaign from the link and the macros the network filled in (campaign id, ad id, click id).&lt;/li&gt;
&lt;li&gt;Records the click and gives it its own id, for example &lt;code&gt;eiq_click=ck_8f21a&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Sends the visitor to the landing page with &lt;strong&gt;one HTTP 302&lt;/strong&gt; , adding its click id.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No meta refresh, no JavaScript redirect, no second hop. Each extra hop costs time on a phone and loses visitors.&lt;/p&gt;

&lt;p&gt;The landing page form then keeps that click id (in EventsIQ for 90 days). When the form is submitted, the lead carries the click id, and the server joins the two. From then on the lead knows its campaign, ad, ad set and the network's own click id, even if the page never saw them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Transparent means the link names its destination
&lt;/h2&gt;

&lt;p&gt;Google Ads is the strictest network here. The ad's Final URL has to be the real landing page. A tracker may only sit in the &lt;strong&gt;tracking template&lt;/strong&gt; , and it must show where it sends the visitor next.&lt;/p&gt;

&lt;p&gt;So the tracking template carries the destination in plain sight:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://track.yoursite.com/spring?...&amp;amp;gclid={gclid}&amp;amp;eiq_url={lpurl}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Google replaces &lt;code&gt;{lpurl}&lt;/code&gt; with the Final URL. When a link carries &lt;code&gt;eiq_url&lt;/code&gt;, the tracker goes exactly there. It skips everything a normal campaign could do on the redirect: no routing rules, no split tests, no swapped page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Not an open redirect
&lt;/h3&gt;

&lt;p&gt;A tracker that follows any address it is given can be abused to send people anywhere under your brand. So the tracker checks the host in &lt;code&gt;eiq_url&lt;/code&gt; against the landing pages the campaign already uses. An unknown host gets a 404. The check is by host, not by full address, so a different path or your own &lt;code&gt;utm_source&lt;/code&gt; does not cause real clicks to be refused.&lt;/p&gt;

&lt;h2&gt;
  
  
  Google's parallel tracking
&lt;/h2&gt;

&lt;p&gt;Google runs most clicks through &lt;strong&gt;parallel tracking&lt;/strong&gt;. The browser opens the landing page directly, and loads the tracking template in the background at the same time. In that background request, Google swaps &lt;code&gt;{lpurl}&lt;/code&gt; for an address of its own on &lt;code&gt;google.com/asnc/&lt;/code&gt;, so the page is not loaded twice.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn94mexyzk68jxbs9vztp.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn94mexyzk68jxbs9vztp.webp" alt="One click goes two ways: the page opens straight away, and the tracking link records the click and its gclid in the background." width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That changes how the lead finds its click. The visitor never passes through the tracker, so the page never gets &lt;code&gt;eiq_click&lt;/code&gt;. Instead:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The tracker records the click with the real &lt;code&gt;gclid&lt;/code&gt; and redirects the background request to Google's address, unchanged (and only if it really is &lt;code&gt;google.com&lt;/code&gt; over HTTPS under &lt;code&gt;/asnc/&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;The page has the same &lt;code&gt;gclid&lt;/code&gt; on its URL, from Google.&lt;/li&gt;
&lt;li&gt;The lead is joined to the click by that shared &lt;code&gt;gclid&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One more detail stops a click being counted twice. Without a tracker in front, a page normally asks the server for a click id itself (direct mode). Under parallel tracking that would make a second click. So the Final URL suffix carries a small marker, &lt;code&gt;eiq_tracked=1&lt;/code&gt;, which tells the page the click is already recorded.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: postbacks for sales that happen later
&lt;/h2&gt;

&lt;p&gt;In lead generation, the sale often happens days later, in a buyer's CRM. The tracker cannot see that. A &lt;strong&gt;postback&lt;/strong&gt; closes the gap: the CRM calls a URL when the status changes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://app.eventsiq.io/cv?click_id={click_id}&amp;amp;event=sold&amp;amp;value={value}&amp;amp;key=YOUR_KEY

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server then walks the chain:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Find the click by its id.&lt;/li&gt;
&lt;li&gt;Find the click's campaign.&lt;/li&gt;
&lt;li&gt;Find the campaign's conversion integration (which pixel or Google Ads account).&lt;/li&gt;
&lt;li&gt;Send the event there, with the network's own click id saved on the lead.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqc6xv3kc4g4lw5ukrah4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqc6xv3kc4g4lw5ukrah4.webp" alt="A postback travels from the CRM through the click and campaign to the right pixel." width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The nice part: &lt;strong&gt;the CRM never needs to know about pixels&lt;/strong&gt;. Five campaigns on three ad accounts can all send &lt;code&gt;event=sold&lt;/code&gt;, and each sale lands on the right pixel, because the campaign decides where it goes.&lt;/p&gt;

&lt;p&gt;For leads that never had a click (Meta or TikTok instant forms), the CRM can post back with &lt;code&gt;lead_id&lt;/code&gt; instead of &lt;code&gt;click_id&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to take away
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Put the tracker on the customer's own subdomain. One CNAME, certificates handled for them.&lt;/li&gt;
&lt;li&gt;Record the click, then send one plain 302 that names where it goes.&lt;/li&gt;
&lt;li&gt;Check the destination host, so the tracker is never an open redirect.&lt;/li&gt;
&lt;li&gt;Handle Google's parallel tracking by joining on the &lt;code&gt;gclid&lt;/code&gt;, and mark tracked visits so nothing counts twice.&lt;/li&gt;
&lt;li&gt;Let CRMs report later sales with a simple postback URL, and let the campaign decide which pixel hears about it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The last step, actually sending the sale to Meta, TikTok and Google, is the subject of &lt;a href="https://www.hassaanistic.com/blogs/sending-conversions-back-to-ad-networks" rel="noopener noreferrer"&gt;the next post&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Let's Work Together
&lt;/h2&gt;

&lt;p&gt;If you are building tracking or attribution and want a hand, contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/transparent-click-tracking-custom-domain" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/transparent-click-tracking-custom-domain&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>marketing</category>
      <category>analytics</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Sending Conversions Back: Meta Conversions API, TikTok Events API and Google's Data Manager API</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 05:52:06 +0000</pubDate>
      <link>https://dev.to/hassaanistic/sending-conversions-back-meta-conversions-api-tiktok-events-api-and-googles-data-manager-api-57c3</link>
      <guid>https://dev.to/hassaanistic/sending-conversions-back-meta-conversions-api-tiktok-events-api-and-googles-data-manager-api-57c3</guid>
      <description>&lt;p&gt;Ad networks bid better when they know which clicks made money. For a lead business, "made money" happens after the form: a buyer accepts the lead, or a CRM marks it sold days later. A browser pixel never sees that moment. A server does.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://www.eventsiq.io" rel="noopener noreferrer"&gt;EventsIQ&lt;/a&gt; every sale can be sent back to the network that paid for the click. This post covers the three big ones, Meta, TikTok and Google, and the rules they share.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shared shape
&lt;/h2&gt;

&lt;p&gt;Every conversion API wants roughly the same five things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;What happened.&lt;/strong&gt; An event name, like &lt;code&gt;Purchase&lt;/code&gt;, &lt;code&gt;CompletePayment&lt;/code&gt; or a Google conversion action.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;When.&lt;/strong&gt; The time of the event.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who.&lt;/strong&gt; Ids that let the network match the person: its own click id, plus hashed email and phone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How much.&lt;/strong&gt; The sale value and currency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A unique id for this event&lt;/strong&gt; , so a retry or a second sender does not count twice.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The differences are in the details, so here they are network by network.&lt;/p&gt;

&lt;h2&gt;
  
  
  Meta Conversions API
&lt;/h2&gt;

&lt;p&gt;Send events to the pixel through the Graph API. The parts that matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;event_name&lt;/code&gt;&lt;/strong&gt; , &lt;strong&gt;&lt;code&gt;event_time&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;event_id&lt;/code&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;action_source&lt;/code&gt;&lt;/strong&gt;. For a sale reported by a server or a CRM, &lt;code&gt;system_generated&lt;/code&gt; is honest. Only claim &lt;code&gt;website&lt;/code&gt; when you can also send the page URL and the visitor's user agent, because Meta expects both with it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;user_data&lt;/code&gt;&lt;/strong&gt; : hashed &lt;code&gt;em&lt;/code&gt; (email) and &lt;code&gt;ph&lt;/code&gt; (phone), plus &lt;code&gt;fbc&lt;/code&gt; and &lt;code&gt;fbp&lt;/code&gt; unhashed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;external_id&lt;/code&gt;&lt;/strong&gt; : your own id for the person, hashed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two traps here:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;external_id must repeat.&lt;/strong&gt; Its whole job is to join several events about the same person. A value that is new for every event (like a fresh lead id each time) passes validation and does nothing. Use a visitor cookie where you have one, and a stable per-lead id where you do not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;fbc is not fbclid.&lt;/strong&gt; Meta wants the cookie format &lt;code&gt;fb.1.&amp;lt;click time&amp;gt;.&amp;lt;fbclid&amp;gt;&lt;/code&gt;. Prefer the real &lt;code&gt;_fbc&lt;/code&gt; cookie from the browser, because the time inside it is when Meta saw the click.&lt;/p&gt;

&lt;p&gt;For instant form leads there is no browser and no &lt;code&gt;fbc&lt;/code&gt;. Instead you send Meta's own &lt;strong&gt;leadgen id&lt;/strong&gt; with the lead's stage, which is how Meta's CRM integration learns which lead forms bring buyers.&lt;/p&gt;

&lt;h2&gt;
  
  
  TikTok Events API
&lt;/h2&gt;

&lt;p&gt;TikTok's Events API looks similar, with its own names:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Events like &lt;code&gt;SubmitForm&lt;/code&gt; (lead captured), &lt;code&gt;Contact&lt;/code&gt; (lead qualified) and &lt;code&gt;CompletePayment&lt;/code&gt; (lead sold, with a value).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;event_source&lt;/code&gt; says whether it is a web event (tied to a pixel) or a CRM event.&lt;/li&gt;
&lt;li&gt;Email and phone are hashed. &lt;strong&gt;&lt;code&gt;ttclid&lt;/code&gt;, the &lt;code&gt;_ttp&lt;/code&gt; cookie and TikTok's &lt;code&gt;lead_id&lt;/code&gt; are sent raw.&lt;/strong&gt; Hashing them by mistake is an easy way to get zero matches.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One more TikTok gotcha: for web events, &lt;code&gt;event_source_id&lt;/code&gt; is the pixel &lt;strong&gt;code&lt;/strong&gt; (the letters and numbers you see in Events Manager), not a numeric id.&lt;/p&gt;

&lt;h2&gt;
  
  
  Google Ads through the Data Manager API
&lt;/h2&gt;

&lt;p&gt;Google's newer Data Manager API takes conversions at &lt;code&gt;events:ingest&lt;/code&gt;. Each event names its destination (the Google Ads account and the conversion action), and can carry:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;adIdentifiers&lt;/code&gt;&lt;/strong&gt; : &lt;code&gt;gclid&lt;/code&gt;, and &lt;code&gt;gbraid&lt;/code&gt; or &lt;code&gt;wbraid&lt;/code&gt; for iOS traffic.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;userData&lt;/code&gt;&lt;/strong&gt; : hashed email, phone and names (enhanced conversions for leads).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;conversionValue&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;currency&lt;/code&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;transactionId&lt;/code&gt;&lt;/strong&gt; : the dedup key.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The older upload made you choose between a click id and hashed contact details. Now one event can carry both, so a lead with a &lt;code&gt;gclid&lt;/code&gt; and an email sends both, and Google matches on whichever it can.&lt;/p&gt;

&lt;p&gt;Remember the rules from &lt;a href="https://www.hassaanistic.com/blogs/click-ids-across-ad-platforms" rel="noopener noreferrer"&gt;the click id post&lt;/a&gt;: send &lt;code&gt;gclid&lt;/code&gt; and &lt;code&gt;gbraid&lt;/code&gt; together when you have both, never &lt;code&gt;gbraid&lt;/code&gt; and &lt;code&gt;wbraid&lt;/code&gt; together, and only add custom variables to an event that carries just a &lt;code&gt;gclid&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hashing: normalise first, then SHA-256
&lt;/h2&gt;

&lt;p&gt;Every network asks for SHA-256 hashes of personal data, sent as hex. The hash only matches if both sides normalise the value the same way first. Here is the core of it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&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="s2"&gt;"crypto"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Trim, lowercase, then SHA-256 hex.&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;hashPii&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&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;normalised&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&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="nf"&gt;toLowerCase&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;normalised&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;createHash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"sha256"&lt;/span&gt;&lt;span class="p"&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="n"&gt;normalised&lt;/span&gt;&lt;span class="p"&gt;)&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="s2"&gt;"hex"&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="c1"&gt;// "+1 (555) 123-4567" and "15551234567" must give the same hash.&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;hashPhone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&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;digits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&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="o"&gt;/&lt;/span&gt;\&lt;span class="no"&gt;D&lt;/span&gt;&lt;span class="o"&gt;+/&lt;/span&gt;&lt;span class="n"&gt;g&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="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;digits&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nf"&gt;hashPii&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;digits&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;undefined&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;Watch the per-network differences. Microsoft wants the phone in E.164 (with the &lt;code&gt;+&lt;/code&gt; and country code) before hashing. Google wants hashed first and last names as separate fields. If a phone number cannot be normalised with confidence, leave it out: sending a wrong hash is worse than sending none.&lt;/p&gt;

&lt;p&gt;Only hashes should ever leave the function that builds the payload. Raw email and phone stay on your server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deduplication with event IDs
&lt;/h2&gt;

&lt;p&gt;The same sale can reach a network twice: a retry after a timeout, a postback that fires twice, or the browser pixel and the server both reporting a lead. Each network has a key for this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Meta&lt;/strong&gt; treats two events with the same &lt;code&gt;event_name&lt;/code&gt; and &lt;code&gt;event_id&lt;/code&gt; as one. If the pixel and the server both send the &lt;code&gt;Lead&lt;/code&gt; event with the same id, Meta keeps one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TikTok&lt;/strong&gt; uses &lt;code&gt;event_id&lt;/code&gt; the same way.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google&lt;/strong&gt; drops a second upload with the same &lt;code&gt;transactionId&lt;/code&gt; to the same conversion action.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In EventsIQ the event id is the lead's &lt;strong&gt;public id&lt;/strong&gt; , or the postback's own event id for later events. Two rules:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Make it stable.&lt;/strong&gt; The same sale must always produce the same id, so a retry is a duplicate, not a new sale.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never use your database id.&lt;/strong&gt; A MongoDB ObjectId has its creation time in its first bytes, so sending it would tell the world when each lead was made. Use a separate public id.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Never let one network take down the others
&lt;/h2&gt;

&lt;p&gt;One lead can fan out to several networks at once. Each send should catch its own errors and record the result on the lead, instead of throwing. A Google outage should not stop the Meta event, and a failed send should be visible in the lead's log so it can be retried.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Save the network's click id on the lead when the form is submitted.&lt;/li&gt;
&lt;li&gt;Send the real outcome (sold, with a value), not only "form filled."&lt;/li&gt;
&lt;li&gt;Normalise, then SHA-256, then hex. Click ids and cookies stay raw.&lt;/li&gt;
&lt;li&gt;Use a stable, public event id on every event.&lt;/li&gt;
&lt;li&gt;Keep each network's send separate, and log every result.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is the whole loop: &lt;a href="https://www.hassaanistic.com/blogs/transparent-click-tracking-custom-domain" rel="noopener noreferrer"&gt;record the click&lt;/a&gt;, keep it with the lead, and send the sale back where the click came from.&lt;/p&gt;




&lt;h2&gt;
  
  
  Let's Work Together
&lt;/h2&gt;

&lt;p&gt;If you need server-side conversions set up for your product, contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/sending-conversions-back-to-ad-networks" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/sending-conversions-back-to-ad-networks&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>marketing</category>
      <category>webdev</category>
      <category>api</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Custom Domains for Every Customer in a Next.js SaaS, with Cloudflare for SaaS</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 05:51:57 +0000</pubDate>
      <link>https://dev.to/hassaanistic/custom-domains-for-every-customer-in-a-nextjs-saas-with-cloudflare-for-saas-3fh5</link>
      <guid>https://dev.to/hassaanistic/custom-domains-for-every-customer-in-a-nextjs-saas-with-cloudflare-for-saas-3fh5</guid>
      <description>&lt;p&gt;Many SaaS products eventually get the same request: "Can we use our own domain?" In &lt;a href="https://www.eventsiq.io" rel="noopener noreferrer"&gt;EventsIQ&lt;/a&gt; it is not a nice-to-have. Customers put tracking links in their ads, and those links should say &lt;code&gt;track.theirsite.com&lt;/code&gt;, not our name.&lt;/p&gt;

&lt;p&gt;This post is how I built it with Next.js and Cloudflare for SaaS. The customer adds one DNS record and never touches a certificate.&lt;/p&gt;

&lt;h2&gt;
  
  
  The plan in one picture
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9d14msucx38395w8vn9n.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9d14msucx38395w8vn9n.webp" alt="The Next.js app registers the hostname and writes the route once. Each click is then one KV read at the edge and a 302." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are two halves:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Next.js app&lt;/strong&gt; does the slow, careful work once: it registers the hostname with Cloudflare, watches the certificate, and writes each campaign's route into Cloudflare KV.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Cloudflare Worker&lt;/strong&gt; answers clicks. For each request it reads one KV key, replies with a 302, and queues the click to be saved afterwards.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Next.js app is never in the path of a click. That keeps redirects fast everywhere in the world and means a busy day in the app cannot slow down anyone's ads.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: one CNAME from the customer
&lt;/h2&gt;

&lt;p&gt;The customer types a subdomain, like &lt;code&gt;track.theirsite.com&lt;/code&gt;, and adds one record at their DNS provider:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;track.theirsite.com CNAME &amp;lt;our fallback origin&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two checks in the form save a lot of support:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Only subdomains.&lt;/strong&gt; A bare domain like &lt;code&gt;theirsite.com&lt;/code&gt; is refused. Pointing it at us would take over their whole website.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clean up what people paste.&lt;/strong&gt; Customers paste &lt;code&gt;https://track.theirsite.com/&lt;/code&gt;. Strip the scheme, the path and the trailing dot, and lowercase it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2: register the hostname from a server action
&lt;/h2&gt;

&lt;p&gt;Cloudflare for SaaS lets you add a customer's hostname to &lt;strong&gt;your own&lt;/strong&gt; zone. The customer never signs in to Cloudflare and never adds a zone of their own.&lt;/p&gt;

&lt;p&gt;In Next.js this lives in a server action. The Cloudflare call is a plain &lt;code&gt;fetch&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="s2"&gt;"use server"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;createCustomHostname&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hostname&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&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="sb"&gt;`https://api.cloudflare.com/client/v4/zones/${process.env.CLOUDFLARE_ZONE_ID}/custom_hostnames`&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="s2"&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="nc"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sb"&gt;`Bearer ${process.env.CLOUDFLARE_API_TOKEN}`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&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;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;hostname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;ssl&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="s2"&gt;"http"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// Cloudflare answers the challenge itself&lt;/span&gt;
          &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"dv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;min_tls_version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1.2"&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="n"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AbortSignal&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10_000&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;json&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&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;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;success&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="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;errors&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;0&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="n"&gt;message&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="s2"&gt;"Cloudflare refused the hostname"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// keep result.id, status and ssl.status&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three choices in there are worth explaining.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTTP validation, not TXT.&lt;/strong&gt; With &lt;code&gt;method: "http"&lt;/code&gt;, the certificate authority asks for a token on the hostname itself. That request already reaches Cloudflare because of the customer's CNAME, so Cloudflare answers it. With TXT validation, the customer would need a second record at their registrar. One record is always better than two.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TLS 1.2 as the minimum.&lt;/strong&gt; The visitors are people tapping an ad on a modern phone. Offering TLS 1.0 helps nobody and fails the security reviews some customers run.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A timeout.&lt;/strong&gt; A call to any outside API from a server action should have one. Without it a slow response holds the request open until the platform kills it.&lt;/p&gt;

&lt;p&gt;Also handle "already exists". If a hostname was added before and removed only on our side, Cloudflare answers with error code &lt;code&gt;1406&lt;/code&gt;. Look it up and reuse it rather than showing an error nobody can explain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: show the customer where it stands
&lt;/h2&gt;

&lt;p&gt;A hostname moves through a few states, and the customer should see them in plain words:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Waiting for DNS&lt;/strong&gt; : Cloudflare cannot see the CNAME yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Issuing certificate&lt;/strong&gt; : the record is right, the certificate is on its way. Usually minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live&lt;/strong&gt; : ready for traffic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cloudflare reports the hostname status and the certificate status separately, so read both. A &lt;strong&gt;Check again&lt;/strong&gt; button that re-fetches the hostname is enough. You do not need a webhook for this.&lt;/p&gt;

&lt;p&gt;When Cloudflare no longer has a hostname (someone tidied up in the dashboard), treat it as a state to fix, not a crash. Return &lt;code&gt;null&lt;/code&gt; from the lookup and show the customer what to do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: write the route to KV
&lt;/h2&gt;

&lt;p&gt;When a customer saves a campaign on their domain, the app writes one KV entry:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;track&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;theirsite&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;spring&lt;/span&gt;&lt;span class="err"&gt;-&lt;/span&gt;&lt;span class="n"&gt;quote&lt;/span&gt; &lt;span class="err"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;destinations&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="err"&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;campaignId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="err"&gt;...&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two lessons here.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build the key in one place.&lt;/strong&gt; The app writes the key and the Worker reads it. If one side lowercases the hostname and the other does not, every link returns 404 and nothing throws anywhere. So both sides import the same small file that builds the key, and that file has no imports of its own, so both the Next.js build and the Worker build can use it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Version the stored shape.&lt;/strong&gt; The app deploys on Vercel and the Worker deploys with Wrangler, minutes apart, and old KV entries outlive both. A &lt;code&gt;v&lt;/code&gt; field lets the Worker refuse a shape it does not understand instead of misreading it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: the Worker answers the click
&lt;/h2&gt;

&lt;p&gt;The Worker is small on purpose. Simplified, it looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Request&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="nc"&gt;Env&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ExecutionContext&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;url&lt;/span&gt; &lt;span class="o"&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="n"&gt;request&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;clickRouteKey&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;hostname&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;pathname&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;1&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;route&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;parseClickRoute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&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;CAMPAIGN_ROUTES&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="n"&gt;key&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;route&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Not found"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;404&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;clickId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randomUUID&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;destination&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pickDestination&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;route&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="c1"&gt;// Save the click after the reply, so the visitor never waits on it.&lt;/span&gt;
    &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;waitUntil&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;CLICK_EVENTS&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;clickId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;route&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;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;href&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;return&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;withClickId&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;destination&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;clickId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;302&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ctx.waitUntil&lt;/code&gt; is the key line. The redirect goes out first, and the click is handed to a queue in the background. A queue consumer then saves it and passes it to the app. If saving fails, the message comes back and is tried again. The visitor is already on the landing page.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs to run
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The customer:&lt;/strong&gt; one CNAME.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Next.js app:&lt;/strong&gt; a server action, a status screen and a KV write per campaign.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Each click:&lt;/strong&gt; one KV read and one queue message at the edge.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Keep the Next.js app out of the hot path. Let it manage hostnames and routes, and let an edge Worker answer requests.&lt;/li&gt;
&lt;li&gt;Use Cloudflare for SaaS with HTTP validation, so the customer adds exactly one record.&lt;/li&gt;
&lt;li&gt;Show hostname and certificate status in plain words, with a Check again button.&lt;/li&gt;
&lt;li&gt;Build shared keys in one import-free file, and version anything stored in KV.&lt;/li&gt;
&lt;li&gt;Reply first, save later, with &lt;code&gt;waitUntil&lt;/code&gt; and a queue.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wrote more about what happens on each click in &lt;a href="https://www.hassaanistic.com/blogs/transparent-click-tracking-custom-domain" rel="noopener noreferrer"&gt;transparent click tracking with a custom domain&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Let's Work Together
&lt;/h2&gt;

&lt;p&gt;If you need custom domains in your SaaS, contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/nextjs-custom-domains-cloudflare-for-saas" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/nextjs-custom-domains-cloudflare-for-saas&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>cloudflare</category>
      <category>saas</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Shopify's New {% partial %} Tag: Re-render Parts of a Page Without the Section Rendering API</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 05:51:48 +0000</pubDate>
      <link>https://dev.to/hassaanistic/shopifys-new-partial-tag-re-render-parts-of-a-page-without-the-section-rendering-api-lm2</link>
      <guid>https://dev.to/hassaanistic/shopifys-new-partial-tag-re-render-parts-of-a-page-without-the-section-rendering-api-lm2</guid>
      <description>&lt;p&gt;One of the most important skills a Shopify developer can have is &lt;strong&gt;re-rendering part of a page without reloading the whole thing&lt;/strong&gt;. Cart drawers, collection filters, sorting, predictive search, pagination and variant pickers all depend on it.&lt;/p&gt;

&lt;p&gt;Until now, the standard way to do that was the &lt;strong&gt;Section Rendering API&lt;/strong&gt;. In July 2026 Shopify introduced a simpler model: the &lt;strong&gt;{% partial %}&lt;/strong&gt; Liquid tag, paired with a small JavaScript helper called &lt;strong&gt;@shopify/partial-rendering&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This guide explains what changes, how it works, and how I would use it in a real theme.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Status, November 2026:&lt;/strong&gt; {% partial %} is a &lt;strong&gt;developer preview&lt;/strong&gt; , part of the &lt;strong&gt;"Liquid July '26"&lt;/strong&gt; changes announced on 21 July 2026. It only works on development stores with that preview enabled, and Shopify says the tag and its JavaScript helpers can change before general availability. Learn it now; do not ship it to a live store yet.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx255pnpbw99wwp4ap8o1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx255pnpbw99wwp4ap8o1.jpg" alt="The Shopify changelog post announcing Liquid blocks and partials" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why re-rendering matters
&lt;/h2&gt;

&lt;p&gt;A Shopify theme renders HTML on the server with Liquid. That is good for speed and SEO, but it creates a problem the moment a shopper interacts with the page:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;They change the sort order on a collection page.&lt;/li&gt;
&lt;li&gt;They tick a filter.&lt;/li&gt;
&lt;li&gt;They change a quantity in the cart drawer.&lt;/li&gt;
&lt;li&gt;They pick a different variant.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You do not want a full page reload for any of these, and you do not want to rebuild the product card or cart line markup in JavaScript either. That would mean keeping two copies of the same template, one in Liquid and one in JS, and they always drift apart.&lt;/p&gt;

&lt;p&gt;The right answer has always been: &lt;strong&gt;ask the server to render the HTML again, and swap only the part that changed.&lt;/strong&gt; The question is how much work that takes.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we did it until now: the Section Rendering API
&lt;/h2&gt;

&lt;p&gt;With the Section Rendering API, you request a page with a &lt;strong&gt;section_id&lt;/strong&gt; (or &lt;strong&gt;sections&lt;/strong&gt; ) parameter, and Shopify returns just that section's HTML. Then you do the rest yourself:&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;// Sorting a collection with the Section Rendering API&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&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="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;href&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;searchParams&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'sort_by'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'price-ascending'&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;searchParams&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'section_id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sectionId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// e.g. from data-section-id="{{ section.id }}"&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="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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;html&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&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;doc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;DOMParser&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;parseFromString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'text/html'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#product-grid'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replaceWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#product-grid'&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="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#product-count'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replaceWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#product-count'&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="c1"&gt;// Then, by hand:&lt;/span&gt;
&lt;span class="c1"&gt;// - re-attach event listeners to the new nodes&lt;/span&gt;
&lt;span class="c1"&gt;// - restore keyboard focus if it was inside the grid&lt;/span&gt;
&lt;span class="c1"&gt;// - keep the scroll position&lt;/span&gt;
&lt;span class="c1"&gt;// - make sure a slow older response does not overwrite a newer one&lt;/span&gt;
&lt;span class="c1"&gt;// - update the URL with history.pushState&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It works, and it is how good themes have built cart drawers and filters for years. But it has real costs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;You must know the section ID.&lt;/strong&gt; Section IDs in JSON templates look like &lt;em&gt;template--1234__main&lt;/em&gt;, so themes pass them around through data attributes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You get the whole section back,&lt;/strong&gt; even when only a small part changed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The swap is all yours.&lt;/strong&gt; Parsing HTML, finding the right nodes, replacing them, and keeping several regions in sync is custom code in every theme.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swapping nodes destroys state.&lt;/strong&gt; Focus, text selection, typed form values and scroll position are lost unless you save and restore them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More JavaScript to ship and debug.&lt;/strong&gt; Every theme reinvents the same helpers, with slightly different bugs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What {% partial %} is
&lt;/h2&gt;

&lt;p&gt;A partial is a &lt;strong&gt;named region of server-rendered HTML&lt;/strong&gt; that JavaScript can refresh on its own. You wrap the part of a template that changes and give it a name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight liquid"&gt;&lt;code&gt;&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;partial&lt;/span&gt; &lt;span class="s1"&gt;'product-grid'&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
    &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;render&lt;/span&gt; &lt;span class="s1"&gt;'product-card'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endfor&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endpartial&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three things to understand:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;On first load, nothing is different.&lt;/strong&gt; The content inside a partial is regular Liquid and renders with the rest of the page. Search engines and visitors without JavaScript see the full page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The name is the contract.&lt;/strong&gt; When JavaScript asks for &lt;em&gt;product-grid&lt;/em&gt;, the page rendered for that request must contain a matching &lt;strong&gt;{% partial 'product-grid' %}&lt;/strong&gt;. The name links the region on the page to the region in the response.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wrap only what changes.&lt;/strong&gt; If sorting only changes the grid and the product count, make those two partials, not the whole section.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6frw7154qqaitwvgtirq.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6frw7154qqaitwvgtirq.jpg" alt="How partial rendering works in four steps" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The JavaScript side: @shopify/partial-rendering
&lt;/h2&gt;

&lt;p&gt;The helper exposes a single object, &lt;strong&gt;partials&lt;/strong&gt; , with five methods:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;partials.fetch(...names, { url })&lt;/strong&gt;: requests fresh HTML for one or more named partials, rendered for the URL you pass. It returns an update object.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;partials.apply(update)&lt;/strong&gt;: swaps the matching regions into the page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;partials.refresh(...names)&lt;/strong&gt;: fetch and apply in one call, for the &lt;strong&gt;current&lt;/strong&gt; page URL. Called with no arguments, it refreshes every partial on the page; called with an element, it refreshes only the partials inside that element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;partials.get(name)&lt;/strong&gt;: returns the first matching partial already on the page, without fetching anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;partials.getAll(scope)&lt;/strong&gt;: returns every partial inside a scope. Each result pairs the partial's name with a DOM &lt;em&gt;Range&lt;/em&gt; covering its content.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The most useful detail is what &lt;strong&gt;apply()&lt;/strong&gt; preserves for you: &lt;strong&gt;keyboard focus, text selection, form values and scroll position.&lt;/strong&gt; With the Section Rendering API, that was the code you had to write yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A note on installing it:&lt;/strong&gt; you cannot &lt;em&gt;npm install&lt;/em&gt; this package today. A Shopify engineer confirmed on the developer forum that it is not published to npm; it is &lt;strong&gt;provided at runtime&lt;/strong&gt; to storefronts enrolled in the developer preview. In Shopify's skeleton theme release candidate it is used as a plain ES module import with no build step:&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="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;partials&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;'@shopify/partial-rendering'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your theme uses a bundler such as webpack, treat that import as external for now.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2m8gma1sm6kgqerdlgux.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2m8gma1sm6kgqerdlgux.jpg" alt="The Shopify developer documentation for partials" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Before and after
&lt;/h2&gt;

&lt;p&gt;Here is the same sorting interaction written both ways:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz0uuu1e94syj9rpjib5o.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz0uuu1e94syj9rpjib5o.jpg" alt="Section Rendering API code compared with partial rendering code" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The partial version has no section ID, no HTML parsing, no manual node swapping and no focus or scroll handling. That is less code to write, but more importantly less code to get wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example 1: sorting a collection
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Liquid&lt;/strong&gt; (in the collection template or its main section):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight liquid"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"count"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;partial&lt;/span&gt; &lt;span class="s1"&gt;'product-count'&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
    &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;products_count&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; products
  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endpartial&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"grid"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;partial&lt;/span&gt; &lt;span class="s1"&gt;'product-grid'&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
    &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
      &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;render&lt;/span&gt; &lt;span class="s1"&gt;'product-card'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
    &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endfor&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
  &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endpartial&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;JavaScript:&lt;/strong&gt;&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="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;partials&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;'@shopify/partial-rendering'&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;select&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#sort-by'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;select&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'change'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&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="c1"&gt;// Start from the current URL so locale, market and filters are kept&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&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="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;href&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;searchParams&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'sort_by'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;select&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;value&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;update&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;partials&lt;/span&gt;&lt;span class="p"&gt;.&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;'product-grid'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'product-count'&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;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&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="n"&gt;partials&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;update&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// Keep the address bar in sync so the page can be shared and reloaded&lt;/span&gt;
  &lt;span class="n"&gt;history&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pushState&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="s1"&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="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;Shopify's docs stress one point here: &lt;strong&gt;build the request URL from the current URL&lt;/strong&gt; (or the &lt;em&gt;routes&lt;/em&gt; object), never from a hardcoded path. That way the request keeps the shopper's language, market and existing filters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example 2: filters that update several regions at once
&lt;/h2&gt;

&lt;p&gt;When a shopper ticks a filter, more than one part of the page changes: the grid, the count, and the list of active filter pills. Fetch them &lt;strong&gt;together&lt;/strong&gt; , so a single response keeps them consistent:&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="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;applyFilters&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;update&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;partials&lt;/span&gt;&lt;span class="p"&gt;.&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;'product-grid'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'product-count'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'active-filters'&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;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&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="n"&gt;partials&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;update&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;Fetching them separately risks a mismatch, for example a count that says 12 products above a grid that shows 9.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example 3: a cart drawer
&lt;/h2&gt;

&lt;p&gt;For the cart, change the cart through the Cart API first, then refresh the regions that show it. Because the cart lives on the server, a refresh for the current page returns the updated cart markup:&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="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;changeQuantity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;)&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="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Shopify&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;routes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s1"&gt;'cart/change.js'&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'&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;line&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;quantity&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="c1"&gt;// Re-render the drawer and the header count from the server's Liquid&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;partials&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;refresh&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'cart-drawer'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'cart-count'&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 assumes both partials are rendered on the current page, for example a drawer and a counter output in the header. Shopify's docs flag one catch: &lt;strong&gt;apply() keeps form values as they are,&lt;/strong&gt; so if the server changed a quantity (because stock ran out, say), update that input yourself after the refresh.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example 4: back and forward buttons
&lt;/h2&gt;

&lt;p&gt;When the shopper presses Back after filtering, the URL changes but the page does not. Refresh the partials for the restored URL:&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="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'popstate'&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="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;partials&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;refresh&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'product-grid'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'product-count'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'active-filters'&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Smooth transitions with the View Transitions API
&lt;/h2&gt;

&lt;p&gt;By default, &lt;strong&gt;apply()&lt;/strong&gt; swaps content instantly. To animate the change, wrap it in a view transition, with a fallback for browsers that do not support 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="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;startViewTransition&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startViewTransition&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="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;partials&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;update&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;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;partials&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;update&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;h2&gt;
  
  
  What apply() keeps, and what is still your job
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Kept automatically:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;focus, so keyboard users do not get thrown back to the top of the page;&lt;/li&gt;
&lt;li&gt;text selection;&lt;/li&gt;
&lt;li&gt;values typed into inputs, textareas and selects;&lt;/li&gt;
&lt;li&gt;scroll position.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Still yours to handle:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Values the server changed.&lt;/strong&gt; Because typed values are preserved, a quantity corrected by the server will not overwrite the input. Set it after &lt;strong&gt;apply()&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UI state that only exists in the DOM,&lt;/strong&gt; such as an open disclosure or accordion. Restore it after the swap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;References to old nodes.&lt;/strong&gt; The swap replaces elements, so a variable pointing at the old element now points at a detached node. Shopify's own skeleton theme re-queries elements after a refresh for exactly this reason.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stale responses.&lt;/strong&gt; If a shopper clicks quickly, an older, slower request can finish last. Shopify recommends cancelling in-flight requests with an AbortSignal when a new interaction starts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accessibility.&lt;/strong&gt; Set &lt;strong&gt;aria-busy&lt;/strong&gt; on a region while it updates, and announce meaningful results ("12 products found") in a live region.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Section Rendering API vs {% partial %}
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Section Rendering API&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generally available, production-ready, and works today on every store.&lt;/li&gt;
&lt;li&gt;Targets a &lt;strong&gt;section&lt;/strong&gt; , by its ID.&lt;/li&gt;
&lt;li&gt;Returns the section's HTML; you parse it and swap it.&lt;/li&gt;
&lt;li&gt;Focus, scroll and form state are lost unless you restore them.&lt;/li&gt;
&lt;li&gt;Keeping several regions in sync is manual.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;{% partial %} with @shopify/partial-rendering&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Developer preview, development stores only.&lt;/li&gt;
&lt;li&gt;Targets &lt;strong&gt;any named region&lt;/strong&gt; , as small as you like.&lt;/li&gt;
&lt;li&gt;Fetch and swap are built in.&lt;/li&gt;
&lt;li&gt;Focus, selection, form values and scroll are preserved.&lt;/li&gt;
&lt;li&gt;Several regions come back in one consistent response.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Best practices
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Keep partials small.&lt;/strong&gt; Wrap what changes, not the whole section.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Name partials by meaning,&lt;/strong&gt; such as &lt;em&gt;product-grid&lt;/em&gt;, &lt;em&gt;cart-count&lt;/em&gt; or &lt;em&gt;active-filters&lt;/em&gt;, not by position on the page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fetch related regions together&lt;/strong&gt; so they never disagree.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build URLs from the current URL or routes,&lt;/strong&gt; never hardcoded paths, so locales and markets keep working.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the URL in sync&lt;/strong&gt; with &lt;em&gt;history.pushState&lt;/em&gt; and read state from &lt;em&gt;window.location.search&lt;/em&gt;, so shared links and the back button behave.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not drop progressive enhancement.&lt;/strong&gt; Filters should still work as plain links or form submits without JavaScript; partials make them faster, not possible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-query elements after a swap&lt;/strong&gt; instead of holding references.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to try it today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Create a &lt;strong&gt;development store&lt;/strong&gt; with the &lt;strong&gt;"Liquid July '26"&lt;/strong&gt; developer preview enabled.&lt;/li&gt;
&lt;li&gt;Start from Shopify's &lt;strong&gt;skeleton theme release candidate&lt;/strong&gt; (the &lt;em&gt;rc-v2.0.0&lt;/em&gt; branch on GitHub), or add the tags to your own theme.&lt;/li&gt;
&lt;li&gt;Update &lt;strong&gt;Theme Check&lt;/strong&gt; to 3.28.0 or later, which adds rules for the new Liquid-first features.&lt;/li&gt;
&lt;li&gt;If the code editor flags &lt;em&gt;partial&lt;/em&gt; as an unknown tag, check that the preview is enabled on that store; developers on the community forum hit exactly this.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The same preview also adds a &lt;strong&gt;{% block %}&lt;/strong&gt; tag for rendering theme blocks directly from a Liquid template, which is part of the same shift towards themes written in Liquid rather than JSON templates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should you switch?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Not for live stores yet.&lt;/strong&gt; It is a preview, and the API can still change. But it is worth preparing now:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When you next build a cart drawer or filters with the Section Rendering API, structure the markup so the changing regions are small and clearly separated. Moving them into partials later then becomes a small change.&lt;/li&gt;
&lt;li&gt;Try partials on a development store so you understand the model before it ships.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When it reaches general availability, I expect most new themes to use it for carts, filters and search: less JavaScript, fewer bugs, and the server stays the single source of truth for markup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sources:&lt;/strong&gt; &lt;a href="https://shopify.dev/changelog/developer-preview-liquid-block-and-partial-tags" rel="noopener noreferrer"&gt;Shopify changelog: Liquid templates can now compose pages with blocks and partials&lt;/a&gt;, &lt;a href="https://shopify.dev/docs/storefronts/themes/architecture/partials" rel="noopener noreferrer"&gt;Shopify docs: Partials&lt;/a&gt;, &lt;a href="https://shopify.dev/docs/storefronts/themes/getting-started/developer-preview/partial" rel="noopener noreferrer"&gt;Shopify docs: the partial tag (developer preview)&lt;/a&gt;, &lt;a href="https://shopify.dev/docs/api/liquid/tags/partial" rel="noopener noreferrer"&gt;Liquid reference: partial&lt;/a&gt;, &lt;a href="https://community.shopify.dev/t/shopify-partial-rendering-package-doesnt-exist-on-npm/36228" rel="noopener noreferrer"&gt;Shopify developer community: @shopify/partial-rendering is not on npm&lt;/a&gt;, &lt;a href="https://github.com/Shopify/skeleton-theme/tree/rc-v2.0.0" rel="noopener noreferrer"&gt;Shopify skeleton theme release candidate&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let's Work Together
&lt;/h2&gt;

&lt;p&gt;To do work with me, contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/shopify-partial-tag" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/shopify-partial-tag&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>liquid</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Webhooks in Next.js Route Handlers: Verify, Answer Fast, Work After</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 05:51:39 +0000</pubDate>
      <link>https://dev.to/hassaanistic/webhooks-in-nextjs-route-handlers-verify-answer-fast-work-after-29e1</link>
      <guid>https://dev.to/hassaanistic/webhooks-in-nextjs-route-handlers-verify-answer-fast-work-after-29e1</guid>
      <description>&lt;p&gt;In &lt;a href="https://www.eventsiq.io" rel="noopener noreferrer"&gt;EventsIQ&lt;/a&gt;, leads arrive by webhook. Meta, TikTok, Snapchat and Google each call a URL the moment someone fills in a lead form. Every lead is money, so the webhook handlers are some of the most careful code in the app.&lt;/p&gt;

&lt;p&gt;These are Next.js App Router route handlers. Here is what I learned building them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The basic shape
&lt;/h2&gt;

&lt;p&gt;A webhook handler has four jobs, in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Read the raw body.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Check it really came from the sender.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reply quickly&lt;/strong&gt; , with the status code the sender expects.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Do the slow work afterwards.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The interesting part is where "store the lead" goes, and that depends on the sender.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the raw body first
&lt;/h2&gt;

&lt;p&gt;Signatures are computed over the exact bytes that were sent. If you parse the JSON first and turn it back into a string, the bytes can change (spacing, key order, number formats) and a valid signature stops matching.&lt;/p&gt;

&lt;p&gt;So always start with &lt;code&gt;request.text()&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;dynamic&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"force-dynamic"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;POST&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Request&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;rawBody&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;request&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="c1"&gt;// before any parsing&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;request&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="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"x-hub-signature-256"&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="nf"&gt;verifyMetaSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rawBody&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;signature&lt;/span&gt;&lt;span class="p"&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;FACEBOOK_APP_SECRET&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;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Invalid signature"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;403&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;payload&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="n"&gt;rawBody&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Stripe works the same way. If your Stripe webhook ever said "No signatures found matching the expected signature", this is usually why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare signatures in constant time
&lt;/h2&gt;

&lt;p&gt;Meta signs each delivery with your app secret using HMAC SHA-256. The check is short, but use a constant-time comparison. A normal &lt;code&gt;===&lt;/code&gt; stops at the first different character, which can leak how much of a guess was right.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;createHmac&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timingSafeEqual&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"crypto"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;verifyMetaSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rawBody&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&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="n"&gt;secret&lt;/span&gt;&lt;span class="o"&gt;?:&lt;/span&gt; &lt;span class="kt"&gt;string&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;header&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;secret&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&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;algorithm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;provided&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&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="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;algorithm&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s2"&gt;"sha256"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;provided&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&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;expected&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;createHmac&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"sha256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;secret&lt;/span&gt;&lt;span class="p"&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="n"&gt;rawBody&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"utf8"&lt;/span&gt;&lt;span class="p"&gt;)&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="s2"&gt;"hex"&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;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected&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;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;provided&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nf"&gt;timingSafeEqual&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&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;Not every sender signs. Google lead form webhooks put a key you choose inside the body as &lt;code&gt;google_key&lt;/code&gt;. Anyone who has that key can send a fake lead, so compare it in constant time too, and keep it encrypted in your database.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two senders, two contracts
&lt;/h2&gt;

&lt;p&gt;This is the part that surprised me. "Return 200 fast and do the work later" is the usual advice, but whether it is safe depends on what happens if you lose the work.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkw4se02waerqnz2eqodd.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkw4se02waerqnz2eqodd.webp" alt="Meta: reply 200 straight away and fetch the lead later, because a sweep catches anything missed. Google: store the lead first, then 200, because a 5xx is the only way to get it again." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Meta: reply first
&lt;/h3&gt;

&lt;p&gt;A Meta lead webhook does not contain the lead. It carries a &lt;code&gt;leadgen_id&lt;/code&gt;, and you fetch the lead from the Graph API with the Page's token. Meta retries on any non-2xx and expects a quick answer.&lt;/p&gt;

&lt;p&gt;Meta also lets you list a form's leads later. So EventsIQ runs a reconcile sweep that fetches anything a webhook missed. With that safety net, the handler can reply 200 straight away and do everything else in &lt;code&gt;after()&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Google: store first
&lt;/h3&gt;

&lt;p&gt;Google lead forms send the full lead in the webhook, and Google has no API to read submissions later. If you do not store the lead during the request, it is gone.&lt;/p&gt;

&lt;p&gt;Google's contract is clear:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;200&lt;/strong&gt; : stored, or recognised as a duplicate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4xx&lt;/strong&gt; : permanently wrong (bad key, unknown form). Do not retry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;5xx&lt;/strong&gt; : we broke. Please retry.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the Google handler &lt;strong&gt;writes the lead before it replies&lt;/strong&gt;. If the database write fails, it can honestly answer 5xx and Google sends the lead again. Only the slow routing is deferred.&lt;/p&gt;

&lt;p&gt;The lesson: decide per sender. If you have a second way to get the data, reply first. If you do not, store first and use status codes as your safety net.&lt;/p&gt;

&lt;h2&gt;
  
  
  Move slow work into after()
&lt;/h2&gt;

&lt;p&gt;Next.js has &lt;code&gt;after()&lt;/code&gt; from &lt;code&gt;next/server&lt;/code&gt;. It runs a function after the response has been sent, and the platform keeps the function alive until it finishes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;after&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"next/server"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nc"&gt;POST&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Request&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;rawBody&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;request&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="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="nf"&gt;verifyMetaSignature&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rawBody&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;request&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="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"x-hub-signature-256"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&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;FACEBOOK_APP_SECRET&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;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Invalid signature"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;403&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;events&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;parseLeadgenEvents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rawBody&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="k"&gt;async&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="c1"&gt;// A few at a time: busy forms send several leads in one delivery.&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;mapWithConcurrency&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;events&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&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="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;processLeadgenEvent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// fetch from Graph, store, route&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="c1"&gt;// One bad event must not stop the rest. The sweep will see it again.&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;return&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;received&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="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;Three details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Limit concurrency.&lt;/strong&gt; Meta batches leads from busy forms into one delivery. Run a few at a time, not all at once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Catch per item.&lt;/strong&gt; One broken event should never stop the rest of the batch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reply 200 to junk you cannot fix.&lt;/strong&gt; If the body is not valid JSON, retrying will not help. Acknowledge it and log it, or the sender will retry forever.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Deduplicate with the sender's own id
&lt;/h2&gt;

&lt;p&gt;Every sender says the same thing in its docs: a webhook may arrive more than once. Use the sender's id as a unique key in the database: &lt;code&gt;leadgen_id&lt;/code&gt; for Meta, Google's lead id for Google. A second delivery then hits the unique index and becomes a no-op, and you still answer 200.&lt;/p&gt;

&lt;h2&gt;
  
  
  Only keep what is yours
&lt;/h2&gt;

&lt;p&gt;Meta subscriptions are per Page, not per form. Once a Page is subscribed, events arrive for every lead form on it, including forms the customer never connected to EventsIQ. If an event does not match a form someone connected, drop it &lt;strong&gt;without fetching the lead&lt;/strong&gt;. Storing another business's personal data because you share a Page is a privacy problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep webhook routes public
&lt;/h2&gt;

&lt;p&gt;Webhook URLs must not sit behind your login. If your &lt;code&gt;proxy.ts&lt;/code&gt; (formerly middleware) protects routes, make sure the webhook paths are outside its list, or the sender gets a sign-in page instead of your handler. In EventsIQ the proxy matcher skips &lt;code&gt;/api&lt;/code&gt; entirely, and every webhook proves itself by signature or key instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Read the raw body before parsing.&lt;/li&gt;
&lt;li&gt;Verify the signature or key, in constant time.&lt;/li&gt;
&lt;li&gt;Store before replying when the sender gives you no second chance. Otherwise reply first.&lt;/li&gt;
&lt;li&gt;Use status codes the way the sender documents them.&lt;/li&gt;
&lt;li&gt;Put slow work in &lt;code&gt;after()&lt;/code&gt;, with limited concurrency and a try/catch per item.&lt;/li&gt;
&lt;li&gt;Deduplicate on the sender's own id.&lt;/li&gt;
&lt;li&gt;Drop events you have no right to keep.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Let's Work Together
&lt;/h2&gt;

&lt;p&gt;If you are building integrations that receive webhooks, contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/nextjs-webhooks-route-handlers" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/nextjs-webhooks-route-handlers&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Klarna Won't Take Clinic Treatments? Use Humm on Shopify Instead</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Wed, 25 Nov 2026 05:50:46 +0000</pubDate>
      <link>https://dev.to/hassaanistic/klarna-wont-take-clinic-treatments-use-humm-on-shopify-instead-1oa8</link>
      <guid>https://dev.to/hassaanistic/klarna-wont-take-clinic-treatments-use-humm-on-shopify-instead-1oa8</guid>
      <description>&lt;p&gt;I have just launched &lt;a href="https://medicalskinclinic.ie" rel="noopener noreferrer"&gt;Medical Skin Clinic&lt;/a&gt;, a Shopify store for a doctor-led skin clinic in Donegal, Ireland. It is one website with two halves: the clinic, where patients read about treatments and book a consultation, and a skincare shop with clinic-approved brands.&lt;/p&gt;

&lt;p&gt;Near launch, the clinic asked for one more thing at checkout: a way for patients to spread the cost. The obvious choice was Klarna, since it comes with Shopify Payments. It did not work out for the treatment side of the business. This post explains why that happens to clinics, and how we used &lt;strong&gt;Humm&lt;/strong&gt; instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Klarna is a problem for clinics
&lt;/h2&gt;

&lt;p&gt;Klarna publishes a list of &lt;a href="https://docs.klarna.com/resources/legal-and-compliance/policies-and-term-of-service/ethical-instructions" rel="noopener noreferrer"&gt;prohibited and restricted businesses&lt;/a&gt;. &lt;strong&gt;Medical treatments and services&lt;/strong&gt; are on the restricted list, next to medical devices and prescription pharmacies.&lt;/p&gt;

&lt;p&gt;Restricted does not always mean banned. Klarna says businesses in these categories may need extra checks, such as licence verification and a review of the business model, before they are approved. In practice that means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a skincare shop selling cleansers and SPF usually has no trouble;&lt;/li&gt;
&lt;li&gt;a clinic selling treatments, courses or treatment vouchers can be refused, or held in review for a long time;&lt;/li&gt;
&lt;li&gt;the decision is made on the business, so you cannot fix it in the theme.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Klarna's advertising rules also bar ads for medical procedures. So even where a clinic is approved, Klarna's own marketing tools will not promote the treatments.&lt;/p&gt;

&lt;p&gt;If you build for clinics, aesthetics practices or dentists, plan for this early. Do not promise a client Klarna for treatments until Klarna has actually approved them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Humm is
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh8zrszr6soaxkm2ykuad.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh8zrszr6soaxkm2ykuad.jpg" alt="Shopify checkout on a laptop and a phone with Humm selected as the payment method" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shophumm.com/ie/how-it-works/" rel="noopener noreferrer"&gt;Humm&lt;/a&gt; is a buy now, pay later lender that works in Ireland, the UK and Canada. In Ireland it is underwritten by FlexiFi Europe Limited and regulated by the Central Bank of Ireland. Health, beauty and clinics are a normal part of its business: several Irish clinics already offer it in person.&lt;/p&gt;

&lt;p&gt;For the patient, it works like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;They apply once through Humm and get a spending limit.&lt;/li&gt;
&lt;li&gt;At checkout they pick Humm and are sent to Humm's page to confirm.&lt;/li&gt;
&lt;li&gt;They repay in instalments. Humm's own site gives the ranges: from €80 to €499.99 paid fortnightly or monthly, €500 to €999.99 over 6 to 12 months, and €1,000 and over across 24 to 72 months.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The clinic is paid by Humm, and Humm carries the repayments. That suits treatments well: a course of laser or a skin booster plan often costs more than a typical skincare basket.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding Humm to a Shopify store
&lt;/h2&gt;

&lt;p&gt;Humm has a Shopify payment app called &lt;a href="https://apps.shopify.com/humm-ie-uk-ca-payment-app" rel="noopener noreferrer"&gt;Humm IE, UK &amp;amp; CA Payment App&lt;/a&gt;. It adds Humm as an extra payment method in Shopify's own checkout, next to cards and Shopify Payments. There is no theme code involved. These are the steps we followed.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Apply with Humm as a merchant
&lt;/h3&gt;

&lt;p&gt;The business applies to Humm, not the developer. Once Humm approves the clinic, it sends the merchant details the app needs, such as the merchant or client ID and a secret key. Treat these like a password: keep them out of chat threads and shared documents that many people can open.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The store owner installs the app
&lt;/h3&gt;

&lt;p&gt;This is the step that caught us out. &lt;strong&gt;Payment apps can only be installed by the store owner.&lt;/strong&gt; As a developer with a staff account, I could not install it myself, even with full permissions on everything else.&lt;/p&gt;

&lt;p&gt;So the clinic owner installed it while logged in to their own account. If you are the developer, send the owner the app link and a short list of what to enter, and stay on a call if that helps.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Enter the details and choose the region
&lt;/h3&gt;

&lt;p&gt;In the app's settings:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;choose &lt;strong&gt;Ireland&lt;/strong&gt; as the region (the same app serves the UK and Canada);&lt;/li&gt;
&lt;li&gt;paste in the merchant details from Humm;&lt;/li&gt;
&lt;li&gt;use the test (sandbox) mode first if Humm has given test details;&lt;/li&gt;
&lt;li&gt;switch to &lt;strong&gt;Production&lt;/strong&gt; and set the method to &lt;strong&gt;Active&lt;/strong&gt; when you are ready to go live.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Check it in Shopify's payment settings
&lt;/h3&gt;

&lt;p&gt;In Shopify admin go to &lt;strong&gt;Settings &amp;gt; Payments&lt;/strong&gt;. Humm should now appear under the additional payment methods. Make sure it is turned on there too.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Test a real checkout
&lt;/h3&gt;

&lt;p&gt;Add a product to the cart, go to checkout, and confirm Humm shows as a payment option. You do not need to finish the order to see it. On Medical Skin Clinic, Humm appeared at checkout as soon as the owner activated it, alongside Shopify Payments.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things to check before launch
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Minimum amounts.&lt;/strong&gt; Humm's plans start at €80. A €20 cleanser will not qualify on its own, so do not promise "pay later on everything".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wording.&lt;/strong&gt; Keep it simple, for example "Spread the cost with Humm". Avoid wording that makes credit sound like a medical recommendation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Refunds.&lt;/strong&gt; The app supports refunds from Shopify admin. Show the clinic staff how to do one before the first real order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The rest of the Shopify Payments setup.&lt;/strong&gt; Humm sits next to Shopify Payments, not in place of it. Cards, Apple Pay and Google Pay keep working as before.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who supports it.&lt;/strong&gt; Problems with an application or an instalment plan go to Humm, not to the clinic or the developer. Put Humm's contact page in the clinic's FAQ.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;Buy now, pay later is not one product. Each lender decides which businesses it will serve, and medical treatments sit in a grey area for many of them. For a clinic in Ireland, Humm was the provider that accepted the treatment side of the business and plugged straight into Shopify's checkout.&lt;/p&gt;

&lt;p&gt;If you are building a store for a clinic, ask about payment plans in the first meeting, check the lender's restricted list, and leave time for the owner to install the payment app. It is a small step, but only the owner can do it.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/humm-buy-now-pay-later-clinic-treatments" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/humm-buy-now-pay-later-clinic-treatments&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>ecommerce</category>
      <category>webdev</category>
      <category>payments</category>
    </item>
    <item>
      <title>The Last-Minute Black Friday Checklist for Shopify Developers</title>
      <dc:creator>Muhammad Hassaan Anjum</dc:creator>
      <pubDate>Tue, 24 Nov 2026 00:00:00 +0000</pubDate>
      <link>https://dev.to/hassaanistic/the-last-minute-black-friday-checklist-for-shopify-developers-hfk</link>
      <guid>https://dev.to/hassaanistic/the-last-minute-black-friday-checklist-for-shopify-developers-hfk</guid>
      <description>&lt;p&gt;&lt;strong&gt;Black Friday is on Friday 27 November 2026 and Cyber Monday on Monday 30 November.&lt;/strong&gt; If you look after Shopify stores, the next few days are not the time for big new features. They are the time to make sure the things that already work keep working when traffic jumps.&lt;/p&gt;

&lt;p&gt;This is the checklist I run on the stores I look after before the Black Friday weekend. It is written for developers and technical store owners, it is ordered by risk, and every item is something you can still do this week.&lt;/p&gt;

&lt;p&gt;The short version:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Freeze the live theme and take a backup you can restore in one click.&lt;/li&gt;
&lt;li&gt;Test every path that touches money, on a real phone.&lt;/li&gt;
&lt;li&gt;Check that discounts combine the way the merchant thinks they do.&lt;/li&gt;
&lt;li&gt;Trim the theme: images, Liquid loops and third-party scripts.&lt;/li&gt;
&lt;li&gt;Audit apps, app embeds and anything left behind by apps you removed.&lt;/li&gt;
&lt;li&gt;Make sure webhooks and integrations will not fall over under load.&lt;/li&gt;
&lt;li&gt;Know what your tracking numbers really mean this year.&lt;/li&gt;
&lt;li&gt;Write down the plan for the weekend, including how to roll back.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  1. Freeze the theme and take a real backup
&lt;/h2&gt;

&lt;p&gt;The single most useful thing you can do is stop editing the live theme.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Agree a code freeze date with the merchant.&lt;/strong&gt; I suggest the Tuesday or Wednesday before Black Friday. After that, only urgent fixes go live, and only after testing on a copy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Duplicate the live theme in the admin&lt;/strong&gt; (Online Store → Themes → the live theme's menu → Duplicate) and rename the copy clearly, for example &lt;code&gt;LIVE BACKUP 24 Nov 2026&lt;/code&gt;. If anything goes wrong over the weekend, publishing this copy is your rollback.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pull a copy into git as well.&lt;/strong&gt; A duplicated theme protects you from bad edits. A git copy also shows you exactly what changed.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Pull the live theme into a clean folder and commit it&lt;/span&gt;
mkdir store-backup &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; store-backup
shopify theme pull --live --store your-store.myshopify.com
git init &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; git add . &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; git commit -m &lt;span class="s2"&gt;"Live theme before Black Friday 2026"&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Do sale work on an unpublished theme.&lt;/strong&gt; Banners, sale badges and homepage changes go on a duplicate. Preview it with the share link, get the merchant to approve it, then publish it at the agreed time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On Shopify Plus, use Launchpad&lt;/strong&gt; to schedule the theme switch, discounts and product changes, so nobody has to publish things by hand at midnight.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Remember the theme editor.&lt;/strong&gt; Many "theme bugs" are really a merchant changing section settings in the customiser. Ask the merchant and their team not to make unplanned changes in the theme editor during the freeze either.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Test every path that touches money
&lt;/h2&gt;

&lt;p&gt;Do this on a real phone, on mobile data, not only in desktop Chrome. Most Black Friday traffic is on mobile.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Product page&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every variant can be selected, and the price, image and stock state update correctly.&lt;/li&gt;
&lt;li&gt;Sale prices show the compare-at price, and the saving is worked out correctly.&lt;/li&gt;
&lt;li&gt;Add to cart works for in-stock, low-stock and sold-out variants. Sold-out variants should be clearly disabled, not silently fail.&lt;/li&gt;
&lt;li&gt;Any custom product fields (engraving text, line item properties) reach the cart and the order.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cart and cart drawer&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Quantity changes, removing items and discount messages update without a page reload.&lt;/li&gt;
&lt;li&gt;The cart drawer opens after add to cart on every template that has an add to cart button, including quick add on collection pages.&lt;/li&gt;
&lt;li&gt;Upsells and free-shipping progress bars use the same total the checkout will use.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you have custom add to cart code, check that it handles errors. Under load, or when stock runs out, &lt;code&gt;/cart/add.js&lt;/code&gt; returns an error response and your code must show the message rather than leaving a spinner running:&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="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;addToCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;variantId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;quantity&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="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Shopify&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;routes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"cart/add.js"&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="s2"&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="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Accept&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&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;items&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;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;variantId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;quantity&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&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="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// e.g. "You can only add 2 of this item to your cart."&lt;/span&gt;
    &lt;span class="nf"&gt;showCartError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;description&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s2"&gt;"Could not add this item."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&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="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&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;strong&gt;Checkout&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Place real test orders with each payment method the store offers: cards, Shop Pay, PayPal, buy now pay later and any local methods. Refund them afterwards.&lt;/li&gt;
&lt;li&gt;Check shipping rates for every zone the merchant sells to, including free-shipping thresholds that change for the sale.&lt;/li&gt;
&lt;li&gt;Check taxes and duties for the main markets.&lt;/li&gt;
&lt;li&gt;Check the order confirmation email and the order status page, especially if they were customised.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Inventory&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Check the &lt;strong&gt;"Continue selling when out of stock"&lt;/strong&gt; setting on the best sellers. One wrong tick on a popular product can mean hundreds of orders you cannot fulfil.&lt;/li&gt;
&lt;li&gt;If the merchant has stock in several locations, check which locations fulfil online orders.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Check that discounts combine the way the merchant expects
&lt;/h2&gt;

&lt;p&gt;Discounts cause more Black Friday support tickets than anything else I see.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;List every active and scheduled discount&lt;/strong&gt; , with start and end times in the store's time zone. Old codes from previous campaigns are often still active.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check combinations.&lt;/strong&gt; Shopify lets product, order and shipping discounts combine depending on each discount's settings. Test the real customer cases: a sitewide automatic discount plus an influencer code, a sale price plus a code, free shipping plus a percentage off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test the end time.&lt;/strong&gt; If the sale ends at midnight on Cyber Monday, confirm that is midnight in the store's time zone, not yours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check minimum order amounts&lt;/strong&gt; against the currencies the store sells in, if it uses Shopify Markets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch for stacking with apps.&lt;/strong&gt; Bundle, volume discount and upsell apps can apply their own discounts on top of yours.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Write the expected result down for each case (for example "£80 cart, BF25 code, sitewide 10% off: total should be £..."), then test it at checkout. A written list turns arguments into checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Trim the theme
&lt;/h2&gt;

&lt;p&gt;You will not rebuild a theme this week, but small changes can still make a noticeable difference.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Images&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most slow product and collection pages are slow because of images. Make sure every image is served at the size it is shown, with lazy loading for everything below the fold:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight liquid"&gt;&lt;code&gt;&lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;comment&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="cp"&gt;%}&lt;/span&gt; Product card image: responsive sizes, lazy loaded &lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;endcomment&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;span class="cp"&gt;{{&lt;/span&gt;
  &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;featured_image&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;image_url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;900&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;image_tag&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;loading&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'lazy'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;widths&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'300, 450, 600, 900'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;sizes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'(min-width: 990px) 25vw, 50vw'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;alt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;featured_image&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;alt&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;escape&lt;/span&gt;
&lt;span class="cp"&gt;}}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the main hero or main product image (usually your Largest Contentful Paint element), do the opposite: &lt;strong&gt;do not&lt;/strong&gt; lazy load it, and ask the browser to fetch it early:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight liquid"&gt;&lt;code&gt;&lt;span class="cp"&gt;{{&lt;/span&gt;
  &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;image&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;image_url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1800&lt;/span&gt;
  &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="n"&gt;image_tag&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;preload&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="n"&gt;fetchpriority&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'high'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;widths&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'750, 1100, 1500, 1800'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;sizes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'100vw'&lt;/span&gt;
&lt;span class="cp"&gt;}}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A new Black Friday hero banner uploaded as a 6 MB PNG can undo months of performance work. Check sale banners in particular.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Liquid&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Avoid looping over large collections to find a few products. Loops over &lt;code&gt;collections.all.products&lt;/code&gt; or a big collection on every page are slow and can hit limits. Use product or collection settings, metafields, or the &lt;code&gt;recommendations&lt;/code&gt; object instead.&lt;/li&gt;
&lt;li&gt;Do not nest loops (for example, every product × every tag × every variant) on collection pages.&lt;/li&gt;
&lt;li&gt;Run Theme Check before you publish anything:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;shopify theme check

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Third-party scripts&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open the store in Chrome DevTools → Network, filter by JS, and list every script that is not from Shopify or the theme. Each one should map to an app or tool the merchant actually uses this week.&lt;/li&gt;
&lt;li&gt;Load chat widgets, review widgets and similar tools with &lt;code&gt;defer&lt;/code&gt;, or only after user interaction, where the tool allows it.&lt;/li&gt;
&lt;li&gt;Check Shopify's web performance dashboard in the admin and run Lighthouse on mobile for the homepage, a collection page and a best-selling product page. Fix the worst page first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Audit apps and leftover app code
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;List the installed apps&lt;/strong&gt; and ask the merchant which ones they really use. Remove the rest now, not in January. Some apps add scripts to every page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check app embeds&lt;/strong&gt; in the theme editor (App embeds). Turn off any that belong to removed or unused apps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search the theme for leftovers.&lt;/strong&gt; Older apps sometimes added code directly to &lt;code&gt;theme.liquid&lt;/code&gt;, snippets or templates, and uninstalling the app does not remove it. Search for the app's name or its script domain and remove dead code on the backup-tested copy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look for overlaps.&lt;/strong&gt; As I covered in my &lt;a href="https://www.hassaanistic.com/blogs/shopify-fall-2026-updates" rel="noopener noreferrer"&gt;Fall '26 Edition post&lt;/a&gt;, Shopify now offers more built-in fraud rules, search and messaging tools. Two apps doing the same job on the same page is a common cause of slow pages and broken carts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;If you build public apps:&lt;/strong&gt; the IP allowlist deadline for public apps passed on 20 November (12 November for apps using bulk operations). If you have not confirmed your app is compliant, do that before the weekend. Shopify also now lets apps reduce their access scopes from write to read, which is worth doing for any scope you no longer need.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Make sure webhooks and integrations survive the spike
&lt;/h2&gt;

&lt;p&gt;Order volume can be many times a normal day. Any system that listens to Shopify, such as ERPs, fulfilment, CRMs, review requests or custom apps, will get many times more webhooks.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Respond fast.&lt;/strong&gt; Shopify expects your webhook endpoint to respond quickly, within a few seconds, and retries failed deliveries. Verify the HMAC, store or queue the payload, return &lt;code&gt;200&lt;/code&gt;, and do the slow work afterwards. I wrote about that pattern in &lt;a href="https://www.hassaanistic.com/blogs/nextjs-webhooks-route-handlers" rel="noopener noreferrer"&gt;Handling Webhooks in Next.js Route Handlers&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Be idempotent.&lt;/strong&gt; Retries mean the same order webhook can arrive more than once. Use the &lt;code&gt;X-Shopify-Webhook-Id&lt;/code&gt; header or the order ID to skip duplicates, so you never create two shipments or send two emails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch rate limits.&lt;/strong&gt; If your integration calls the Admin API for every order, a spike can hit API rate limits. Batch the calls, back off and retry on throttling, or move heavy jobs into a queue.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check background jobs.&lt;/strong&gt; Cron jobs that sync stock or prices should not run long, overlapping jobs during peak hours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check your hosting limits.&lt;/strong&gt; Serverless functions, database connection limits and third-party API quotas can all become the bottleneck before Shopify does.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7. Know what your tracking numbers mean this year
&lt;/h2&gt;

&lt;p&gt;Every merchant will look at their ad dashboards on Saturday morning. Make sure the numbers can be trusted.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Test the purchase event end to end.&lt;/strong&gt; Place a test order and confirm the Purchase event reaches each ad platform once, with the correct value and currency, through the pixel and through the server-side integration (for example the Meta Conversions API).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check for duplicate pixels.&lt;/strong&gt; A pixel added by an app and again by hand in &lt;code&gt;theme.liquid&lt;/code&gt; or Customer events will double count purchases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Know Meta's November change.&lt;/strong&gt; From 12 November 2026, Meta reportedly measures some purchases on the shopper's device, switched on by default unless advertisers opt out. Reported conversions may rise without real sales rising. Compare Meta's numbers against Shopify's own orders before deciding which campaigns "won".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep UTMs and click IDs intact.&lt;/strong&gt; If you send traffic through redirects or link shorteners, confirm &lt;code&gt;fbclid&lt;/code&gt;, &lt;code&gt;gclid&lt;/code&gt; and &lt;code&gt;ttclid&lt;/code&gt; survive to the landing page. My posts on &lt;a href="https://www.hassaanistic.com/blogs/click-ids-across-ad-platforms" rel="noopener noreferrer"&gt;click IDs across ad platforms&lt;/a&gt; and &lt;a href="https://www.hassaanistic.com/blogs/sending-conversions-back-to-ad-networks" rel="noopener noreferrer"&gt;sending conversions back to ad networks&lt;/a&gt; go into the details.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  8. Handle sale content in a cache-safe way
&lt;/h2&gt;

&lt;p&gt;Countdown timers and "sale starts at midnight" banners are where theme code and caching meet.&lt;/p&gt;

&lt;p&gt;Shopify caches rendered storefront pages, so Liquid logic based on the current time (&lt;code&gt;'now' | date&lt;/code&gt;) may show a cached result to some visitors. For anything that must switch at an exact time, render the content in Liquid and let the browser decide when to show it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight liquid"&gt;&lt;code&gt;&lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;comment&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="cp"&gt;%}&lt;/span&gt; sections/sale-countdown.liquid &lt;span class="cp"&gt;{%&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;endcomment&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"sale-countdown"&lt;/span&gt; &lt;span class="na"&gt;data-ends&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{{ section.settings.ends_at }}"&lt;/span&gt; &lt;span class="na"&gt;hidden&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="n"&gt;section&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;data-countdown&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&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;var&lt;/span&gt; &lt;span class="n"&gt;el&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;currentScript&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;previousElementSibling&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;ends&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;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dataset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ends&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;ends&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;var&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"[data-countdown]"&lt;/span&gt;&lt;span class="p"&gt;)&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;tick&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;var&lt;/span&gt; &lt;span class="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ends&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="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;left&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&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="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;h&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="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;3600000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;m&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="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;left&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;3600000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;60000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"h "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"m"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hidden&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tick&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="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nf"&gt;tick&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="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;schema&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
{
  "name": "Sale countdown",
  "settings": [
    { "type": "text", "id": "text", "label": "Text", "default": "Black Friday ends in" },
    { "type": "text", "id": "ends_at", "label": "End time (ISO, with time zone)", "default": "2026-12-01T00:00:00+00:00" }
  ]
}
&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="n"&gt;endschema&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few rules for sale content:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use a real end time and hide the timer when it ends.&lt;/strong&gt; A timer that resets on every page load damages trust, and in some markets fake urgency can break consumer protection rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Include the time zone offset&lt;/strong&gt; in the end time, so every visitor counts down to the same moment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep sale URLs evergreen.&lt;/strong&gt; A &lt;code&gt;/collections/black-friday&lt;/code&gt; collection reused every year builds search ranking over time. Do not create a new URL with the year in it each year.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Update policies and shipping cut-off messages.&lt;/strong&gt; Holiday delivery dates and returns windows are what customers ask support about most after price.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  9. Write down the plan for the weekend
&lt;/h2&gt;

&lt;p&gt;Pressure leads to bad decisions, so make them in advance.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Who is on call&lt;/strong&gt; , and how to reach them (not only by email).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What counts as an emergency&lt;/strong&gt; : checkout broken, add to cart broken, wrong prices or discounts, site down. A misaligned banner is not one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The rollback steps&lt;/strong&gt; : publish the backup theme, turn off the new discount, or disable the app embed. Write down where each switch is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where to look&lt;/strong&gt; : Shopify's Live View for orders and sessions in real time, &lt;a href="https://status.shopify.com" rel="noopener noreferrer"&gt;status.shopify.com&lt;/a&gt; for platform incidents, and the logs or dashboards for your own integrations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One person approves changes&lt;/strong&gt; during the sale. Nobody fixes things directly on the live theme without the backup being ready.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A simple message template for the merchant saves time when something breaks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;What happened: Add to cart failing on product pages (mobile only)
Since: 09:42 store time
Impact: ~30% of sessions affected, checkout still works from cart page
Action taken: Published "LIVE BACKUP 24 Nov 2026" theme at 09:51
Next update: 10:15

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  10. After the weekend
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Switch everything back&lt;/strong&gt; on purpose: end banners, scheduled discounts, the sale theme and any temporary apps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compare ad platform conversions with Shopify orders&lt;/strong&gt; before anyone reports on return on ad spend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write a short review&lt;/strong&gt; : what broke, what was slow, what support was asked most. That list is next year's checklist, and the best time to write it is the week after.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Merge the git backup&lt;/strong&gt; with what is now live, so your repository matches the store again.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Code freeze agreed, live theme duplicated and pulled into git&lt;/li&gt;
&lt;li&gt;Sale changes on an unpublished theme, approved by the merchant&lt;/li&gt;
&lt;li&gt;Every money path tested on a real phone: variants, cart, checkout, payments, shipping, taxes&lt;/li&gt;
&lt;li&gt;"Continue selling when out of stock" checked on best sellers&lt;/li&gt;
&lt;li&gt;Discounts listed, combinations tested against written expected totals, end times in the store's time zone&lt;/li&gt;
&lt;li&gt;Images sized and lazy loaded, hero image preloaded, Theme Check clean&lt;/li&gt;
&lt;li&gt;Unused apps removed, app embeds and leftover app code cleaned up&lt;/li&gt;
&lt;li&gt;Webhooks respond fast, skip duplicates and respect rate limits&lt;/li&gt;
&lt;li&gt;Purchase events tested once per platform, no duplicate pixels, Meta's November change understood&lt;/li&gt;
&lt;li&gt;Countdown timers honest, client-side and time zone safe&lt;/li&gt;
&lt;li&gt;On-call list, emergency definition and rollback steps written down&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this is exciting, and that is the point. The best Black Friday for a developer is one where nothing happens and the merchant only sees the orders.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sources:&lt;/strong&gt; &lt;a href="https://help.shopify.com/en/manual/online-store/themes/managing-themes/duplicating-themes" rel="noopener noreferrer"&gt;Shopify Help Center: duplicating themes&lt;/a&gt;, &lt;a href="https://shopify.dev/docs/api/shopify-cli/theme" rel="noopener noreferrer"&gt;Shopify CLI theme commands&lt;/a&gt;, &lt;a href="https://shopify.dev/docs/api/liquid/filters/image_tag" rel="noopener noreferrer"&gt;Liquid image_tag filter&lt;/a&gt;, &lt;a href="https://shopify.dev/docs/api/ajax/reference/cart" rel="noopener noreferrer"&gt;Shopify Cart Ajax API&lt;/a&gt;, &lt;a href="https://shopify.dev/docs/apps/build/webhooks" rel="noopener noreferrer"&gt;Shopify webhooks best practices&lt;/a&gt;, &lt;a href="https://shopify.dev/changelog" rel="noopener noreferrer"&gt;Shopify developer changelog&lt;/a&gt;, &lt;a href="https://ppc.land/meta-pixel-will-count-more-conversions-from-nov-12-unless-advertisers-opt-out/" rel="noopener noreferrer"&gt;PPC Land: Meta Pixel will count more conversions from Nov 12&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let's Work Together
&lt;/h2&gt;

&lt;p&gt;Need a second pair of eyes on your store before the weekend? Contact me here: &lt;a href="https://linkedin.com/in/hassaanistic" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.hassaanistic.com/blogs/shopify-black-friday-developer-checklist" rel="noopener noreferrer"&gt;www.hassaanistic.com/blogs/shopify-black-friday-developer-checklist&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

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