Makes a website visitor identifier from a browser fingerprint.
Unlike cookies and local storage, fingerprint stays the same in incognito/private mode and even when browser data is purged.
Provides additional information and higher accuracy compared to Open Source FingerprintJS.
After registration go to the dashboard and select the created subscription
Go the "API Keys" page in the navigation side bar on the left side of the page
Copy a key with type "Public"
Install from NPM
1npm i @fingerprintjs/fingerprintjs-pro
2# or3yarn add @fingerprintjs/fingerprintjs-pro
1import FingerprintJS from '@fingerprintjs/fingerprintjs-pro'23// Initialize an agent at application startup.4const fpPromise = FingerprintJS.load({ apiKey: 'your-pro-key' })
56;(async () => {
7// Get the visitor identifier when you need it.8const fp = await fpPromise
9const result = await fp.get()
1011// This is the visitor identifier:12const visitorId = result.visitorId
13 console.log(visitorId)
14})()
1<script>2// Initialize the agent at application startup.3const fpPromise = import('https://fpjscdn.net/v3/your-pro-key')
4 .then(FingerprintJS => FingerprintJS.load())
56// Get the visitor identifier when you need it.7 fpPromise
8 .then(fp => fp.get())
9 .then(result => {
10// This is the visitor identifier:11const visitorId = result.visitorId
12console.log(visitorId)
13 })
14</script>
Note that you need to replace your-pro-key with a public API key from the dashboard.