Skip to main content
The Fingerprint Vue SDK integrates Fingerprint into Vue 3 applications. It supports all capabilities of the JavaScript agent including a built-in caching mechanism. See the Vue quickstart for a step-by-step guide to get started.

How to install

Add @fingerprint/vue as a dependency to your application.
Register FingerprintPlugin in your application. You need to specify your public API key and other configuration options based on your chosen region and active integration.
Vue 3
Use the useVisitorData hook in your components to identify visitors.
Vue 3

Documentation

You can find the full documentation in the official GitHub repository. The repository also contains example applications demonstrating the usage of the library.

Migration guide for Vue SDK v2.0.0

Version 2.0.0 of the Vue SDK switches from JavaScript agent v3 to JavaScript agent v4.
  1. Install a new version of the package:
  1. Update the plugin import and options.
The default caching strategy has changed from sessionStorage caching to no caching by default, aligned with the underlying JavaScript agent v4 default. To preserve the previous behavior, explicitly configure caching in the plugin options (see example below).
Change plugin imports and usage
  1. Update useVisitorData calls and result field names:
Update visitor data usage
The v4 agent uses snake_case field names. requestId is now event_id, and visitorId is now visitor_id.