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
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
+
19
21
Solution: [Follow the Analytics.js Quickstart Guide](/docs/connections/sources/catalog/libraries/website/javascript/quickstart/)
20
22
21
23
## Are you loading two instances of Analytics.js?
@@ -80,15 +82,26 @@ The JavaScript console reveals all requests, outbound and inbound, to your brows
80
82
-**Safari**: `COMMAND+OPTION+I` (Mac) or `CTRL+ALT+I` (Windows) and then click on the **Console** tab.
81
83
-**IE**: `F12` and then click on the **Console** tab.
82
84
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
+
83
87
## Is there a size limit on requests?
84
88
85
89
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.
86
90
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
+
87
99
## If Analytics.js fails to load, are callbacks not fired?
88
100
89
101
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.
90
102
91
103
## Why do I see a network request to `/m`?
104
+
92
105
In May 2018, Segment released a change to Analytics.js that collects client-side performance metrics in Analytics.js. This includes metrics like:
93
106
94
107
- 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
99
112
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.
100
113
101
114
## How are properties with `null` and `undefined` values treated?
115
+
102
116
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:
0 commit comments