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.
Three cards of the injectable form decide who sees an injectable:
| Card | What it decides |
|---|---|
| Targeting rules | Which shoppers, and on which pages. |
| Schedule | The dates it runs between. |
| Frequency cap | How often one shopper sees it. |
Leave all three as they are to show the injectable to every shopper, on every page, at all times.
The cards you see depend on the delivery. See Choose a delivery.
Targeting rules
A rule is a list of conditions. Each condition asks one question, such as "is this the home page?"

Show a banner on the home page to shoppers in Canada
- In the Targeting rules card, press Add condition.
- Choose Page type, and tick
home. - Press Add condition again.
- Choose Geo / country, and tick Canada. Type in the field above the list to find a country.
- Save the injectable.
Combine conditions
Conditions sit in a group. The list at the top of the group says how they combine:
| Choice | The group is true when |
|---|---|
| Match all (AND) | Every condition in it is true. |
| Match any (OR) | At least one condition in it is true. |
| Not (invert) | The conditions in it are not true. |
Press Add group to put a group inside a group. For example, "on the home page, and in Canada or in the United States".
With no conditions, the card says No conditions: this shows on every page the loader runs on. Add a condition to narrow it.
You cannot save an empty Match any (OR) group, because it would never be true. A rule holds up to 100 conditions and groups, up to 8 levels deep.
Where the shopper is in your store
| Condition | What it checks |
|---|---|
| Page type | The kind of page: home, category, product, cart, search or other. |
| Category | The page or the product belongs to the categories you choose. |
| Product | The page is one of the products you choose. |
Page type also lists the checkout. The StoreSpan script does not run on the checkout, so this choice never matches.
Who the shopper is
| Condition | What it checks |
|---|---|
| Visitor type | New visitor, Returning visitor or Logged-in customer. |
| Customer group | The shopper's BigCommerce customer group. |
| Segment | The shopper is in one of your segments. See Segments. |
| Geo / country | The shopper's country, and regions if you like, such as California, Texas. |
| Purchase history | Order count, Total spent or Days since last order, compared with a number. |
| Device / viewport | Mobile (under 768px), Tablet (768-1023px), Desktop (1024px and up), or a width in pixels. |
| Traffic source | Where the shopper came from: a campaign tag of the link, or the site that sent them. |
| Seen count | How many times this shopper has seen this injectable. |
Things to know:
- Geo / country has the switch Serve when the country is unknown. Turn it on to show the injectable when StoreSpan cannot tell the country.
- Geo / country uses the same country list as the top bar: you can press Paste a list, and choose the European Union as one group in place of its 27 countries. See Paste a list of countries and Groups of countries.
- Regions limit every chosen country, and every country of a chosen group, to those regions. Leave the field empty to target whole countries.
- Purchase history works for logged-in customers only. It uses the orders StoreSpan has read, which can be up to an hour behind. Total spent is in whole units of your store's currency.
- Traffic source looks at how the shopper first arrived. It ignores capital letters.
- Seen count is kept in the shopper's browser. It starts again when the shopper clears their browser data.
- Segment needs StoreSpan to know the shopper's segments. While it cannot read them, the injectable does not show.
What is in the cart
| Condition | What it checks |
|---|---|
| Cart total | The value of the cart is between a Minimum and a Maximum, in one Currency. |
| Cart comparison | Cart total or Cart item count, compared with a number, such as "at least 3 items". |
The value of the cart leaves out tax and shipping. StoreSpan does not convert between currencies: a cart in another currency does not match.
When the shopper visits
| Condition | What it checks |
|---|---|
| Schedule | The time of day, on Every day or on the weekdays you choose. It repeats every week. |
| Day of week | The weekdays you choose. |
Both use your store's time zone unless you enter another under Timezone (optional).
To run an injectable between two dates, use the Schedule card, not this condition.
Your own check
Custom script runs JavaScript that you write and that answers true or false.
A script can read everything on the page
A custom script runs on your storefront with full access to the page. Use only a script that you have read and that you trust. See Script.
Schedule
The Schedule card holds one period for the whole injectable.
| Field | What to enter |
|---|---|
| Window start | The date and time the injectable starts to show. |
| Window end | The date and time it stops. |
The times are in your store's time zone. Leave a field empty to leave that side open. For example, enter only Window end for an injectable that shows from now until the end of a sale.
You must publish the injectable for the schedule to count. Before the start, its status is Scheduled. After the end, its status is Expired. See Publish and status.
Frequency cap
A frequency cap stops an injectable from showing too often to the same shopper.
- In the Frequency cap card, turn on Limit how often visitors see this.
- Fill in at least one of the limits.

| Field | What it does | Most |
|---|---|---|
| Max impressions and Within (days) | Shows the injectable at most this many times in this many days. Fill in both. | 200 times, 365 days |
| Cooldown after a view (hours) | Waits this long after each view before it shows again. | 720 hours, which is 30 days |
| Snooze after a dismissal (days) | Waits this long after the shopper closes the injectable. | 365 days |
A cap is kept in the shopper's browser
StoreSpan counts views in the shopper's own browser. The count starts again when the shopper clears their browser data or uses another browser or device. Safari forgets it after seven days without a visit.
Let shoppers close an injectable
The snooze starts when the shopper presses an element in your content that has the attribute data-acme-dismiss. For example:
<button data-acme-dismiss>Close</button>Without such an element in the content, the snooze never starts. A Script injectable has no content to close, so its snooze field is switched off.
Menu items by country
A mega menu can also show, hide or replace single items by country. See Show an item in some countries only.