fingerprint-javascript
Fingerprint — JavaScript
Integrate Fingerprint into a vanilla JavaScript app with the JS Agent directly: initialize the
agent once at startup, then ask it for the visitor's visitor_id and a single-use event_id
wherever you need it (on load, or on an action like login or checkout).
Use this skill when there is no framework SDK to use. For React (or Preact), Vue, Angular, Svelte,
or Next.js, use fingerprint-react / fingerprint-vue / fingerprint-angular /
fingerprint-svelte / fingerprint-nextjs instead — they wrap this same agent with
framework-native APIs and built-in caching.
Docs: https://docs.fingerprint.com/docs/javascript-quickstart · JS Agent v4: https://docs.fingerprint.com/reference/js-agent-v4
Package
@fingerprint/agent — install the latest version. The npm package is a loader: it downloads
the current agent from the CDN at runtime rather than bundling the fingerprinting logic, so don't
vendor or self-host the agent bundle. With no build step, skip the install and import from the CDN
instead — see snippets/cdn.html.