TagInstall

Install the Tag

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
<!-- Thrad Tag -->
<script>
  window.thradTag = window.thradTag || function () {
    (window.thradTag.q = window.thradTag.q || []).push(arguments);
  };
  window.thradTag("set", {
    tag_id: "<YOUR_TAG_ID>",
    channel: "web"
  });
</script>
<script async src="https://cdn.thrad.ai/tag.min.js"></script>

Replace <YOUR_TAG_ID> with the tag ID Thrad sent you (format: adv_<name>_<id>).

That’s the whole install. The SDK 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.

From here: