- Storefront — install
tag.min.jslike any other site (direct JS or GTM). It captures the click token from the landing URL and stores it in a cookie on your apex domain (e.g..yourshop.com). - Checkout — the checkout page runs inside a sandboxed Web Pixels API context where
tag.min.jscan’t reach. We use Shopify’s Custom Pixel API to read the cookie viabrowser.cookie.get()and POST the conversion to Thrad directly.
1. Install the Tag on your storefront
Same as any other site — pick one path:- Direct JS — follow Install, pasting the snippet into
theme.liquid(above</head>). - GTM — follow the GTM guide. The loader tag fires on All Pages of the storefront.
thrad_click on your apex domain so checkout can read it.
2. Add the Custom Pixel for checkout
In Shopify Admin → Settings → Customer events → Add custom pixel, name itthrad pixel, and paste:
thrad pixel.js
<YOUR_TAG_ID> with the tag ID Thrad sent you.
Save the pixel and toggle it to Connected.