# Custom Domains

:::info
Custom Domains is the feature of [Jitsu Cloud](https://use.jitsu.com). To implement custom domains for [self-hosted](/docs/self-hosting/) Jitsu
you need to use 3rd party solutions such as [Cloudflare](https://www.cloudflare.com/) or [Caddy](https://caddyserver.com/).
:::

## What are Custom Domains?

If you're implementing client side-tracking with Jitsu, the javascript code on your web page will be sending data to
a dedicated subdomain `<site-id>.d.jitsu.com`. While this works fine, some data may be lost due following reasons:

* Ad Blockers are widely used they may block requests to `*.jitsu.com` domains. Depending on nature of your business, up to 30%
  of your data may be lost
* The other reason for data loss is [Safari's tracking prevention](https://support.apple.com/guide/safari/sfri40732/mac) feature.
Safari will detect that the script is loaded from `d.jitsu.com` domain and will block it from accessing certain data
such as analytics cookies. As a result, the precision of your analytics will be affected.

### Custom Domains to the Rescue

To solve this problem, Jitsu Cloud allows you to attach custom domains to your Sites. Instead of using `<site-id>.d.jitsu.com`,
the tracking will be loaded from `<site-id>.your-site.com`, such as `events.your-site.com`. In that case, both Ad Blockers
and Tracking Prevention will not affect your tracking.


:::tip

Consider moving as much of your tracking to [server-side](https://jitsu.com/blog/server-side-tracking) as possible. This will
improve the quality of your data even further.
:::

## How to Configure Custom Domains

When you create a new Site, add your subdomain name to the `Custom Domains` field. Then point your subdomain to `cname.jitsu.com`

<Screenshot src="/docs/screenshots/custom-domain.png" />