Store Client Session

This event should be triggered in 2 instances:

  1. When the first item is added to a cart

  2. At the beginning of a browser session, and if there is an existing cart.

window._mp.safeExecute('evStoreClientSession', function() {
   eedl('store_client_session', {
      cart_token: '<cart id or cart token>'
    });
  })();

If the event occurs in a iframe window, you need to fire the event using the below script.

window.top.postMessage({
      event_name: 'store_client_session',
      event_payload: {
            cart_token: '<cart id or cart token>'
          }
    },
    'PARENT_URL'
);

PARENT_URL is the url of the website.

arrow-up-right

Last updated