Install the Meticulous recorder via a script tag
Please select your framework or build tool:
Tag sessions with your app's commit
Optionally, tell the recorder which commit your app was built from, and every recorded session is tagged with it. Use whichever fits your setup:
- A
data-commit-hash="<commit sha>"attribute on the recorder script tag. - The
commitHashoption of@alwaysmeticulous/recorder-plugin, or theMETICULOUS_APP_COMMIT_HASHenvironment variable at build time. - The
commitHashoption oftryLoadAndStartRecorderin@alwaysmeticulous/recorder-loader.
The value is read when the recorder starts, so inject it at build time, for example from your hosting provider's commit variable (VERCEL_GIT_COMMIT_SHA on Vercel). Pass a commit that stays in your repository: on GitHub Actions pull_request builds, GITHUB_SHA is a temporary merge commit that GitHub deletes once the pull request closes.