On a specific platform? Skip this page and use a guide:Paste this block just before the closingOtherwise (direct JavaScript), follow the snippet below.
- Google Tag Manager — recommended for most e-commerce sites.
- Shopify — storefront + Custom Pixel for checkout.
- Framer — Site Settings → Custom Code.
</head> of every page — typically in your site’s base template or layout file.
layout.html
<YOUR_TAG_ID> with the tag ID Thrad sent you (format: adv_<name>_<id>).
That’s the whole install. The tag takes care of page_viewed and dwell time on any page reached via a Thrad ad click — see Track events for what gets emitted automatically and what you’d fire yourself.
If you need a no-JavaScript fallback, add the image pixel fallback alongside the Tag. The JavaScript Tag should remain the primary install path whenever scripts can run.
Improve delivery with a first-party proxy
Some browsers and content blockers limit third-party measurement requests. If you want the Tag to send eligible requests through your own domain instead, follow the first-party proxy guide. From here:- Track other events — content views, items added, leads, etc.
- Track purchases — fired on the order confirmation page.
- Add an image pixel fallback — for no-JavaScript or script-restricted environments.
- Set up a first-party proxy — send eligible Tag requests through your own domain.
