Adding preliminary browser fingerprinting
This commit is contained in:
@@ -123,6 +123,21 @@
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// Initialize the agent at application startup.
|
||||
const fpPromise = import('https://fpcdn.io/v3/1nM2YaiFE7fxWB2cvWRA')
|
||||
.then(FingerprintJS => FingerprintJS.load())
|
||||
|
||||
// Get the visitor identifier when you need it.
|
||||
fpPromise
|
||||
.then(fp => fp.get())
|
||||
.then(result => {
|
||||
// This is the visitor identifier:
|
||||
const visitorId = result.visitorId
|
||||
console.log(visitorId)
|
||||
})
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body><script>0</script>
|
||||
<div id="main" >
|
||||
|
||||
Reference in New Issue
Block a user