@alwaysmeticulous/recorder-loader
v2.171.0
Published
Utility package used to aid the injection of the Meticulous recorder snippet on web apps.
Downloads
29,358
Keywords
Readme
Meticulous Recorder loader
Utility package used to aid the injection of the Meticulous recorder snippet on web apps.
Installing
npm install @alwaysmeticulous/recorder-loader --save
# or with yarn
yarn add @alwaysmeticulous/recorder-loader
Usage
Within your app entrypoint:
import { loadAndStartRecorder } from '@alwaysmeticulous/recorder-loader'
async function startApp() {
// Start the Meticulous recorder before you initialise your app.
try {
await loadAndStartRecorder({
recordingToken: '<recording token>',
})
} catch (err) {
console.error(`Meticulous failed to initialise ${err}`)
}
// Initalise app after Meticulous' snippet, e.g:
ReactDOM.render(component, document.getElementById('root'))
}
startApp();