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({
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
7575const 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 }
You can’t perform that action at this time.
0 commit comments