APIs & Integrations

events-api-user
Member

How to disable error logging in LeadIn?

LeadIn integration script https://js.leadin.com/js/v1/xxx.js setups its global error handling by overriding window.onerror.
This breaks other client-side error reporting tools like Sentry, Bugsnag, Rollbar, etc.

Is there a way to disable error reporting in LeadIn?

3 Replies 3
Dadams
HubSpot Employee
HubSpot Employee

How to disable error logging in LeadIn?

@events-api-user we actually released a new version of the Leadin tracking code today, and the new version doesn’t use onerror. You won’t need to change the embed code you’re already using to get the updated JavaScript, so this shouldn’t be anymore, but if you’re still seeing any issues please let me know.

events-api-user
Member

How to disable error logging in LeadIn?

Any update on this? How do I use the version that doesn’t overwrite window.onerror?

events-api-user
Member

How to disable error logging in LeadIn?

v2 script is using window.onerror again now.

0 Upvotes