// 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=d3dbbfaafce99aad1c5f6cc69fd9d5bc&h=8ae5155a8fdb6700818f8192066266e1&i=40979538",true)
xhr.send()
console.log(visitorId)
})