一键导入
fingerprint-angular
Integrate Fingerprint device identification into an Angular 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 an Angular app — initialize the agent and get the visitor's visitor_id and event_id.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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.
Set up no-code automatic protection with the Fingerprint Rules Engine — block or allow visitors based on Smart Signals without writing decision code — and consume the rule outcome server-side. Use when the user wants automatic protection, to build their first rule, or to enforce policy without hand-coding signal checks.
基于 SOC 职业分类
| name | fingerprint-angular |
| description | Integrate Fingerprint device identification into an Angular app — initialize the agent and get the visitor's visitor_id and event_id. |
Integrate Fingerprint into an Angular app to identify visitors: register the provider 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).
Docs: https://docs.fingerprint.com/docs/angular · JS Agent v4: https://docs.fingerprint.com/reference/js-agent-v4
@fingerprint/angular — install the latest version.
FINGERPRINT_PUBLIC_API_KEY — the public key, safe to ship to the browser.Angular has no
.envat runtime — config is baked in at build time. Put the public key and region insrc/environments/environment.ts(andenvironment.prod.tsfor production, swapped in viafileReplacements) and read them from there. Never put the secret key inenvironment.ts— it ships to the browser.
Install @fingerprint/angular.
Initialize once at the app root. Register provideFingerprint, passing the public key and
region (us | eu | ap, matching the workspace) via startOptions. For a standalone app
this goes in src/app/app.config.ts. See snippets/app.config.ts.
Get the identification where you need it. Inject FingerprintService and call
getVisitorData() on the action you care about; it returns { visitor_id, event_id, ... }. See
snippets/login.component.ts.
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).provideFingerprint once at the app root; don't re-provide it per component.getVisitorData() is async — await it inside the action handler and handle errors so a failed
identify doesn't break the flow.@fingerprintjs/fingerprintjs-pro, FingerprintJS.load(), or scriptUrlPattern.