> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thrad.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](https://docs.thrad.ai/advertisers/attribution/tag/guides/google-tag-manager.md) — recommended for most e-commerce sites.
> * [Shopify](https://docs.thrad.ai/advertisers/attribution/tag/guides/shopify.md) — storefront + Custom Pixel for checkout.
> * [Framer](https://docs.thrad.ai/advertisers/attribution/tag/guides/framer.md) — 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 tag takes care of `page_viewed` and dwell time on any page reached via a Thrad ad click — see [Track events](https://docs.thrad.ai/advertisers/attribution/tag/events.md) for what gets emitted automatically and what you'd fire yourself.

If you need a no-JavaScript fallback, add the [image pixel fallback](https://docs.thrad.ai/advertisers/attribution/tag/image-pixel.md) 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](https://docs.thrad.ai/advertisers/attribution/tag/first-party-proxy.md).

From here:

* [Track other events](https://docs.thrad.ai/advertisers/attribution/tag/events.md) — content views, items added, leads, etc.
* [Track purchases](https://docs.thrad.ai/advertisers/attribution/tag/conversions.md) — fired on the order confirmation page.
* [Add an image pixel fallback](https://docs.thrad.ai/advertisers/attribution/tag/image-pixel.md) — for no-JavaScript or script-restricted environments.
* [Set up a first-party proxy](https://docs.thrad.ai/advertisers/attribution/tag/first-party-proxy.md) — send eligible Tag requests through your own domain.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.