# Serve the script from your own subdomain

Serve the script and its events from a subdomain such as a.yourdomain.com: pick it in Settings, add one CNAME record, wait for Active and update your snippet.

The managed proxy serves the script and its events from a subdomain of your own website, such as `a.yourdomain.com`. Visitors' browsers talk to your domain; SuprAnalytics answers there.

**1. Pick a subdomain**

In Settings → General → Tracking → Managed Proxy, type a subdomain of your website and click **Enable**. Keep it short and neutral, like `a.` or `cdn.`: blockers also look for words like analytics, stats or track.

**2. Add the DNS record**

The card shows a **CNAME** record. Add it where your domain's DNS is managed (on Cloudflare, set it to **DNS only**, the grey cloud). Some providers want the full name (`a.yourdomain.com`), others only `a`.

**3. Wait for Active**

SuprAnalytics checks every 20 seconds until the subdomain answers over HTTPS. DNS usually takes minutes, sometimes a few hours. **Check now** checks straight away.

**4. Update your snippet**

Once it's **Active**, the snippet in Settings → General → Tracking loads from the subdomain. Paste it on your website; the old one keeps working meanwhile.

```
<script
  defer
  supr-website-id="YOUR_WEBSITE_ID"
  supr-domain="yourdomain.com"
  src="https://a.yourdomain.com/js/script.js"
></script>
```

## Statuses

| Status | Meaning |
| --- | --- |
| **Waiting for DNS** | The record isn't there yet, or points elsewhere. |
| **Verify the domain** | Add the TXT record shown too, to prove the domain is yours. |
| **Issuing certificate** | DNS is right; the HTTPS certificate is on its way. |
| **Active** | The subdomain reaches SuprAnalytics over HTTPS. |

## Good to know

- The subdomain serves the script, events and live chat only. The dashboard and sign-in stay on `supranalytics.app`.
- One subdomain per website, and each subdomain belongs to one website. It must be a subdomain of the website's domain or one of its additional domains.
- Visitors' real addresses still reach SuprAnalytics (for locations and rate limits), since their browsers connect to it directly.
- **Remove** takes the subdomain off. Put your snippet back to SuprAnalytics's own address first, or visits stop being counted.

---

This page on the web: https://supranalytics.app/docs/managed-proxy
Every documentation page: https://supranalytics.app/docs.md
