> ## Documentation Index
> Fetch the complete documentation index at: https://developers.gotolstoy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

```javascript theme={null}
<script>tolstoyAppKey="{{ APP_KEY }}"</script>
<script type="module"
  async
  src="https://widget.gotolstoy.com/we/widget.js"
></script>
<script
  type="text/javascript"
  nomodule
  async
  src="https://widget.gotolstoy.com/widget/widget.js"
></script>
```

<Note>
  For Shopify users the script is added automatically using the ScriptTag API
</Note>
