Skip to content

Commit 06404a9

Browse files
authored
Merge pull request #518 from segmentio/repo-sync
repo sync
2 parents 455581c + 22c48f4 commit 06404a9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ In the above, the `p` is a [`page`](/docs/connections/spec/page) call and the `i
4545

4646
Some destinations send data directly from the website to their servers. You can check the Network tab in your JavaScript console to see the outbound web services requests being initiated.
4747

48-
In the below image, we use Google Analytics as an example. Our `page` call forms an outbound request that looks like this:
48+
In the image below, with Google Analytics as an example, the `page` call forms an outbound request that looks like this:
4949

5050
![Google Analytics outbound request](images/CBdS5dO.png)
5151

@@ -76,24 +76,24 @@ 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 message.
79+
Yes, 32KB per event message. Events with a payload larger than 32kb are dropped, and Segment's servers respond with a `500` error.
8080

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

8383
In the event that Analytics.js does not load, callbacks passed into your API calls do not fire. This is as designed, because the purpose of callbacks are to provide an estimate that the event was delivered and if the library never loads, the events won't be delivered.
8484

8585
## Why do I see a network request to `/m`?
86-
In May 2018, we rolled out a change to Analytics.js that allows us to collect client side performance metrics in Analytics.js. This includes metrics such as:
86+
In May 2018, Segment released a change to Analytics.js that collects client-side performance metrics in Analytics.js. This includes metrics like:
8787

8888
- When client side integrations are initialized and when they fail
8989
- When messages are sent to client side integrations and when they fail
9090

91-
We added these metrics so that we can proactively identify and resolve issues with individual client-side integrations. These metrics are connected to alerts that notify our on-call engineers so we can take action on these quickly.
91+
Segment added these metrics to proactively identify and resolve issues with individual client-side integrations. These metrics are connected to alerts that notify Segment's on-call engineers to take action on these quickly.
9292

93-
There should be no noticeable impact to your data flow. You may notice Analytics.js make an extra network request in the network tab to carry the metrics data to our servers. This should be very infrequent since the data is sampled and batched every 30 seconds, and should not have any impact of website performance.
93+
There should be no noticeable impact to your data flow. You may notice Analytics.js make an extra network request in the network tab to carry the metrics data to Segment's servers. This should be very infrequent since the data is sampled and batched every 30 seconds, and should not have any impact of website performance.
9494

9595
## How are properties with `null` and `undefined` values treated?
96-
We use the [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) method under the hood. Property values set to `null` or `undefined` are treated in accordance with the expected behaviour for the standard method:
96+
Segment uses the [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) method under the hood. Property values set to `null` or `undefined` are treated in accordance with the expected behaviour for the standard method:
9797

9898
```js
9999
console.log(JSON.stringify({ x: null, y: 6 }));
@@ -131,6 +131,6 @@ analytics.track("Receipt Viewed", {}, {
131131

132132
This works for any [context field](/docs/connections/spec/common/#context) that Segment automatically collects.
133133

134-
## Known Issues:
134+
## Known issues:
135135

136136
[Review and contribute to these on GitHub](https://github.com/segmentio/analytics.js/issues)

0 commit comments

Comments
 (0)