Configuration for Highlight client recording.
backendUrl string
optional
Specifies the URL that Highlight will send data to. You should not use this unless you are running an on-premise instance. You may be interested in Proxying to make sure your errors and sessions are not blocked by extensions.
manualStart boolean
optional
Specifies if Highlight should not automatically start recording when the app starts. This should be used with H.start() and H.stop() if you want to control when Highlight records. The default value is false.
disableConsoleRecording boolean
optional
Specifies whether Highlight records console messages. It can be helpful to set this to true while developing locally so you can see where console messages are being made in your source code. The default value is false.
consoleMethodsToRecord string[]
optional
The value here will be ignored if disabledConsoleRecording is true. The default value is ['assert', 'count', 'countReset', 'debug', 'dir', 'dirxml', 'error', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'table', 'time', 'timeEnd', 'timeLog', 'trace', 'warn'].
reportConsoleErrors boolean
optional
If true, console.error calls will be logged as errors. The default value is false.
enableSegmentIntegration boolean
optional
Allows patching of segment requests to enhance data automatically in your application (i.e. identify, track, etc.). The default value is false.
environment string
optional
Specifies the environment your application is running in. See Environments to see how setting the environment can help you move faster. The default value is production.
privacySetting 'strict' | 'default' | 'none'
optional
Specifies how much of the content Highlight should redact during recording. There are 3 levels of privacy:
'strict' - Redact all text and images on the page. This is the safest way to ensure you are not recording any personally identifiable information without having to manually add annotations to elements you don't want to be recorded. 'default' - Highlight will redact any text or input data that matches common regex expressions and input names of personally identifiable information. No images or media will be redacted. 'none' - All text and content will be recorded as it is displayed on the page. See Privacy to learn more about the privacy options. The default value is 'default'. enableCanvasRecording boolean
optional
Specifies whether Highlight will record the contents of <canvas> elements. See Canvas for more information. The default value is false.
enablePerformanceRecording boolean
optional
Specifies whether Highlight will record performance metrics (e.g. FPS, device memory).
tracingOrigins boolean | (string | RegExp)[]
optional
Specifies where the backend of the app lives. If specified, Highlight will attach the X-Highlight-Request header to outgoing requests whose destination URLs match a substring or regexp from this list, so that backend errors can be linked back to the session. If true is specified, all requests to the current domain will be matched. Example tracingOrigins: ['localhost', /^//, 'backend.myapp.com']
recordCrossOriginIframe boolean
optional
Specifies that cross-origin iframe elements should be recorded. Should be set in both the parent window and in the iframe. See cross-origin iframe recording for more details.
urlBlocklist string[]
optional
Specifies a list of URLs to block before sending events to the Highlight back end. URLs can be fully-qualified or partial substring matches. Example: urlBlocklist: ["//www.high", "light.io"]
inlineImages boolean
optional
Specifies whether to record image content. We default inlineImages to true on localhost and false on other domains. Inlined images that are otherwise only available on localhost can be sent to Highlight's servers and used in session replay; however, this can cause CORS errors. Explicitly set inlineImages to false to resolve CORS errors.
inlineStylesheet boolean
optional
Specifies whether to inline CSS style tags into the recording. When not set, defaults to true which will inline stylesheets to make sure apps recorded from localhost or other non-public network endpoints can be replayed. Setting to false may help with CORS issues caused by fetching the stylesheet contents, as well as with performance issues caused by the inlining process.