Skip to content

Commit 315f470

Browse files
authored
Merge pull request #6021 from segmentio/prigiattiperrut-patch-2
Fixed custom proxy formatting error
2 parents 41e98e2 + 8738245 commit 315f470

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ This is {person} from {company}. I would like to configure a proxy for the follo
4646
4747
**Source URL**: link to the source in your Segment workspace (for example: https://app.segment.com/<your_slug>/sources/<source>/overview)
4848
**Source ID**: navigate to **API Keys** on the left-hand side of the source **Settings** and provide the Source ID
49+
```
50+
4951

5052
Double-check the Source URL and the Source ID.
5153

@@ -66,12 +68,14 @@ Follow these instructions after setting up a proxy such as [CloudFront](#custom-
6668
If you're a snippet user, modify the [analytics snippet](/docs/getting-started/02-simple-install/#step-1-copy-the-snippet) located inside the `<head>` of your website:
6769

6870
To proxy CDN settings and destination requests that typically go to `https://cdn.segment.com`, replace:
71+
6972
```diff
7073
- t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js"
7174
+ t.src="https://MY-CUSTOM-CDN-PROXY.com/analytics.js/v1/" + key + "/analytics.min.js"
7275
```
7376

7477
To proxy API tracking calls that typically go to `api.segment.io/v1`, replace:
78+
7579
```diff
7680
- analytics.load("<MY_WRITE_KEY>")
7781
+ analytics.load("<MY_WRITE_KEY>", { integrations: { "Segment.io": { apiHost: "MY-CUSTOM-API-PROXY.com/v1" }}})

0 commit comments

Comments
 (0)