Configure a first-party subdomain for AxiTrace to maximize cookie persistence and bypass browser tracking prevention.

Domain Configuration

Setting up a custom tracking domain (e.g., axi.yourdomain.com) for your workspace. This guide explains the configuration process and potential delays you may encounter.

Overview

A custom tracking domain allows you to collect analytics data through your own subdomain, which helps avoid ad blockers and improves first-party cookie support.

Choose a Neutral Subdomain Label

Content blockers match subdomain names as well as domains, so a descriptive label such as metrics, stats, analytics or track can be filtered on its own - which quietly costs you part of the very traffic a first-party domain is meant to keep. Prefer a short, neutral label: axi, data, link or t. Any label works technically; only the name matters here.

Configuration Steps

  1. Add your custom domain in Workspace settings → Tracking & domains
  2. Configure DNS records for your domain (see below)
  3. Wait for automatic verification - we re-check your DNS every 15 minutes, so once the CNAME record is in place no further action is needed. You can also click Verify Now in the Domains card to trigger a check immediately.
  4. Wait for routing configuration and SSL certificate provisioning (also automatic)
  5. Verify the domain is working - the status badge shows Live

Status Badges Explained

Each domain in the Domains card shows a status badge. The full lifecycle is automatic - after adding the CNAME record you never need to take further action:

Badge Meaning
Awaiting DNS We have not yet seen your CNAME record. Add it as described below; we re-check every 15 minutes.
Verified - connecting DNS ownership is proven. The routing process will pick the domain up on its next cycle (within 15 minutes).
Configuring routing The domain is being added as a host on our infrastructure.
Issuing certificate A managed TLS certificate is being provisioned for your domain.
Live The domain serves tracking traffic over HTTPS. Setup is complete.
Failed / Blocked Something needs attention on our side - this is usually not a problem with your DNS setup. Contact support if the status persists.
Each Step Advances Automatically

Statuses progress on a periodic background cycle (roughly every 15 minutes per step), so the full path from "Awaiting DNS" to "Live" typically takes 15-45 minutes after your CNAME record propagates. You can safely close the page while this happens.

DNS Configuration

Add the following CNAME record to your domain:

Type Name Value TTL
CNAME stat (or your subdomain) stat.axitrace.com 3600 (or default)
Do Not Use an A Record

Domain verification requires a CNAME record - an A record pointing at an IP address will never pass verification, and an unverified domain does not route tracking traffic. Our infrastructure IPs may also change over time, which would silently break a hardcoded A record. Always use the CNAME record shown above.

If your DNS provider does not allow a CNAME on the subdomain (e.g. it conflicts with other records), use a different subdomain (such as stat or tracking) that has no other records.

Safari and the 7-Day Cookie Limit

The CNAME Above Is What Safari Shortens the Cookie For

A CNAME gives you a name on your own domain that points at our infrastructure. Safari detects that and shortens the visitor cookie to 7 days, so a Safari visitor returning after eight days looks like a new one. Chrome and Firefox have no equivalent rule.

If you can add a DNS record and a rule on your own web server or CDN, you can make the tracking hostname answer from your own server, which removes the reason Safari shortens it. See Serve Tracking From Your Own Server. Shopify-hosted storefronts cannot do this; the guide explains why.

What "Verify" Actually Confirms

Verified Does Not Mean Live Yet

Clicking Verify only proves DNS ownership - that your CNAME points at stat.axitrace.com. It does not yet mean the domain serves tracking traffic.

A separate background process routes verified domains onto our infrastructure: it adds the domain as a host on our load balancer and provisions a managed TLS certificate for it. This process runs on a periodic cycle (roughly every 15 minutes per step) rather than firing instantly when verification succeeds, so there is a normal gap between "Verified" and the domain actually serving HTTPS traffic.

Practical effect: immediately after a domain shows "Verified", requests to it can still return a TLS/certificate error for a while - this is expected, not a misconfiguration on your side. If it hasn't started working within about 60 minutes of verification succeeding, contact support with your workspace ID and domain.

Propagation Delays

Expect Initial Delays

