fingerprint-visitor-id
v1.0.3
Published
A simple package to get the visitor ID using FingerprintJS via CDN
Maintainers
Readme
Fingerprint Visitor ID
This package provides an easy way to get the visitorId using FingerprintJS via a CDN.
Installation
You can install the package using npm:
npm install fingerprint-visitor-id
## use
import React, { useEffect } from 'react';
import { getVisitorId } from 'fingerprint-visitor-id';
function App() {
useEffect(() => {
// Call the function to get the visitorId
getVisitorId()
.then(visitorId => {
console.log("Visitor ID:", visitorId);
})
.catch(error => {
console.error("Error fetching visitor ID:", error);
});
}, []);
return (
<div>
<h1>Check the console for the Visitor ID</h1>
</div>
);
}
export default App;