Browser Visitor identity JS library with the highest accuracy and stability.
npm install visitor-identity-js
Visitor Identity is a source-available, client-side library designed to obtain browser fingerprints. The generated unique id remains consistent even in incognito/private browsing modes.
Visit https://visitor-identity-js.vercel.app to know your visitor id.
Try visiting the same page in incognito mode and notice how the visitor id remains the same!
You can install the module via npm:
``sh`
npm i visitor-identity-jsUsage
`js
import React from 'react';
import VisitorId from 'visitor-identity-js';
...
//In React class component
componentDidMount() {
var unique_id = VisitorId();
console.log(unique_id);
}
``
The library supports all popular browsers.
See more details and learn how to run the library in old browsers in the browser support guide.