Skip to content

Commit 6d34f6f

Browse files
committed
custom domain ga docs
1 parent df3a791 commit 6d34f6f

File tree

3 files changed

+91
-1
lines changed

3 files changed

+91
-1
lines changed

src/_data/products.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,15 @@ items:
186186
- product_display_name: OAuth 2.0
187187
slug: oauth-2
188188
plan-note: "OAuth 2.0 is available to customers on Business tier plans."
189+
plans:
190+
free: false
191+
team: false
192+
business: true
193+
add-on: false
194+
195+
- product_display_name: Custom Domain
196+
slug: custom-domain
197+
plan-note: "Custom Domain is available to customers on Business tier plans."
189198
plans:
190199
free: false
191200
team: false

src/_data/sidenav/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ sections:
151151
- path: /connections/sources/debugger
152152
title: Source Debugger
153153
- path: /connections/sources/custom-domains
154-
title: Set Up a Custom Domain Proxy in Segment
154+
title: Custom Domains
155155
- path: /connections/sources/visual-tagger
156156
title: Visual Tagger
157157
- section_title: Schema
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
title: Custom Domain
3+
plan: custom-domain
4+
---
5+
6+
Custom Domain is a fully-managed service that enables you to configure a first-party subdomain over HTTPS to track event requests through your domain (for example, cdp.mydomain.com), instead of tracking events through Segment's default domain (segment.com). Tracking events through your domain lets you reclaim some of the first-party data lost to end user ad-blockers and browser privacy controls that block Segment's default domain. With more complete first-party data comes a more complete view of your customer's behaviors. For more robust profiles, more accurate attribution, and, ultimately, greater ROAS.
7+
8+
> success ""
9+
> Segment recommends configuring Custom Domain alongside [Consent Management](/docs/privacy/consent-management/) to ensure you are respectful of your end users' consent preferences.
10+
11+
## Supported sources
12+
13+
Custom Domain supports the following sources:
14+
- [Analytics.js][docs/connections/sources/catalog/libraries/website/javascript/]
15+
- [Clojure](/docs/connections/sources/catalog/libraries/server/clojure/)
16+
- [Go](/docs/connections/sources/catalog/libraries/server/go/)
17+
- [Java](/docs/connections/sources/catalog/libraries/server/java/)
18+
- [Node.js](/docs/connections/sources/catalog/libraries/server/node/)
19+
- [PHP](/docs/connections/sources/catalog/libraries/server/php/)
20+
- [Python](/docs/connections/sources/catalog/libraries/server/python/)
21+
- [Ruby](/docs/connections/sources/catalog/libraries/server/ruby/)
22+
- [.NET](/docs/connections/sources/catalog/libraries/server/net/)
23+
24+
## Getting started
25+
26+
> info "Custom Domain available only to Business Tier customers"
27+
> Customers not on the Business Tier but who have interest in Custom Domain should [contact Segment's sales team](https://segment.com/demo/){:target="_blank”} for assistance with upgrading to a Business Tier plan. Segment also offers an alternative DNS record service, [Custom Proxy](/docs/connections/sources/catalog/libraries/website/javascript/custom-proxy/), which uses a Canonical Name (CNAME) and only works with Analytics.js sources.
28+
29+
1. Select the subdomain you'd like Segment to use for event request tracking (for example, `cdp.domain.com`).
30+
2. Sign in to the Segment app, select your user avatar, and click **Contact Support**.
31+
3. Create a support request with the following fields:
32+
- **Topic**: Select **Custom Domain**.
33+
- **Subject**: Enter a subject line for your support request.
34+
- **Domain Name**: Enter the subdomain that you created in step 1.
35+
- **Additional Domain Name**: If applicable, add an additional subdomain. This field is optional.
36+
- **Source names**: Select the sources you would like to use for Custom Domain. For a list of all sources that support Custom Domain, see [Supported sources](#supported-sources).
37+
- **Is the domain name enabled for Content Policy**: Select either Yes or No. You are not required to create a Content Policy prior to requesting Custom Domain.
38+
- **Description**: Enter an optional description for your service request. If you are requesting Custom Domain for multiple workspaces, enter any additional workspaces slugs into this field.
39+
4. Segment provides you with a list of nameservers you should add to your DNS. Once you receive the nameservers from Segment, update your DNS.
40+
5. After you've updated your DNS, Segment verifies that you've made all required updates and then provides you with two custom domains: one for the Tracking API and a second for your CDN.
41+
6. Update your Javascript snippet to reference the new subdomains or use the new Tracking API custom domain as your endpoint for server library sources.
42+
43+
## Compare Segment's DNS record solutions
44+
45+
Segment has two domain delegation solutions:
46+
- **Custom Domain**: Uses a DNS subdomain that you delegate to Segment
47+
- **Custom Proxy**: Uses a Canonical Name (CNAME) to map an alias name to a true or 'canonical' domain name. The CNAME record allows you to alias one domain name to another. You create a CNAME record to alias a subdomain that points to the Segment domain.
48+
49+
### How DNS subdomain delegation works
50+
DNS subdomain delegation is a process where the control of a specific subdomain is assigned to another DNS server, allowing that server to manage the DNS records for the subdomain. This delegation is useful for distributing the management of DNS records and enables specialized handling of subdomain traffic.
51+
52+
### How CNAME records work
53+
When a user tries to access the alias domain, the DNS resolver looks up the CNAME record, finds the canonical name, and resolves it to the IP address of the target, for example, the Segment domain. The user is redirected to the Segment domain, but the browser's address bar still shows the alias domain.
54+
55+
A CNAME record is a powerful tool in DNS management, allowing domain aliases to point to other domains seamlessly. It provides flexibility and centralized management, making it easier to handle domain redirections and subdomain configurations.
56+
57+
### Benefits of Custom Domain over Custom Proxy
58+
- **Automatic SSL management**: Segment manages the SSL certificates for your subdomain, ensuring secure communication.
59+
- **Continuous monitoring**: Segment has security monitors in place, ensuring a quick responses to any issues.
60+
- **Easy setup**: Segment handles all DNS changes, so you have to complete minimal additional work.
61+
- **No maintenance**: Segment handles all ongoing infrastructure management.
62+
63+
## FAQ
64+
65+
### What sources can I use with Custom Domain?
66+
Custom Domain was largely developed to support JavaScript sources. It helps with comprehensive data collection from your website when accessed over any platform (desktop, mobile, and more). You can use the subdomain for all other non-JavaScript sources as well, for consistency, but it will have no impact on data collection for those sources.
67+
68+
Once Custom Domain is enabled for your workspace, the Segment app generates a new JavaScript source code snippet for you to copy-paste into the header of your website. For non-JavaScript sources, you can use the sub-domain as an endpoint when using the Tracking API.
69+
70+
### Is this a fully-managed solution? What servers or infrastructure do I need to set up on my side for this proxy?
71+
Yes, Custom Domain is a fully-managed solution.
72+
73+
You must be able to delegate a DNS subdomain to Segment and add the name servers Segment provides. You must first decide on your subdomain and then delegate it to Segment. Segment then asks you to add a DNS NS record to your DNS with specific values to complete the DNS delegation. From there on, Segment fully manages the infrastructure for serving AJS and ingesting events data through the subdomain.
74+
75+
### Can I change my Segment subdomain after the initial setup?
76+
Segment does not recommended that you change the subdomain after the initial setup. If you change the subdomain, Segment must revoke the older certificates for your subdomain and you will be required to redo the entire onboarding process, as several underlying components, like certificates, would need to be recreated and reassociated.
77+
78+
### Who is responsible for managing the SSL certificate for the Custom Domain?
79+
Because Custom Domains is a managed service that Segment completely runs, Segment hosts and manages SSL Certificate on the Custom Domain. At this time, we do not support importing a certificate you may already have, as Segment requests a SSL certificate on your behalf using AWS Certificate Manager (ACM) when initially setting up your Custom Domain.
80+
81+
Segment also uses AWS Certificate Manager (ACM) to manage and automatically renew certificates. Segment has monitors ready to alert our teams in the event of a certificate renewal failure.

0 commit comments

Comments
 (0)