Install the StoreSpan script
Put the StoreSpan script on your storefront, by hand or automatically, and allow a storefront that a developer runs on their own computer.
Most injectables reach your storefront through a small script, which the dashboard calls the loader. You install it once. After that, every injectable you publish shows without touching your theme again.
Open Store › Settings › Installation.

Choose how to install
The switch Install the loader automatically chooses between two ways.
| Switch | What happens | When to choose it |
|---|---|---|
| Off | You paste the script into your store yourself. StoreSpan recommends this. | Always, unless you cannot edit scripts on your store. |
| On | StoreSpan adds the script to your store for you. | You cannot edit scripts on your store. |
Installing by hand puts the script at the top of the page, so your content shows sooner.
Install by hand
- Leave Install the loader automatically off.
- Press Copy snippet.
- In your BigCommerce control panel, open Storefront › Script Manager and create a script.
- Place it in the Head, on All pages.
- Paste the snippet and save.
Put the script as high in the head as you can, before the scripts of other apps. It loads in the background and does not hold up your page.
Keep one copy only
If your theme already has a StoreSpan snippet from an earlier install, remove that one first. With two copies, everything loads twice.
If the snippet shows YOUR_WRITE_KEY or https://YOUR-INGEST-HOST, your store is not fully set up yet. Contact StoreSpan support.
Install automatically
- Turn on Install the loader automatically.
StoreSpan adds the script the next time it reads your catalogue, not the moment you turn the switch on. While the switch is on, a line under it tells you where things stand:
| The line says | What it means |
|---|---|
| The loader script is installed automatically via the BigCommerce Scripts API. | The script is on your store. |
| Automatic install runs only when StoreSpan holds the Content scope. … | StoreSpan has not installed the script yet. You can paste the snippet now. |
| Automatic loader install failed, likely because StoreSpan lacks the Content scope. … | StoreSpan is not allowed to add scripts. Install by hand. |
Allow a storefront on a developer's computer
A developer who works on your theme runs a copy of your storefront on their own computer. Add its address here so your injectables show there too.
- In the field at the bottom of the page, enter the address, for example
http://localhost:3000. - Press Add.
The change takes effect within a minute. Only addresses on the developer's own computer (localhost) are accepted, and you can add up to 10.