JavaScript SDK
Installation
Learn how to install the Tolstoy Widget on your site.
Tolstoy Widget Code
Add the following script at the head on your site:
Replace {{APP_KEY}}
with your account App Key.
<script>
window.tolstoyAppKey='{{ APP_KEY }}'; var s =
document.createElement('script'); s.type = 'text/javascript'; s.async = true;
s.src = 'https://widget.gotolstoy.com/widget/widget.js';
document.head.appendChild(s);
</script>
For Shopify users the script is added automatically using the ScriptTag API