Skip to main content
On a specific platform? Skip this page and use a guide:
  • Google Tag Manager — recommended for most e-commerce sites.
  • Shopify — storefront + Custom Pixel for checkout.
  • Framer — Site Settings → Custom Code.
Otherwise (direct JavaScript), follow the snippet below.
Paste this block just before the closing </head> of every page — typically in your site’s base template or layout file.
layout.html
Replace <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: