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

omar sheikh
Nov 23, 2022
In General Discussion
Hey guys, I recently needed help with my logo design, so I took help from logo designers UAE ,and remarkably, without a doubt, these people provide perhaps the best logo design services that you can ever imagine, without a doubt these people are game changers, I’d rather say, they didn’t just leave me satisfied with their services, but rather I felt delighted, undoubtedly, if you are looking for creative solutions, under the supervision of experts, this is your go to place, they offer you full time, round the clock support and are willing to lend an ear to your requirements, ill highly recommend you to visit their website
0
0
6