1. JavaScript SDK
  2. Installation

Tolstoy Widget Code

Add the following script at the head on your site:

Replace {{APP_KEY}} with your account App Key.

For Shopify users the script is added automatically using the ScriptTag API

Single Tolstoy Code

If you want only a single widget on a single page you can also load just the Widget ID

By using this you won’t be able to use rules and conditions.

Tolstoy users

If you know the logged in user you can add his email for better tracking.

If you want to add specific Rules & Triggers on users you can skip this and use Identify.