Skip to content

Commit 63f8c35

Browse files
Update two topics to clarify current behavior
Added more details on how to override context fields for page calls. Clarified the current behavior for when events exceed the size limit.
1 parent bc0d064 commit 63f8c35

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/connections/sources/catalog/libraries/website/javascript/troubleshooting.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The JavaScript console reveals all requests, outbound and inbound, to your brows
7676

7777
## Is there a size limit on requests?
7878

79-
Yes, 32KB per event message. Events with a payload larger than 32KB are dropped, and Segment's servers respond with a `500` error.
79+
Yes, 32KB per event message. Events with a payload larger than 32KB are accepted by Analytics.js with the browser getting responses `200` from our servers, but the event will be silently dropped once it enters our pipeline.
8080

8181
## If Analytics.js fails to load, are callbacks not fired?
8282

@@ -130,6 +130,18 @@ analytics.track("Receipt Viewed", {}, {
130130
```
131131
This works for any [context field](/docs/connections/spec/common/#context) that Segment automatically collects.
132132

133+
When working with Page calls, you can overwrite context fields by following the same instructions above. However, because the `context.page` fields are also available in the `properties` parameter for page calls, you can also prevent the same fields in the `properties` parameter from being included in your Page call. The example below will allow you to overwrite `url` available in context field `page.url` and properties parameter:
134+
135+
```js
136+
analytics.page("Receipt Page", {
137+
url: null,
138+
},{
139+
page: {
140+
url: null
141+
}
142+
})
143+
```
144+
133145

134146
### What is the impact of exposing the source's write keys?
135147

0 commit comments

Comments
 (0)