Learn about the different parameters of the Options object
Options are set by calling window.birdeatsbug.setOptions(options: Partial<SDKOptions>), which takes an object containing a partial of all options as parameter. The snippet on the installation page already contains a call to the function. setOptions needs to be called at least once at page load within the snippet to pass publicAppId, but can be called at any time after with a new subset of options. One call of setOptions can set one or many options. All properties not explicitly set use the previous value, or fall back to the default value.
Is the only mandatory option property without default value. Can be generated in the workspace settings. Without a valid publicAppId, uploading sessions is not possible.
instantReplay
Boolean which toggles the instant replay feature on or off. It is false (turned off) by default.
recordVideo
If enabled, the screen is recorded using video instead of a DOM based screen reconstruction. This is helpful in web apps that contain elements that can’t be (correctly) recorded with DOM recording, like Canvas. recordVideo is disabled by default, because:
Recording video is more resource intensive and results in larger files.
Not all browsers have the required capability, getDisplayMedia. E.g. mobile browsers currently do not support it. At this time, video recording is also not available on desktop Safari, albeit for other reasons.
Screen recording using video is interrupted by page navigation. Hence video recording is most suitable for single page applications.
When recordVideo is true and a user starts a screen recording using a browser that does not support getDisplayMedia, the SDK falls back to DOM recording, as if recordVideo was not enabled.
user.email
Attaches the email address to the session. If the email input field is not hidden on the preview screen, the user can change this prefilled value before uploading a session.
integrations
Integrations allow SDK to integrate with other popular client-side widgets/tools:
When set to false, DOM mutation recording is disabled.
When an object is passed, it allows to override the rrweb options which SDK passes by default. The passed object must be a Partial.
See [DOM recording documentation](/docs/bug-capture/references/dom-recording) for additional details about DOM recording.
Did this page help you?
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback
ON THIS PAGE
Is this page helping you?
Yes
No
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked