一键导入
fingerprint-vue
Integrate Fingerprint device identification into a Vue 3 (or Nuxt) app — initialize the agent and get the visitor's visitor_id and event_id.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Integrate Fingerprint device identification into a Vue 3 (or Nuxt) app — initialize the agent and get the visitor's visitor_id and event_id.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Integrate Fingerprint device identification into an Angular app — initialize the agent and get the visitor's visitor_id and event_id.
Add Fingerprint to a fullstack Next.js (App Router) app — identify visitors in the browser with the React SDK and verify the event_id server-side with the node SDK in a Route Handler or Server Action.
Integrate the Fingerprint Server API into a Node/Express backend — fetch an event by event_id and read the verified identification and Smart Signals.
Protect the Fingerprint JS Agent (v4) against ad blockers and improve identification accuracy by routing it through a first-party custom subdomain or a proxy integration (Cloudflare, CloudFront, Azure, Nginx) using the v4 `endpoints` option. Use to maximize accuracy after basic identification works, or when requests to the default Fingerprint domain are being blocked.
Integrate the Fingerprint Server API into a Python backend (FastAPI / Django / Flask) — fetch an event by event_id and read the verified identification and Smart Signals.
Integrate Fingerprint device identification into a React (or Preact) app — initialize the agent and get the visitor's visitor_id and event_id.
| name | fingerprint-vue |
| description | Integrate Fingerprint device identification into a Vue 3 (or Nuxt) app — initialize the agent and get the visitor's visitor_id and event_id. |
Integrate Fingerprint into a Vue 3 app to identify visitors: register the plugin once at startup,
then ask it for the visitor's visitor_id and a single-use event_id wherever you need it (on
mount, or on an action like login or checkout).
Docs: https://docs.fingerprint.com/docs/vuejs · JS Agent v4: https://docs.fingerprint.com/reference/js-agent-v4
@fingerprint/vue — install the latest version. (Nuxt uses the same package, registered
client-side. For plain HTML or an unsupported framework, use @fingerprint/agent instead.)
FINGERPRINT_PUBLIC_API_KEY — the public key, safe to ship to the browser.Bundlers only expose prefixed vars to client code — map the key to the bundler's convention:
- Vite:
VITE_FINGERPRINT_PUBLIC_API_KEY→import.meta.env.VITE_...- Vue CLI:
VUE_APP_FINGERPRINT_PUBLIC_API_KEY→process.env.VUE_APP_...Never exposeFINGERPRINT_SECRET_API_KEYto the frontend.
Install @fingerprint/vue.
Initialize once at the app root. Register FingerprintPlugin with app.use(...), passing
the public key and region (us | eu | ap, matching the workspace). See snippets/plugin.js.
Get the identification where you need it. Use the useVisitorData composable. For
identify-on-demand pass { immediate: false } and call getData() on the action you care
about; it returns { visitor_id, event_id, ... }. See snippets/use-visitor-data.vue.
Verify it works. Disable your ad blocker, run the dev server, trigger the call, and confirm
a visitor_id is logged in the browser console (or that the event appears on the dashboard
Events page).
us | eu | ap).isLoading / error state.@fingerprintjs/fingerprintjs-pro, FingerprintJS.load(), or scriptUrlPattern.