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);

Forum Posts

Peter Atkin
Jul 07, 2022
In Questions & Answers
Is it true or not that you are searching for valid Law essay writing service? Look no place else than the UK tasks journalists for precise and dependable administrations. They have everything essayists who can manage your task regardless of the subject. Entrusting anybody with your paper or task is hard, however you can pick the essayist you need to work with when you have a stage that offers many advantages. What else might you at some point request?