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
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,23 +63,23 @@ Use the examples in this section to configure mobile SDKs to point to the EU end
63
63
{% codeexample %}
64
64
{% codeexampletab iOS/Android/Xamarin/Flutter %}
65
65
```js
66
-
//Pseudocode example — set these options using your platform's syntax
66
+
//Example configuration — refer to your platform's SDK docs for full option list
67
67
constanalytics=newAnalytics({
68
-
writeKey:'<YOUR_WRITE_KEY>',
69
-
apiHost:"events.eu1.segmentapis.com/v1",
70
-
//other options...
68
+
writeKey:'<YOUR_WRITE_KEY>',// Required: your source's write key from Segment
69
+
apiHost:"events.eu1.segmentapis.com/v1",// Routes data through EU endpoint
70
+
//You can also configure options like flushInterval, debug, or storage providers
71
71
})
72
72
```
73
73
{% endcodeexampletab %}
74
74
75
75
{% codeexampletab React Native %}
76
76
```js
77
-
//Pseudocode example — set these options using your platform's syntax
77
+
//Example configuration — refer to your platform's SDK docs for full option list
78
78
constanalytics=newAnalytics({
79
-
writeKey:'<YOUR_WRITE_KEY>',
80
-
proxy:"https://events.eu1.segmentapis.com/v1",
81
-
useSegmentEndpoints:true,
82
-
//other options...
79
+
writeKey:'<YOUR_WRITE_KEY>',// Required: must belong to an EU workspace
80
+
proxy:"https://events.eu1.segmentapis.com/v1",// Required for EU data routing
81
+
useSegmentEndpoints:true,// Ensures proxy is used instead of default US host
82
+
//You can also set options like flushInterval or trackAppLifecycleEvents
83
83
})
84
84
```
85
85
{% endcodeexampletab %}
@@ -105,18 +105,18 @@ Use this example to configure your SDK:
105
105
{% codeexample %}
106
106
{% codeexampletab Node.js/Python/Java SDKs %}
107
107
```js
108
-
//Pseudocode — set these options using your platform's syntax
108
+
//Example configuration — adjust for your SDK's syntax
109
109
constanalytics=newAnalytics({
110
-
writeKey:'<YOUR_WRITE_KEY>',
111
-
host:"https://events.eu1.segmentapis.com",
112
-
// other options...
110
+
writeKey:'<YOUR_WRITE_KEY>',// Required: must belong to an EU workspace
111
+
host:"https://events.eu1.segmentapis.com",// EU endpoint — do not include /v1 for these SDKs
112
+
//You can configure other options like flushInterval or request retries
113
113
})
114
114
```
115
115
{% endcodeexampletab %}
116
116
{% endcodeexample %}
117
117
118
-
> info "C# SDK"
119
-
> If you're using the C# SDK, you must manually append /v1 to the host URL:`https://events.eu1.segmentapis.com/v1`.
118
+
> info "Endpoint format for server-side SDKs"
119
+
> Most SDKs handle the `/v1` path internally. However, only the C# SDK and custom HTTP requests require you to add `/v1` manually. like`https://events.eu1.segmentapis.com/v1`.
0 commit comments