Skip to content

Commit 52d4c06

Browse files
authored
Merge pull request #5732 from segmentio/prigiattiperrut-patch-4
Adding notes that cover the recent Safari updates .md
2 parents a01cde3 + a6521b4 commit 52d4c06

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ The object means that you are successfully loading Analytics.js onto your websit
1616

1717
![Returning analytics object error](images/CFsktto.gif)
1818

19+
Segment also provides a Chrome web extension, [Segment Inspector](/docs/connections/sources/catalog/libraries/website/javascript/#segment-inspector), which you can use to validate that you're successfully loading Analytics.js.
20+
1921
Solution: [Follow the Analytics.js Quickstart Guide](/docs/connections/sources/catalog/libraries/website/javascript/quickstart/)
2022

2123
## Are you loading two instances of Analytics.js?
@@ -80,15 +82,26 @@ The JavaScript console reveals all requests, outbound and inbound, to your brows
8082
- **Safari**: `COMMAND+OPTION+I` (Mac) or `CTRL+ALT+I` (Windows) and then click on the **Console** tab.
8183
- **IE**: `F12` and then click on the **Console** tab.
8284

85+
Alternatively, Segment provides the [Segment Inspector](/docs/connections/sources/catalog/libraries/website/javascript/#segment-inspector), a Chrome web extension designed to enable debugging of your Segment integration in web applications that are instrumented with Analytics.js.
86+
8387
## Is there a size limit on requests?
8488

8589
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.
8690

91+
## Analytics.js failing to load due to Ad Blockers or Browser Privacy Settings
92+
93+
Segment advises against circumventing tracking blockers or browser privacy settings for client-side tracking. The user has ultimate control as to what gets loaded on the page. Segment acknowledges that this can result in some data loss in client-side tracking and suggests [workarounds](/docs/connections/sources/catalog/libraries/website/javascript/#ad-blocking) to address this issue.
94+
95+
## Analytics.js and Destinations not tracking query string parameters on certain Safari iOS and MacOS Versions
96+
97+
Due to updates in certain Safari iOS and MacOS versions, Segment's Analytics.js and Destinations tools might experience limitations in capturing query string parameters. As a result, you may notice some events missing campaign information.
98+
8799
## If Analytics.js fails to load, are callbacks not fired?
88100

89101
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.
90102

91103
## Why do I see a network request to `/m`?
104+
92105
In May 2018, Segment released a change to Analytics.js that collects client-side performance metrics in Analytics.js. This includes metrics like:
93106

94107
- When client side integrations are initialized and when they fail
@@ -99,6 +112,7 @@ Segment added these metrics to proactively identify and resolve issues with indi
99112
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.
100113

101114
## How are properties with `null` and `undefined` values treated?
115+
102116
Segment uses the [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify){:target="blank"} method under the hood. Property values set to `null` or `undefined` are treated in accordance with the expected behaviour for the standard method:
103117

104118
```js

0 commit comments

Comments
 (0)