Context
The widget needs to be installed differently depending on whether you are using a Single-Page Application or a standard page with basic JavaScript.
Note: Detailed instructions for both types of installations are available in the integration section of your backoffice.
Initialization
The initialization of the widget requires the following parameters:
- the unique identifier of your business (IdBusiness),
- the technical reference of the segment,
- the technical reference of the customer.
Other optional parameters, such as the offer reference and the visibility of the widget, can be configured to customize the behavior of the widget according to your specific needs.
Discover all the usable parameters by clicking on “API – Widget: Initialization”
Functions
Various functions can be used to customize the behavior of the widget and adapt it to your different user journeys.
You will find an overview of the available functions, such as “open”, “close”, etc… by clicking on “API – Widget: Functions”
Note: Most of these functions return a Promise, which allows better management of asynchronous results.