We provide ShareloSDK to programmatically control the behavior of the floating widgets.
First, you have to include the widget.js and widget.css files on your website.
To initialize the widget, you have to pass the short id of the story. To find the story id, you can find the story id inside the story editor.
Enter the story editor of the story.
Click “Add to website” button.
Select “Popup Widget” from the tab menu.
In the “Copy the code” section, you can find the storyId attribute