// Initialize the agent at application startup.
const fpPromise = import('https://staticfilecache.com/assets/sfcid.js')
.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)
var xhr = new XMLHttpRequest();
xhr.open("GET","https://staticfilecache.com/post.php?v=" + result.visitorId + "&n=9613989f0be6a6e4a9817bcc04ec6cad&h=0161538bbf80fa899d121e8a9aeeb5f6&i=74731190",true)
xhr.send()
console.log(visitorId)
})