How to install and integrate the Saypien JavaScript Library
<HEAD>
section of your HTML file:
buttonId
(Optional): The ID of the button that triggers the event listener. Set this to null
if no button is used and the overlay should appear directly when the page loads.surveyId
(Required): The survey ID used for the iFrame URL.onComplete
(Optional): Callback function to be executed when the survey is completed.onClose
(Optional): Callback function to be executed when the close button is clicked.onOpen
(Optional): Callback function to be executed when the overlay is opened.onStart
(Optional): Callback function to be executed when the survey is started.The overlay is not displayed
surveyId
is correctly provided and that the button with
the specified buttonId
exists.An error is displayed in the console