Campaign conditions
Every condition an onsite campaign can use, where each one is checked, and what to look at when a campaign does not show.
On this page
A campaign shows to a visitor who meets every one of its conditions. Most are checked in the visitor's browser by the chat script, as the visitor moves around the store. The customer and country conditions are checked by the helpdesk.
On the page and during the visit#
| Condition | What it checks | Comparisons |
|---|---|---|
| Page address | The full address of the current page, including anything after a ? such as utm_source=newsletter | contains, does not contain, is, is not, starts with, ends with |
| Time on the page | Seconds on the current page | is at least |
| Product page | A product page whose address contains this product handle, such as harbor-fog-candle | is, contains |
| Number of visits | Visits to the store from this browser, the current one included | is at least, is at most |
| Time on the store this visit | Seconds since the visit began, across pages | is at least |
| About to leave | On a computer, the pointer moves to the top edge of the window; on a phone, the visitor switches to another tab or app | happens |
| Product out of stock | The product page's product data marks it out of stock | happens |
Is and is not compare the whole address, so include https://. To aim at visitors from one newsletter or ad, use Page address contains with the tracking part of the link, such as utm_campaign=spring.
In the cart#
These read the cart from a Shopify store's cart.
| Condition | What it checks | Comparisons |
|---|---|---|
| Cart value | The cart's total in the store's currency | is at least, is at most |
| Product in the cart | A product in the cart whose name or handle contains this text | contains, does not contain |
The store customer#
These need a connected Shopify store and a visitor signed in to it. They use the customer's store data that the helpdesk already keeps.
| Condition | What it checks | Comparisons |
|---|---|---|
| Store customer tag | A tag on the customer in your store | is, is not |
| Orders placed | The customer's number of orders | is at least, is at most |
| Total spent | What the customer has spent in your store | is at least, is at most |
| Bought a product | A product the customer has bought whose name contains this text | contains, does not contain |
A guest the store does not know cannot meet these conditions, so the campaign skips guests. To show it to guests as well, tick Also show it to visitors the store does not know.
Other#
| Condition | What it checks | Comparisons |
|---|---|---|
| Business hours | Whether the helpdesk is inside its business hours | is open, is closed |
| Visitor country | Two-letter country codes separated by commas, such as US, CA, from the visitor's connection | is, is not |
When a campaign does not show#
Work down this list:
Convert > Set up: is the switch on, and is this chat ticked?
Is the campaign Running in the list? Draft, Paused and Scheduled campaigns do not show.
Does the chat itself show on the page? Campaigns open from the chat's button, so a chat hidden on that site or on phones hides its campaigns too. In a chat with several languages, the campaign's language has to match the visitor's.
Did this browser close the campaign earlier, or see another campaign within the minutes set in Minutes between two? Try a private window, which starts with a clean slate.
Is the chat window open? Campaigns wait until it is closed.
Check each condition against the page: the address as the browser shows it, a cart with products in it, a visitor signed in to the store.
Related articles
- Create a campaignBuild an onsite campaign from a starting point or from scratch, with one to three versions of the message, a code, products, an email form and dates, and ask the AI agent for wording.
- Onsite campaignsShort chat messages that open by themselves for store visitors who match conditions you choose. What a visitor sees, what a campaign needs before it shows, and how often one visitor gets them.
- Connect your Shopify storeLink your Shopify store with the Growth Dept Helpdesk app, a custom app's token or Growth Dept's own connection, then turn on order actions.
- Business hours and holidaysSet the hours your team answers customers and the days you are closed, which chat, SLAs, urgency and response-time reports all follow.
Still stuck?
Write to the Growth Dept team and a person answers. Say which helpdesk you work in and what you were trying to do.