Get started with fingerprintjs2 CDN

MIT licensed

FingerprintJS2 generates unique identifiers from browser, device info.

Tags:
  • browser
  • identification
  • fingerprint
  • fingerprinting
  • privacy

Stable version

Copied!

How to start using fingerprintjs2 CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with fingerprintjs2 CDN - cdnhub.io</title>
    <script src="https://cdn.jsdelivr.net/npm/fingerprintjs@4.2.2/fp.min.js"></script>
    <script src="https://cdn.cdnhub.io/fingerprintjs2/4.2.2/fingerprint2.min.js"></script>
</head>
<body>
    <button id="generate">Generate Fingerprint</button>
    <script>
        document.getElementById('generate').addEventListener('click', async () => {
            const fp = new FingerprintJS();
            const result = await fp.getPromise();
            console.log(result.hash);
        });
    </script>
</body>
</html>

All versions