LearnCustom Domain

Custom Domain

Configure a CNAME so Hardal serves tracker and collection requests through a first-party subdomain you control.

Why a custom domain

Hardal collects events through a first-party URL, such as analytics.yourdomain.com. You control this subdomain, so tracker and collection requests stay under your site.

It's one DNS record. Set it up before you install the script.

Add the CNAME record

Open the setup in the Dashboard

Go to Setup. You'll find the active Tenant ID and Source ID there, along with the first-party domain and CNAME guidance.

Add the record at your DNS provider

Create a CNAME record:

FieldValue
TypeCNAME
Name / Hostanalytics (or the subdomain shown in the Dashboard)
Value / Targetanalytics.usehardal.com

Use the exact target shown in the Dashboard. Don't type it from memory.

Verify in the Dashboard

Back in the Dashboard, use Verify DNS. DNS changes usually propagate in a few minutes, but can take up to 48 hours depending on your provider.

Install the script

Once the domain verifies, copy the generated web script. It already points at your first-party URL.

Set up the custom domain first. If you install the script and add the CNAME later, you'll need to update the snippet and redeploy it.

Web Setup

Install the tracker script after your domain verifies.