How to install
Add@fingerprint/vue as a dependency to your application.
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
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.- Install a new version of the package:
- Update the plugin import and options.
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
- Update
useVisitorDatacalls and result field names:
Update visitor data usage
requestId is now event_id, and visitorId is now visitor_id.