Package Exports
- visitor-identity-js
- visitor-identity-js/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (visitor-identity-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.
Demo
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!
Installation
You can install the module via npm:
npm i visitor-identity-jsUsage
import React from 'react';
import VisitorId from 'visitor-identity-js';
...
//In React class component
componentDidMount() {
var unique_id = VisitorId();
console.log(unique_id);
}
Supported browsers
The library supports all popular browsers. See more details and learn how to run the library in old browsers in the browser support guide.