> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thrads.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the Tag

> Drop one script into the page &lt;head&gt; and the Tag is live.

> **On a specific platform?** Skip this page and use a guide:
>
> * [Google Tag Manager](/advertisers/attribution/tag/guides/google-tag-manager) — recommended for most e-commerce sites.
> * [Shopify](/advertisers/attribution/tag/guides/shopify) — storefront + Custom Pixel for checkout.
> * [Framer](/advertisers/attribution/tag/guides/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.

```html layout.html theme={null}
<!-- 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](/advertisers/attribution/tag/events) for what gets emitted automatically and what you'd fire yourself.

From here:

* [Track other events](/advertisers/attribution/tag/events) — content views, items added, leads, etc.
* [Track conversions](/advertisers/attribution/tag/conversions) — fired on the order confirmation page.
