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

Roots Software
Nov 03, 2022
In General Discussion
Roots HCM Software Service in Canada is a premiere software solution that leading companies use. The Roots software has a well-reputed reputation for being one of Canada's best software service providers. Our HR Data software services in Canada is the best way to manage your workforce and help you optimize profits. Our team of experts provides an integrated system that helps you acquire talent, manage employees, integrate systems and grow your business. So, if you want to grow with us, Call us now!
Roots Software content media
0
11
5