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.
Content blockers match subdomain names as well as domains, so a descriptive label such as
stat, stats, metrics, analytics,
track, tracking or pixel can be filtered on its own - which
quietly costs you part of the very traffic a first-party domain is meant to keep. Use
axi (the label AxiTrace suggests) or another short word of your own. Generic labels
such as data or t are not much better: thousands of hosts with those
names already sit on tracker lists. Any label works technically; only the name matters here.
Your Store Domain Is Verified Automatically
AxiTrace accepts browser events (page views, add-to-carts, checkouts) only from domains verified for your workspace. You do not need to add your store domain by hand: the Shopify, Shoper and IdoSell apps register it when you install them, and the AxiTrace plugins for WooCommerce (1.6.0 and newer), PrestaShop, Shopware, Magento and OpenCart ask AxiTrace to verify it when you save their settings and once a day. AxiTrace then opens a check address on your store that only the plugin configured with your workspace key can answer, so no DNS change is needed. The domain appears under Settings > Tracking & domains as "Verified by WooCommerce" (or your platform).
If the check cannot pass, the plugin settings page and the AxiTrace dashboard say why: a test or local copy of the store (staging addresses are never verified), a domain already connected to another workspace, a different public key, or a security plugin, firewall or maintenance mode blocking the check address. While browser events from your store are refused, the AxiTrace dashboard shows a red notice with the refused address, and the browser console of your store says so as well.
With one of those apps or plugins, a custom tracking subdomain (below) is a separate, optional step: it serves the tracking script from your own subdomain so ad blockers miss it.
Without an AxiTrace app or plugin (a script pasted into the page head or added through
Google Tag Manager, for example on UNAS, Wix, Squarespace, Webflow or a custom-built shop), nothing
verifies your store domain for you, so the tracking subdomain is required: until it is verified, browser
events from your store are refused. Once axi.yourstore.com is verified, AxiTrace accepts
events from yourstore.com, www.yourstore.com and its other subdomains.
How the Tracking Path Is Chosen
The AxiTrace browser SDK (0.28.0 and later) does not depend on one hostname. It knows up to three paths for its requests and uses the first one that works:
- Your tracking subdomain (for example
axi.yourstore.com), when its status is Live. - A path on your own store domain, where your platform offers one: the Shopify app proxy used by the storefront embed, or the store relay of the AxiTrace plugins for WooCommerce, PrestaShop, Shopware and Magento.
- The AxiTrace tracking domain
stat.axitrace.com.
The order is part of the configuration AxiTrace publishes for your workspace, so it can change without a new snippet or plugin. Today it is: on Shopify with the storefront embed, tracking subdomain, then store domain, then the AxiTrace tracking domain; with a WooCommerce, PrestaShop, Shopware or Magento plugin, tracking subdomain, then the AxiTrace tracking domain, then the store relay as the last fallback; everywhere else (a pasted script, Google Tag Manager, Shoper, IdoSell), tracking subdomain, then the AxiTrace tracking domain.
The SDK moves to the next path when a request fails: a network error (which is how a blocked request looks to a page), no answer within a few seconds, a response that is not an AxiTrace answer, or an AxiTrace refusal of that particular hostname for your store. A server error or a rate limit is not a failure of the path: the event is queued and sent again with the same event id. The path that worked is remembered for a day. A tracking subdomain therefore still helps on every platform, and on Shopify and the plugin platforms a blocked subdomain no longer means lost events.
Configuration Steps
- Add your custom domain in Workspace settings → Tracking & domains
- Configure DNS records for your domain (see below)
- 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.
- Wait for routing configuration and SSL certificate provisioning (also automatic)
- 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. |
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 |
axi (or your own neutral label) |
stat.axitrace.com |
3600 (or default) |
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 neutral subdomain (such as axi2) that has no other records.
Avoid descriptive labels such as stat, tracking or analytics.
Safari and the 7-Day Cookie Limit
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. With the WooCommerce, PrestaShop, Shopware and Magento plugins you do not need it: their store relay sets the visitor cookie from your own server once per session.
What "Verify" Actually Confirms
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
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 Gatewayerrors401 Unauthorizederrors- 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:
- Go to Google Public DNS Cache
- Enter your domain (e.g.,
axi.yourdomain.com) - 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
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
publicKeyin 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