function registerListener() {
window.wixDevelopersAnalytics.register(
'cf06bdf3-5bab-4f20-b165-97fb723dac6a',
(eventName, eventParams, options) => {
const XSRFToken = getXSRFTokenFromCookie()
fetch(
`${window.location.origin}/_serverless/analytics-reporter/facebook/event`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-XSRF-TOKEN': XSRFToken,
},
body: JSON.stringify({ eventName, data: eventParams }),
},
);
},
);
function getXSRFTokenFromCookie() {
var match = document.cookie.match(new RegExp("XSRF-TOKEN=(.+?);"));
return match ? match[1] : "";
}
}
window.wixDevelopersAnalytics
? registerListener()
: window.addEventListener('wixDevelopersAnalyticsReady', registerListener);
top of page
bottom of page
A lot of people fall for such fraud, and the worst thing is that when they are caught in this fraud, they do not take any action and the fraudsters manage to deceive people further.
A criminal defense attorney can help you protect your rights and interests in court. He can represent your side of the case and try to recover the damages you have suffered. However, before you contact a lawyer, you should gather all possible evidence of fraud, such as phone records, emails, etc. This will make it a lot easier for the lawyer. A friend of mine was once in this situation, Ottawa Criminal Lawyers helped him avoid financial loss and the fraudsters were punished according to the law.