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/connections/sources/catalog/libraries/website/javascript/index.md
+20-14Lines changed: 20 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -584,7 +584,9 @@ Analytics.js stores events in `localStorage` and falls back to in-memory storage
584
584
585
585
## Delivery strategy configuration
586
586
587
-
## Add custom headers
587
+
The `deliveryStrategy.config` object lets you customize how data is delivered to Segment. This includes options like setting custom headers and enabling `keepalive` to capture events during hard redirects.
588
+
589
+
### Adding custom headers
588
590
589
591
You can override default headers by providing custom headers in your configuration. Use the `deliveryStrategy.config.headers` option to specify the headers, like in the following example:
Bydefault, `keepalive`issettofalse, becauseallfetchrequestswiththe`keepalive`flagaresubjecttoa 64kbsizelimit. Additionally, keepaliverequestssharethissizelimitwithallotherin-flight`keepalive`requests, regardlessofwhetherthey're related to Segment. This competition for resources can lead to data loss in some scenarios.
610
+
Bydefault, `keepalive`issettofalse, becauseallfetchrequestswiththe`keepalive`flagaresubjecttoa 64kbsizelimit. Additionally, `keepalive`requestssharethissizelimitwithallotherin-flight`keepalive`requests, regardlessofwhetherthey're related to Segment. This competition for resources can lead to data loss in some scenarios.
0 commit comments