Needs the JavaScript SDK 19.1.0 or later. The code snippet always loads the latest version. Older versions show the card with Upload a file only.
How the page is captured
- A screenshot shows the visible part of the page.
- To never show the browser’s share prompt for screenshots, set Web screenshots to Never show a browser prompt in Project settings → Developer options → Screenshots & recordings.
- If screen sharing for a recording doesn’t start in a desktop browser (the customer cancels, or it’s blocked), the bar offers Record this page instead.
- When a link loads a new page, a running recording stops, and the bar comes back on the next page with Record again. Route changes in single-page apps don’t stop a recording.
- When the request allows the microphone, desktop browsers show a microphone button in the recording bar.
- The SDK does nothing until a request arrives.
Turn screenshots and recordings off
Gleap.initialize, and pass true to turn it on again.
Turn log requests off
Gleap.initialize. While it’s on, logs sent along with a screenshot or recording follow the Attach logs setting in the dashboard.
Mask content
Screenshots and recordings leave out sensitive content:- Always masked: password fields, and fields whose
autocompleteattribute containscurrent-password,new-password,one-time-code,cc-numberorcc-csc. - Masked: elements with the class
gl-maskorrr-mask, and fields with the attributegleap-ignore="value". - Hidden: elements with the class
gl-blockorrr-block, and elements that match the CSS selectors under Masked elements in Project settings → Developer options → Screenshots & recordings. - The privacy options you set with
Gleap.setReplayOptionsapply too:blockClass,blockSelector,maskTextClass,maskTextSelector,maskAllInputsandmaskInputOptions. - Card payment frames, for example from Stripe, Braintree, Adyen or PayPal, are blacked out in screenshots.
Content Security Policy
If your Content Security Policy restrictsmedia-src (or default-src without a media-src), allow blob: so customers can watch the preview of their recording before they send it.