analytics.js-integrations
analytics.js-integrations copied to clipboard
TypeError Cannot read property 'getItem' of null with VWO integration
Since enabling the VWO Segment integration, many days before creating any VWO experiments, I have noticed this error appear in Bugsnag for several users:
TypeError Cannot read property 'getItem' of null https://dev.visualwebsiteoptimizer.com/web/djIkdGU6Ni4wOmFzeW5jJWdxdWVyeQ==/tag-9ccc69fb8de21986f87f9ea7553668ba.js:92:12 g._getWebStore https://dev.visualwebsiteoptimizer.com/web/djIkdGU6Ni4wOmFzeW5jJWdxdWVyeQ==/tag-9ccc69fb8de21986f87f9ea7553668ba.js:92:457 get https://dev.visualwebsiteoptimizer.com/web/djIkdGU6Ni4wOmFzeW5jJWdxdWVyeQ==/tag-9ccc69fb8de21986f87f9ea7553668ba.js:77:153 Object.setPastTriggers https://dev.visualwebsiteoptimizer.com/web/djIkdGU6Ni4wOmFzeW5jJWdxdWVyeQ==/tag-9ccc69fb8de21986f87f9ea7553668ba.js:104:156 Object.setPastTriggers https://dev.visualwebsiteoptimizer.com/web/djIkdGU6Ni4wOmFzeW5jJWdxdWVyeQ==/tag-9ccc69fb8de21986f87f9ea7553668ba.js:254:206 onUrlChange https://dev.visualwebsiteoptimizer.com/web/djIkdGU6Ni4wOmFzeW5jJWdxdWVyeQ==/tag-9ccc69fb8de21986f87f9ea7553668ba.js:110:264 History.a.
node_modules/@bugsnag/browser/dist/bugsnag.js:2722:9 History.t. https://connect.facebook.net/en_US/fbevents.js:25:31098 History.b. [as pushState] node_modules/braintree-web/lib/destructor.js:19:23 node_modules/promise-polyfill/src/index.js:141:8 Object.confirmTransitionTo
Detailed stacktrace:

It always happens after a History pushState event in our React app:

It affects mostly the Chrome mobile web browser on Android. Affected users can't change the page they are on (history.pushState no longer works). I have verified that this is the case using FullStory.