Web
Install ShareloSDK

Installation

We provide ShareloSDK to programmatically control the behavior of the floating widgets.

Install

First, you have to include the widget.js and widget.css files on your website.

<script
  src="https://story.shareloapp.com/widget.js"
  type="text/javascript"
  async
></script>

Find the story ID

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.

Step 1

Enter the story editor of the story.

Step 2

Click “Add to website” button.

Step 3

Select “Popup Widget” from the tab menu.

Step 4

In the “Copy the code” section, you can find the storyId attribute