Skip to content

Commit 1df20d4

Browse files
Merge pull request #4510 from segmentio/prigiattiperrut-patch-2
Update two topics to clarify current behavior
2 parents 49560d8 + c76d686 commit 1df20d4

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 returning a `200` response from the Segment servers, but the event will be silently dropped once it enters Segment's 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 must 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)