Project settings
-> Developer options
—> Enable 🎥 web replays
. Simply activate the option and reload your web app.
Gleap.initialized("API_KEY");
gets called.
Key | Default | Description |
---|---|---|
blockClass | 'gl-block' | Use a string or RegExp to configure which elements should be blocked. Refer to the privacy chapter. |
blockSelector | null | Use a string to configure which selector should be blocked. Refer to the privacy chapter. |
ignoreClass | 'gl-ignore' | Use a string or RegExp to configure which elements should be ignored. Refer to the privacy chapter. |
ignoreSelector | null | Use a string to configure which selector should be ignored. Refer to the privacy chapter. |
ignoreCSSAttributes | null | Array of CSS attributes that should be ignored. |
maskTextClass | 'gl-mask' | Use a string or RegExp to configure which elements should be masked. Refer to the privacy chapter. |
maskTextSelector | null | Use a string to configure which selector should be masked. Refer to the privacy chapter. |
maskAllInputs | false | Mask all input content as * . |
maskInputOptions | { password: true } | Mask some kinds of input * . Refer to the list. |
maskInputFn | - | Customize mask input content recording logic. |
maskTextFn | - | Customize mask text content recording logic. |
slimDOMOptions | {} | Remove unnecessary parts of the DOM. |
dataURLOptions | {} | Canvas image format and quality. This parameter will be passed to the OffscreenCanvas.convertToBlob() . Using this parameter effectively reduces the size of the recorded data. |
inlineStylesheet | true | Whether to inline the stylesheet in the events. |
hooks | {} | Hooks for events. Refer to the list. |
packFn | - | Refer to the storage optimization recipe. |
sampling | - | Refer to the storage optimization recipe. |
recordCanvas | false | Whether to record the canvas element. Available options: false , true . |
recordCrossOriginIframes | false | Whether to record cross origin iframes. rrweb (see the docs below) has to be injected in each child iframe for this to work. Available options: false , true . |
recordAfter | 'load' | If the document is not ready, then the recorder will start recording after the specified event is fired. Available options: DOMContentLoaded , load . |
inlineImages | false | Whether to record the image content. |
collectFonts | false | Whether to collect fonts in the website. |
userTriggeredOnInput | false | Whether to add userTriggered on input events that indicates if this event was triggered directly by the user or not. What is userTriggered ? |
plugins | [] | Load plugins to provide extended record functions. What are plugins ? |
gl-mask
to the textfield, and Gleap replays will mask the input.
gl-block
to the elements you want to block. Replays will add a blank placeholder with the dimensions of the blocked element. This is especially handy to mask privacy sensitive blocks.