// Initialize the agent on page load. const fpPromise = import('https://fpjscdn.net/v3/AnfVk7lj1tl6yg3ngBPN') .then(FingerprintJS => FingerprintJS.load({ region: "eu" })) // Get the visitorId when you need it. fpPromise .then(fp => fp.get()) .then(result => { const visitorId = result.visitorId console.log(visitorId) }) */-->