> For the complete documentation index, see [llms.txt](https://support.storefront.co.za/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.storefront.co.za/features/stores/themes/scripts.md).

# Scripts

The Scripts section lets you add custom scripts to your storefront, giving you more control over how the front end behaves.

The most common use is adding a third-party tool. A live chat provider, for example, gives you a script to place on your site, and you paste it here rather than needing a developer to change your template.

### How to Add a Script

1. Click on the name of the store you wish to add the script to
2. Click on Scripts under Themes
3. Click on the Create icon
4. Enter the details on the Settings page
5. Click on the Script tab
6. Enter your script
7. Click Save
8. Open your storefront and confirm the script works and that the rest of the page still behaves normally

{% hint style="warning" %}
A script runs on your live storefront, so a faulty one can break pages or slow the store down. Only add scripts from providers you trust, and check your storefront straight after saving.
{% endhint %}

{% hint style="info" %}
If a third-party script does not load, your content security policy may be blocking it. Add the provider's address under Store Settings > Security & Privacy > Content security policy.
{% endhint %}
