StoreSpan
Injectables

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

DeliveryChoose 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 PageThe content is a page of its own, such as a size guide.

Each delivery offers different controls over who sees the content:

DeliveryTargeting rulesScheduleFrequency cap
Loader scriptYesYesYes
BigCommerce widgetYesYesYes
Server-renderedNoYesYes
Static PageNoNoNo

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.

The Placement card of an injectable with Loader script delivery, showing the anchor selector, the position and the wrapper element

FieldWhat to enter
Anchor selectorThe selector of the element the content goes beside, for example .header.
PositionWhere the content goes: before or after the element, at the start or the end inside it, or in place of it.
Anchor modeFirst match, or Insert after Nth product to put the content inside a grid of products.
Wrapper elementAn 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:

  1. Under Delivery, choose Loader script.
  2. Under Anchor selector, enter body.
  3. 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

  1. Under Anchor mode, choose Insert after Nth product.
  2. Under Insert after product number, enter the number of the product the content follows.
  3. 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.

FieldWhat to choose
ScopeGlobal (every supported page family), or Local (one template file) for one kind of page.
Theme regionThe region the content goes in. StoreSpan reads the list from your theme.
Template fileWith 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.

FieldWhat to choose
Where it rendersAuto (discover the theme header region), or a region of your theme.
Page templateFor 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.

FieldWhat to choose
How the store page is providedCreate a new store page, or Link an existing store page and choose it.
Page titleThe 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 storefrontWhether 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

DeliveryName in analytics
Loader scriptLoader script
BigCommerce widgetWidget
Server-renderedBuilt on the server
Static PagePage built on the server

On this page