File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/connections/sources/catalog/libraries/website/javascript Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ const analytics = AnalyticsBrowser.load({
70
70
})
71
71
```
72
72
73
- You can proxy event calls that typically go to ` https:// api.segment.io` by configuring ` integrations['Segment.io'].apiHost ` .
73
+ You can proxy tracking calls that typically go to ` api.segment.io/v1 ` by configuring ` integrations['Segment.io'].apiHost ` .
74
74
``` ts
75
75
const analytics = AnalyticsBrowser .load (
76
76
{
@@ -80,9 +80,8 @@ const analytics = AnalyticsBrowser.load(
80
80
{
81
81
integrations: {
82
82
' Segment.io' : {
83
- // POST https://api.segment.io/v1/t ->
84
- // https://MY-CUSTOM-API-PROXY.com/v1/t
85
- apiHost: ' MY-CUSTOM-API-PROXY.com' //
83
+ // POST https://api.segment.io/v1/t -> https://MY-CUSTOM-API-PROXY.com/t
84
+ apiHost: ' MY-CUSTOM-API-PROXY.com' // omit the protocol (http/https) e.g. "api.segment.io/v1" rather than "https://api.segment.io/v1"
86
85
}
87
86
}
88
87
}
You can’t perform that action at this time.
0 commit comments