URL

The url option determines the landing page, the visitor is redirected to upon clicking the Promo widget. Parameters provided with one or all of the following configuration options, are passed onto that destination URL.

language

querystring

store

const alertConfig: Partial<AlertConfig> = {
  url: 'https://live.your-storefront.com',
};

Example:

window.LiSA.sdk.config = {
  alert: {
    showId: 'd1572488-c843-4905-9ce0-0ecb9ac7466d',
    url: 'https://live.your-storefront.com',
  },
  language: 'ar',
  querystring: encodeURIComponent('utm_source=LiSA-PromoWidget')
  store: 'uae',
};

The above example configuration would redirect to the following landing page:

https://live.your-storefront.com?language=ar&url_params=utm_source%3DLiSA-PromoWidget&store=uae&lisa_autoplay=d1572488-c843-4905-9ce0-0ecb9ac7466d

Last updated