Login
ZappushZappush Docs
Account & settings

Collect on your own domain

Serve Zappush tracking from your own domain so Safari keeps your visitors' cookies longer and ad blockers stop dropping your events.

Collecting on your own domain makes tracking look like part of your site. Returning visitors stay recognized for longer, especially in Safari, and ad blockers stop dropping your events. Open Settings → First-party domain.

Pick same domain or a subdomain

The page checks where your site runs and shows two options side by side, with the one that fits your site marked Recommended.

  • Same domain collects through a path on your own site. Safari keeps visitors for 400 days instead of 7, and ad blockers can't see it. It's available to custom-site stores on plans that include it.
  • Subdomain collects on an address such as data.yourstore.com. It takes DNS records only, so it works on any host, including site builders. Safari still limits its cookies to 7 days.

Both keep working for as long as you use them. Nobody is moved off a subdomain.

Set up same domain in three steps

  1. Pick your sites. The Your sites card lists the domains your visitors have browsed, grouped by site, so you tick the ones you want. Your www and bare domain count as one. Use Add a domain for anything that is not listed.
  2. Connect your domain. Zappush checks where each domain runs and picks the setup for you, with the host's logo next to the domain. If your site runs through Cloudflare, choose Connect Cloudflare: you see exactly what will be added, approve it in Cloudflare, and Zappush keeps no access afterwards. When your site is hosted on Vercel behind Cloudflare, the page says which is cheaper. On Vercel, choose Add the rule in Vercel, pick your team and project, and Vercel opens the routing rule already filled in: click Create Rule, then Publish. There is no code to change or redeploy, and Enter the values yourself shows each value to copy if you prefer. If you added Zappush from the Vercel Marketplace, it brings you straight to this page and leaves nothing installed in your Vercel account. On your own server, you get a prompt for an AI agent or Copy for your developer, plain instructions you can send as they are. The code itself stays out of the way until you choose Show me the code. On Shopify, same domain works with a free Cloudflare account in front of your store, and the Shopify option walks you through it. Requests through your path count toward your Cloudflare or Vercel plan and are billed by them, not by Zappush; the page shows what your recent traffic comes to.
  3. Check. Each domain gets its own row. It starts as Pending, turns Live once Zappush confirms your setup works, and shows Degraded with a one-line fix if a later check finds a problem. Choose Check again after you change something.

Once a domain is Live, the page shrinks to one card listing your domains. Add another domain opens the setup again.

What the status means

  • Pending: the domain is added but Zappush has not yet seen your setup working. It checks by itself while you finish.
  • Live: the domain is collecting on your own domain.
  • Degraded: something stopped working. The row says what to fix, a banner points you to it, and your visitors fall back to the standard setup until it is fixed, so no data is lost.

Update your tracking tag

Once a domain is Live, your tracking snippet changes to load the script from that domain, so ad blockers can't block it either. If you run several sites, each Live domain gets its own snippet. Replace your current tag with the new one; the hint goes away once Zappush sees it in use. If your domain setup ever stops working, the snippet falls back to the standard script by itself, so tracking never stops.

Remove a domain

Remove switches the domain off at once, and tracking falls back to the standard setup. If the domain runs through Cloudflare, one Cloudflare sign-in then removes what Zappush added there. On Vercel, delete the Zappush routing rule in your project.

Regenerate the setup

If the setup details were shared by mistake, choose Regenerate setup. Zappush issues a new secret and cancels every setup link. Your domains show as degraded until the new snippet is live.

Already on a subdomain

A subdomain you set up keeps working. If same domain is available to you, a short note under your subdomain offers it. You can set it up alongside, and your subdomain keeps collecting until you remove it. Keep it until same domain has handled real visitors.

Same-domain collection does not change what you track or how consent works. Every setting you already use applies the same way.

On this page