Skip to content

Commit f873159

Browse files
stayseesongsilesky
andauthored
Apply suggestions from code review
Co-authored-by: Seth Silesky <[email protected]>
1 parent 08d163c commit f873159

File tree

1 file changed

+3
-4
lines changed
  • src/connections/sources/catalog/libraries/website/javascript

1 file changed

+3
-4
lines changed

src/connections/sources/catalog/libraries/website/javascript/custom-proxy.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const analytics = AnalyticsBrowser.load({
7070
})
7171
```
7272

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`.
7474
```ts
7575
const analytics = AnalyticsBrowser.load(
7676
{
@@ -80,9 +80,8 @@ const analytics = AnalyticsBrowser.load(
8080
{
8181
integrations: {
8282
'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"
8685
}
8786
}
8887
}

0 commit comments

Comments
 (0)