After configuring your domain, there may be a delay of 5-60 minutes before tracking starts working. This is normal and caused by multiple infrastructure layers that need to synchronize.

After completing the configuration, your domain may experience temporary issues such as:

  • 502 Bad Gateway errors
  • 401 Unauthorized errors
  • SSL certificate errors
  • Connection timeouts

These issues typically resolve automatically within 5-60 minutes.

Why Delays Occur

The delay is caused by several infrastructure components that need to synchronize:

Component Typical Delay Description
DNS Propagation 5-60 minutes DNS changes need to propagate across global DNS servers. Old DNS records may be cached by ISPs and public DNS resolvers (Google, Cloudflare). The cache duration depends on the TTL (Time To Live) setting of your DNS records.
Routing Configuration 15-30 minutes A background process picks up your verified domain on a periodic cycle (roughly every 15 minutes per step), adds it as a host on our load balancer, and requests a managed TLS certificate for it.
SSL Certificate 5-30 minutes Google Cloud automatically provisions SSL certificates for new domains. The certificate authority verifies domain ownership through our load balancer, which requires your CNAME record to be in place first. Certificate status progresses: Provisioning → Active.
Workspace Cache Instant - 2 minutes The ingestion API caches workspace configurations. After adding a new domain in the admin panel, the API may need to reload its configuration. This happens automatically but may require an API restart in some cases.

Timeline Breakdown

Here's what happens after you configure a new domain:

0:00  - CNAME record added in your domain registrar panel
0:01  - Domain added in AxiTrace admin panel
        Status: "Awaiting DNS"
        |
        | DNS propagation begins...
        | (Some DNS resolvers see the new record, others still serve cached data)
        |
0:15  - Automatic verification passes (15-minute check cycle)
        Status: "Verified - connecting"
        |
0:30  - Domain added as a host on our load balancer,
        SSL certificate provisioning starts
        Status: "Issuing certificate"
        |
        | Google validates domain ownership through the load balancer...
        |
0:45  - Certificate active, domain marked live
        Status: "Live"
        HTTPS requests start working - tracking fully operational

Troubleshooting Tips

1. Check DNS Propagation

Verify your DNS is propagating correctly:

# Check the CNAME via Google DNS
dig @8.8.8.8 axi.yourdomain.com CNAME +short

# Expected result: stat.axitrace.com.

2. Flush DNS Cache

If DNS is slow to propagate, you can flush Google's DNS cache:

  1. Go to Google Public DNS Cache
  2. Enter your domain (e.g., axi.yourdomain.com)
  3. Click "Flush cache"

3. Test HTTP Endpoint

Test if your domain reaches our servers:

# Test HTTPS endpoint
curl -I https://axi.yourdomain.com/health

# Expected: HTTP/2 200 or HTTP/2 405 (both indicate success)

4. Browser Cache

If you previously received errors, your browser may have cached them. Try a hard refresh (Cmd+Shift+R on Mac, Ctrl+Shift+R on Windows) or open in incognito/private mode.

Domain Format in Admin Panel

Enter Domain Without Protocol

When adding a domain in the admin panel, enter it without the https:// prefix:

  • Correct: axi.yourdomain.com
  • Incorrect: https://axi.yourdomain.com

Common Issues

401 Unauthorized

This error means the workspace public key doesn't match or the domain isn't verified. Check:

  • The domain is added in Workspace settings → Tracking & domains
  • The domain status shows "Verified"
  • The domain format is correct (without https:// prefix)
  • You're using the correct publicKey in SDK initialization

502 Bad Gateway

This typically means the load balancer can't reach the backend. This is usually temporary during:

  • Initial domain setup
  • API deployments
  • SSL certificate provisioning

Wait 5-10 minutes and try again.

SSL Certificate Errors

If you see certificate errors, the SSL certificate may still be provisioning. Certificate issuance starts only after the domain is verified and picked up by the routing cycle, so allow up to 60 minutes from adding the CNAME record before treating this as a problem.

Support

If issues persist after 60 minutes, please contact support with:

  • Your workspace ID
  • The custom domain you're configuring
  • Output of dig @8.8.8.8 your-domain.com +short
  • Any error messages from browser console