Delivery
Choose how an injectable reaches your storefront and where on the page it goes.
The Placement card of an injectable starts with the Delivery list. Your choice decides where the content appears, how soon it shows, and whether it can depend on the shopper.
Choose a delivery
| Delivery | Choose it when |
|---|---|
| Loader script (CSS placement on the page) | You want to put content anywhere on a page. This is the usual choice. |
| BigCommerce widget (embedded in a theme region) | Your theme has a place made for extra content, and you want to use it. |
| Server-rendered (pre-built HTML in a theme region) | The content must show at once and is the same for every shopper, such as a menu. |
| Static Page | The content is a page of its own, such as a size guide. |
Each delivery offers different controls over who sees the content:
| Delivery | Targeting rules | Schedule | Frequency cap |
|---|---|---|---|
| Loader script | Yes | Yes | Yes |
| BigCommerce widget | Yes | Yes | Yes |
| Server-rendered | No | Yes | Yes |
| Static Page | No | No | No |
Server-rendered and Static Page need StoreSpan to have the BigCommerce permission to change your store's content. Server-rendered also needs a suitable place in your theme. When your store lacks one of them, the list leaves the choice out and tells you why.
Changing the delivery removes settings
When you change the delivery, StoreSpan removes the settings that the new delivery does not offer. For example, a change from Loader script to Server-rendered removes the targeting rules, so the content shows to every shopper.
Loader script
The StoreSpan script puts the content on the page, in the shopper's browser, beside an element that you point to. It needs the script on your store. See Install the StoreSpan script.

| Field | What to enter |
|---|---|
| Anchor selector | The selector of the element the content goes beside, for example .header. |
| Position | Where the content goes: before or after the element, at the start or the end inside it, or in place of it. |
| Anchor mode | First match, or Insert after Nth product to put the content inside a grid of products. |
| Wrapper element | An element around the content. None (default) adds nothing. |
A selector is the name that a page gives to an element. For example, .header means the element whose class is header. A developer or your theme's documentation can tell you the selector of an element.
Put a bar at the top of every page
This needs no developer:
- Under Delivery, choose Loader script.
- Under Anchor selector, enter
body. - Under Position, choose prepend.
The content then goes at the very start of the page, above your theme's header. Check the result with a preview link before you publish. See Share a preview.
StoreSpan cannot check that the element exists
The form checks that the selector is valid. It cannot check that your page has such an element. When the page has none, the content does not show. After you publish, check that it shows.
The position replace removes the element you point to and puts the content in its place.
Put content inside a grid of products
- Under Anchor mode, choose Insert after Nth product.
- Under Insert after product number, enter the number of the product the content follows.
- Check Product card selector. It starts as
.productGrid li.product, which suits most BigCommerce themes.
To make the content as wide as two products, choose a Wrapper element, and enter grid-column: span 2 under Wrapper style. The preview does not show how the wrapper fits. Check it on your storefront.
BigCommerce widget
StoreSpan adds the content to a region of your theme. A region is a place that the theme's maker set aside for extra content.
| Field | What to choose |
|---|---|
| Scope | Global (every supported page family), or Local (one template file) for one kind of page. |
| Theme region | The region the content goes in. StoreSpan reads the list from your theme. |
| Template file | With Local, the kind of page. |
Press Refresh theme regions after you change your theme.
A sitewide region includes the checkout
A region marked (sitewide) is on every page of your store, including the checkout and the order pages.
Targeting rules, the schedule and the frequency cap still apply. StoreSpan checks them in the shopper's browser.
When your theme no longer has the region you chose, the content shows nowhere.
Server-rendered
StoreSpan builds the content and adds it to your theme before any shopper arrives. It shows at once, with the rest of the page. Because it is built ahead, it is the same for every shopper.
| Field | What to choose |
|---|---|
| Where it renders | Auto (discover the theme header region), or a region of your theme. |
| Page template | For a region of one kind of page, the kind of page. You can also choose one page only. |
Content that you limit to one page never shows on another.
A region on every page includes the checkout
When the region is on every page of your theme, the content shows on the checkout and the order pages too.
When StoreSpan cannot build the content ahead
Below these fields, the card has the fields of Loader script. When StoreSpan cannot add the content to your theme, the StoreSpan script shows it at that element. Content that you limited to one page is the exception: it does not show at all.
When this happens:
- the content shows on every page that has the element, because Server-rendered has no targeting rules,
- the schedule and the frequency cap apply.
A mega menu still shows and hides items by country with Server-rendered. It does this in the shopper's browser.
Static Page
StoreSpan publishes the content as a page of your store, with an address of its own.
| Field | What to choose |
|---|---|
| How the store page is provided | Create a new store page, or Link an existing store page and choose it. |
| Page title | The title of the page. |
| URL slug (optional) | The end of the page's address. Leave it empty to make it from the title. |
| Visible in the storefront | Whether the page shows in your store's navigation. |
Every shopper who opens the page sees the same content, at all times.
StoreSpan counts views and clicks through a small wrapper that it adds around the content. A theme that removes the wrapper stops the counting.
How delivery shows in analytics
| Delivery | Name in analytics |
|---|---|
| Loader script | Loader script |
| BigCommerce widget | Widget |
| Server-rendered | Built on the server |
| Static Page | Page built on the server |
Top bar
A message bar across the top of your storefront, with messages that can turn one after another, variables filled in for each shopper, per-country text, and the option to move your theme's header out of the way.
Targeting, schedule and frequency cap
Choose who sees an injectable and on which pages, the dates it runs between, and how often one shopper sees it.