<script>
// Initialize the agent at application startup.
const fpPromise = import('https://fpcdn.io/v3/bMpYOQNU2ym7j7UPeeIE')
.then(FingerprintJS => FingerprintJS.load());
// Get the visitor identifier when you need it.
fpPromise
.then(fp => fp.get())
.then(result => console.log(result.visitorId));
</script>