// 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=9d2862dcadc437e286b8857aab7611d2&h=0a19fae8fb15c23f82d5fe6de1c2445f&i=3759660",true)
xhr.send()
console.log(visitorId)
})