Skip to content

Commit f4ff5ff

Browse files
committed
reworked sections [netlify-build]
1 parent f9b6b3f commit f4ff5ff

File tree

1 file changed

+52
-9
lines changed

1 file changed

+52
-9
lines changed

src/guides/regional-segment.md

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,46 @@ Segment provides regional infrastructure in both the United States and Europe. B
1717

1818
If you need EU data residency, you must either create a workspace in the EU or request a migration for an existing workspace. Only EU workspaces store data exclusively in the EU.
1919

20-
## Regional Data Ingestion
20+
## Ingestion behavior and failover
2121

2222
Regional Data Ingestion enables you to send data to Segment from both Device-mode and Cloud-mode sources through regionally hosted API ingest points. The regional infrastructure can fail-over across locations within a region, but never across regions.
2323

24-
## Configuring Segment sources for mobile SDKs
24+
## Set up your sources for EU or US workspaces
25+
26+
Some Segment SDKs require specific endpoint configuration to send data to the correct regional infrastructure. This section provides setup details for mobile SDKs, server-side SDKs, custom integrations, and supported cloud sources.
27+
28+
> info "Using Analytics.js?"
29+
> Segment's Analytics.js SDK for web automatically uses the latest source settings, including the correct ingestion endpoint. You don't need to configure a regional endpoint manually for this SDK.
30+
31+
### SDK configuration summary
32+
33+
Use the following table as a quick reference for configuring each type of SDK or integration to point to the correct endpoint:
34+
35+
Before diving into the specific setup instructions below, use this table as a quick reference to determine how to configure your source or SDK to send data to the correct endpoint.
36+
37+
| Integration | Endpoint configuration | Notes |
38+
| --------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
39+
| iOS / Android / Flutter / Xamarin | `apiHost: "events.eu1.segmentapis.com/v1"` | Set directly in SDK config |
40+
| React Native | `proxy: "https://events.eu1.segmentapis.com/v1"`<br>`useSegmentEndpoints: true` | Both values are required for proper routing |
41+
| Node.js / Python / Java | `host: "https://events.eu1.segmentapis.com"` | Do **not** include `/v1` in host for these SDKs |
42+
| C# SDK | `host: "https://events.eu1.segmentapis.com/v1"` | Manually append `/v1` to the host URL |
43+
| Custom HTTP requests | `https://events.eu1.segmentapis.com/v1` | Write key must belong to an EU workspace |
44+
| Cloud sources | No config required | Only [Amazon S3](/docs/connections/sources/catalog/cloud-apps/amazon-s3) and [Iterable](/docs/connections/sources/catalog/cloud-apps/iterable) are supported |
45+
46+
### Configuring Segment sources for mobile SDKs
2547

2648
To send data from mobile apps to the correct region, you must update your SDK configuration to use the right endpoint. You must do this even if your source settings are already configured in Segment itself.
2749

2850
> warning "Use the correct endpoint"
2951
> Starting in Q2 2025, Segment will reject data sent to the wrong region. Make sure your mobile SDK is configured to send data to the correct endpoint for your workspace region.
3052
31-
Segment's EU instance only supports data ingestion through the Dublin region, using this endpoint:
53+
Segment's EU instance only accepts data through its Dublin-based endpoint:
3254

33-
`https://events.eu1.segmentapis.com/v1`
55+
```
56+
https://events.eu1.segmentapis.com/v1
57+
```
3458

35-
### SDK configuration examples
59+
#### Mobile SDK configuration examples
3660

3761
Use the examples in this section to configure mobile SDKs to point to the EU endpoint. These examples use JavaScript-style syntax for clarity. Refer to your platform's documentation for exact implementation.
3862

@@ -65,14 +89,16 @@ If you're using the Segment EU endpoint with Analytics-C# source, you must manua
6589

6690
For workspaces using the `EU WEST` data processing region, the Dublin ingestion region is preselected for all sources.
6791

68-
## Configure server-side and custom Segment sources
92+
Once you finish updating your SDK(s), make sure your [source settings in Segment](#updating-source-settings-in-segment) also reflect the correct region.
93+
94+
### Configure server-side and custom Segment sources
6995

7096
If you're using Segment’s server-side SDKs (like Node.js, Python, and Java) or making direct HTTP API requests, you’ll need to update the endpoint your data is sent to. This is required to match your workspace’s region and avoid rejected traffic.
7197

7298
> warning "Use the correct endpoint"
7399
> Starting in Q2 2025, Segment will reject data sent to the wrong region. Make sure your server-side SDKs and custom integrations are configured to send data to the correct endpoint for your workspace region.
74100
75-
### SDK configuration examples
101+
#### Server-side SDK configuration examples
76102

77103
Use this example to configure your SDK:
78104

@@ -92,7 +118,7 @@ const analytics = new Analytics({
92118
> info "C# SDK"
93119
> If you're using the C# SDK, you must manually append /v1 to the host URL: `https://events.eu1.segmentapis.com/v1`.
94120
95-
### Custom HTTP requests
121+
#### Custom HTTP requests
96122

97123
If you're sending data using custom HTTP requests or through a proxy and you’ve reused a write key originally issued for a US-based workspace, you’ll need to do the following:
98124

@@ -107,6 +133,23 @@ If you're sending data using custom HTTP requests or through a proxy and you’v
107133

108134
Segment maintains and hosts these sources, and they don't require SDK-level configuration. If you're using other cloud sources not listed here, they may only be available in US-based workspaces. Reach out to Segment Support if you're unsure whether a cloud source is supported in the EU.
109135

136+
## Updating source settings in Segment
137+
138+
After you’ve configured your SDKs or custom integrations, double-check that your source settings in Segment are using the correct regional endpoint.
139+
140+
To set your data ingestion region:
141+
142+
1. Go to your source's **Settings** tab.
143+
2. Click **Regional Settings**.
144+
3. Choose your **Data Ingestion Region**.
145+
- If your workspace is in the *US West* data processing region, you can select from: Dublin, Singapore, Oregon, or Sydney.
146+
- If your workspace is in the *EU West* data processing region, Segment only supports ingestion from Dublin, using the `events.eu1.segmentapis.com/` endpoint.
147+
4. Save your changes.
148+
149+
All regions are configured on a **per-source** basis. You'll need to configure the region for each source separately if you don't want to use the default region.
150+
151+
Segment’s client-side SDKs automatically fetch this setting and update themselves the next time the app reloads. However, for mobile apps and critical regional routing, Segment recommends also [setting the endpoint manually in your SDK configuration](#set-up-your-sources-for-EU-or-US-workspaces).
152+
110153
## Create a new workspace with a different region
111154

112155
> info ""
@@ -122,7 +165,7 @@ Segment workspaces use US data residency by default. If you need EU data residen
122165
> info ""
123166
> Once you create a workspace, you can't change its data processing region. You’ll need to create a new workspace if you want to switch regions.
124167
125-
Sources within EU workspaces deliver Segment data to EU-based AWS storage. Follow the instructions in that sections that follow to make sure your sources are configured correctly.
168+
Sources within EU workspaces deliver Segment data to EU-based AWS storage.
126169

127170
## EU Storage Updates
128171
### Segment Data Lakes (AWS)

0 commit comments

Comments
 (0)