How it works without Apex
Add a first-party snippet subdomain like m.yourdomain.com in Apex with two DNS CNAME records (edge target and TLS validation). Once Active, apex.js loads and posts on your site's eTLD+1, recovering iOS Safari Private Mode and clearing Safari's privacy warning. Pair it with Server Events for Brave, Firefox Strict, and Lockdown Mode, because CNAME hosting alone does not lift Safari's 7-day script-cookie cap.
How Apex does it for you
Apex provisions a managed TLS certificate and dedicated edge distribution automatically, checks DNS every 5 minutes, appends &domain=registrable for cross-subdomain cookies, and supports zero-downtime workspace transfers.
How to set this up in 5 steps
Submit a subdomain under Integrations in Apex
Open Integrations, find the First-party snippet domain card, and submit a subdomain such as m.yourdomain.com or metrics.yourdomain.com (not a bare root domain). Apex claims it atomically for one workspace.
Add both DNS CNAME records and leave validation intact
Add the edge target CNAME and the TLS certificate validation CNAME at your registrar. Keep the validation CNAME permanently so automatic certificate renewal succeeds without interruption.
Wait for status to flip to Active
Apex checks DNS every 5 minutes (or click Check now). Certificate issuance and edge provisioning typically complete in 15 to 30 minutes, after which your dashboard snippet automatically updates.
Update your site's script tag with &domain=registrable
Replace the old script src with the new subdomain URL from the dashboard. Existing
apex_vidcookies stay intact with zero attribution reset, and &domain=registrable shares visitor identity across subdomains.Pair with Server Events for high-stakes conversions
Keep firing completed purchases, upgrades, and demo bookings via Server Events API with matching event.id so Brave, Firefox Strict, and iOS Lockdown Mode conversions still deduplicate cleanly.
What first-party CNAME fixes (and what it does not)
When a site loads apex.js from app.apex.inc, iOS Safari sees a cross-origin script setting cookies and posting events to another domain. Under Safari's Advanced Tracking and Fingerprinting Protection (ATFP), iOS Safari Private Mode silently drops navigator.sendBeacon() requests (even though sendBeacon still returns true to your page!), and regular Safari can show a privacy warning banner.
Hosting the snippet on your own subdomain (such as m.yourdomain.com) via First-Party Snippet Domain moves both the script and its event endpoint onto the same registrable domain (same eTLD+1) as your site.
Be equally clear about what a CNAME does not change:
- Safari's 7-day script-cookie cap still applies. Safari caps every cookie written by page JavaScript at 7 days on any domain. Apex refreshes
apex_vidon each return visit within a week, and if your own server sets theapex_vidcookie, Safari keeps it for a full year. - Native mobile SDKs do not need this. Capacitor and mobile SDK calls are native networking requests, not subject to Safari ATFP.

Browser coverage matrix
Use this honest breakdown to decide when first-party CNAME solves the gap and when to pair it with the Server Events API:
| Browser or mode | Without first-party CNAME | With first-party CNAME | Universal backup |
|---|---|---|---|
| iOS / macOS Safari Private | sendBeacon silently dropped; visitor invisible | Fully recovered | Already fixed |
| Safari Regular | Events flow; JS cookies capped at 7 days | Clears ATFP warning; 7-day JS cap stays | Server-set apex_vid cookie |
| Firefox Strict, Brave, Edge Strict, DuckDuckGo, Lockdown Mode | List-based or aggressive blocking | Partial recovery only | Server-side events with matching event.id |
| Chrome, Edge Balanced, Firefox Standard | Events flow normally | Not required | Optional for high-stakes conversions |
For payments, account upgrades, and demo bookings that can never afford a browser drop, fire the event from your backend with the same event.id so Apex deduplicates cleanly if both browser and server paths arrive.

Setup, renewal, and zero-downtime transfer
- Submit a subdomain under Integrations, then First-party snippet domain (or
POST /api/snippet-domain). Apex claims the subdomain atomically for one workspace (rate-limited at 5 submissions per hour per workspace and 20 per hour per IP). - Add both DNS CNAME records shown in the dashboard: one pointing
m.yourdomain.comto your edge target, and one for TLS certificate validation. Keep the validation CNAME permanently so automatic renewal works inside 30 days of expiry. - Wait for Active (typically 15 to 30 minutes). A provisioning sweep checks DNS every 5 minutes (or click Check now).
- Update your script tag. The updated snippet automatically appends
&domain=registrablesoapex_vidfollows visitors acrosswww.,app., andm.subdomains. Existing visitor IDs stay intact with zero attribution reset. - Move across workspaces safely: If you tested on a sandbox workspace, click Transfer (
POST /api/snippet-domain/transfer) as an admin on both workspaces to re-point the live certificate and edge target atomically with zero DNS edits and zero downtime.
What this costs on Apex
Live Apex pricing · Pay-as-you-go
Estimated Apex cost for DTC store serving 150,000 monthly events via m.storebrand.com plus server-side order webhooks
$0 / month
Covered by monthly free allowances.
| Apex meter / schedule | Scenario volume | Free allowance / basis | Rate | Apex cost |
|---|---|---|---|---|
Events First-party browser events plus deduplicated server conversions (150,000 monthly web measurement events) | 150,000 / mo | 1M / month | $5 per 100K events | $0 |
Managed TLS certificates, edge provisioning, and atomic workspace transfers are included with no custom-domain add-on charge. History: 13 months no card, 3 years with card, 7 years once you've paid an invoice. Live pricing.
Third-party and campaign costs (not paid to Apex)
| Expense | Typical range | Notes |
|---|---|---|
| Two CNAME records at your DNS provider | $0 | Included with any standard domain registrar or DNS host |
Managed TLS certificates, edge provisioning, automatic renewal, and zero-downtime workspace transfers are included at no extra custom-domain fee.
