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

Inclusive Data Management System Online Course

Public·62 Learners

Groups Activity: Last 30 Days


New Posts

0


New Learners

0

About

Welcome to the group! You can connect with other members, get updates and share videos.

Info

  • Public

    Anyone can view this group.

  • Visible

    Shown to site visitors.

  • March 19, 2021

    Created

  • CDP Foundation, Inc.
    CDP Foundation, Inc.

    Created by

bottom of page