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

Profile

Join date: Jan 21, 2023

About

0 likes received
2 comments received
0 best answers

Hello there! I'm Ariel Mia, your dedicated partner to provide engineering assignment help. With a passion for problem-solving and a deep understanding of engineering concepts, I'm here to ensure your academic success. As an experienced engineering enthusiast, I bring a toolbox of knowledge to tackle assignments head-on. From mechanical to electrical, civil to software engineering, I've got you covered.

Ariel  Mia

Ariel Mia

More actions
bottom of page