Skip to content
LogoLogo

FingerprintJS

@picked/fingerprintjs adds the FingerprintJS visitor ID to the Picked session.

import { createClient } from 'picked'
import { fingerprintjsPlugin } from '@picked/fingerprintjs'
 
const client = createClient({
  projectId: 'your-project-id',
  plugins: [fingerprintjsPlugin()],
})

The plugin has no options.

Visitor ID

The plugin reads window.FingerprintJS, which your own FingerprintJS script gives. The plugin does not load FingerprintJS.

CaseResult
window.FingerprintJS is there in 10 secondsThe plugin calls load() and get(). It sets the fingerprintjs_visitor_id session identifier to the visitorId.
window.FingerprintJS is not there after 10 secondsThe plugin removes the fingerprintjs_visitor_id session identifier.

The SDK sends fingerprintjs_visitor_id in the session context of each analytics event. See Analytics events.

The plugin does nothing outside a browser.