You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guides/regional-segment.md
+52-9Lines changed: 52 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,22 +17,46 @@ Segment provides regional infrastructure in both the United States and Europe. B
17
17
18
18
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.
19
19
20
-
## Regional Data Ingestion
20
+
## Ingestion behavior and failover
21
21
22
22
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.
23
23
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.
| 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
25
47
26
48
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.
27
49
28
50
> warning "Use the correct endpoint"
29
51
> 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.
30
52
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:
32
54
33
-
`https://events.eu1.segmentapis.com/v1`
55
+
```
56
+
https://events.eu1.segmentapis.com/v1
57
+
```
34
58
35
-
### SDK configuration examples
59
+
#### Mobile SDK configuration examples
36
60
37
61
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.
38
62
@@ -65,14 +89,16 @@ If you're using the Segment EU endpoint with Analytics-C# source, you must manua
65
89
66
90
For workspaces using the `EU WEST` data processing region, the Dublin ingestion region is preselected for all sources.
67
91
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
69
95
70
96
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.
71
97
72
98
> warning "Use the correct endpoint"
73
99
> 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.
74
100
75
-
### SDK configuration examples
101
+
#### Server-side SDK configuration examples
76
102
77
103
Use this example to configure your SDK:
78
104
@@ -92,7 +118,7 @@ const analytics = new Analytics({
92
118
> info "C# SDK"
93
119
> If you're using the C# SDK, you must manually append /v1 to the host URL: `https://events.eu1.segmentapis.com/v1`.
94
120
95
-
### Custom HTTP requests
121
+
####Custom HTTP requests
96
122
97
123
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:
98
124
@@ -107,6 +133,23 @@ If you're sending data using custom HTTP requests or through a proxy and you’v
107
133
108
134
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.
109
135
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
+
110
153
## Create a new workspace with a different region
111
154
112
155
> info ""
@@ -122,7 +165,7 @@ Segment workspaces use US data residency by default. If you need EU data residen
122
165
> info ""
123
166
> 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.
124
167
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.
0 commit comments