StoreSpan
Injectables

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:

CardWhat it decides
Targeting rulesWhich shoppers, and on which pages.
ScheduleThe dates it runs between.
Frequency capHow 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?"

The Targeting rules card of an injectable, with one condition for the home page and one for shoppers in Canada

Show a banner on the home page to shoppers in Canada

  1. In the Targeting rules card, press Add condition.
  2. Choose Page type, and tick home.
  3. Press Add condition again.
  4. Choose Geo / country, and tick Canada. Type in the field above the list to find a country.
  5. Save the injectable.

Combine conditions

Conditions sit in a group. The list at the top of the group says how they combine:

ChoiceThe 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

ConditionWhat it checks
Page typeThe kind of page: home, category, product, cart, search or other.
CategoryThe page or the product belongs to the categories you choose.
ProductThe 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

ConditionWhat it checks
Visitor typeNew visitor, Returning visitor or Logged-in customer.
Customer groupThe shopper's BigCommerce customer group.
SegmentThe shopper is in one of your segments. See Segments.
Geo / countryThe shopper's country, and regions if you like, such as California, Texas.
Purchase historyOrder count, Total spent or Days since last order, compared with a number.
Device / viewportMobile (under 768px), Tablet (768-1023px), Desktop (1024px and up), or a width in pixels.
Traffic sourceWhere the shopper came from: a campaign tag of the link, or the site that sent them.
Seen countHow 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

ConditionWhat it checks
Cart totalThe value of the cart is between a Minimum and a Maximum, in one Currency.
Cart comparisonCart 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

ConditionWhat it checks
ScheduleThe time of day, on Every day or on the weekdays you choose. It repeats every week.
Day of weekThe 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.

FieldWhat to enter
Window startThe date and time the injectable starts to show.
Window endThe 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.

  1. In the Frequency cap card, turn on Limit how often visitors see this.
  2. Fill in at least one of the limits.

The Frequency cap card of an injectable, set to show at most 3 times in 7 days

FieldWhat it doesMost
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.

A mega menu can also show, hide or replace single items by country. See Show an item in some countries only.

On this page