React with Vite
Clearlook in a React (or Vue, Svelte) app built with Vite.
- The tag goes in
index.htmlinside<head>. It records route changes from any router. - npm: the package isn't on npm yet; use the tag.
- Users: after sign-in,
setConsent('granted')thenidentify(user.id);reset()on sign-out. - Events:
capture('Checkout started', { items: 3 })at the moment it happens, not in a render. - Errors:
@sentry/reactwith the DSN; source maps fromvite build --sourcemapupload in CI (errors-sourcemaps), and the.mapfiles are not deployed publicly.