> For the complete documentation index, see [llms.txt](https://awecommerce.gitbook.io/awe-seasonal-effects/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://awecommerce.gitbook.io/awe-seasonal-effects/getting-started/campaign-settings/schedule-and-trigger.md).

# Schedule & Trigger

Decide when your campaign runs and what starts its effects.

Define **when** your campaign runs and **what** starts its effects on the page. Open a campaign and go to the **Schedule & trigger** tab.

→ *All times follow the time zone in* [*Settings*](/awe-seasonal-effects/getting-started/settings.md) *— by default your Shopify store time zone — not the shopper's local time.*

## 1. **Schedule**

### **1.1 Visibility time**

Tick **Visibility time**, then set a **Start time** and an **End time**. The campaign starts and stops on its own.

<figure><img src="https://2143911517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh99vPHicsa9fNoUu2h0S%2Fuploads%2Fgit-blob-06848e0d4a9793c54f131e47a3d551711b3da277%2Fschedule-and-trigger-01-schedule.png?alt=media" alt="Schedule card with Visibility time"><figcaption></figcaption></figure>

* Before the start → **Scheduled**
* Between the two → **Active**
* After the end → **Expired**

Leave it off and the campaign runs from the moment you switch it on until you switch it off.

→ *Holiday templates turn Visibility time on and fill in the season's dates for you.*

### **1.2 Display in fixed time range**

Show the campaign only on certain days and hours inside the dates above — for a weekend sale or your shop hours.

<figure><img src="https://2143911517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh99vPHicsa9fNoUu2h0S%2Fuploads%2Fgit-blob-d6ecfdf88e45985a949bab4e85c5ec745123bdc4%2Fschedule-and-trigger-02-fixed-time-range.png?alt=media" alt="Display in fixed time range: days and hours"><figcaption></figcaption></figure>

1. Tick **Display in fixed time range**, then click **Configure days & hours**.
2. Tick the days you want. For each day, tick **All day** or set a **from** and **to** time.
3. Click **Apply**.

→ *E.g. show a "Weekend flash sale" bar only on Saturday and Sunday.*

{% hint style="info" %}
A range can't cross midnight. For an overnight sale, split it across two days — e.g. Friday 20:00–23:59 and Saturday 00:00–02:00.
{% endhint %}

## 2. **Priority**

Only **one** campaign shows on a page at a time. When two campaigns could run at the same time for the same market, **Priority** decides which one wins.

<figure><img src="https://2143911517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh99vPHicsa9fNoUu2h0S%2Fuploads%2Fgit-blob-84ee86971e1f3e73d9d087809e3dd7c5c4e225bb%2Fschedule-and-trigger-03-priority.png?alt=media" alt="Priority card"><figcaption></figcaption></figure>

* Set a number from **0** to **1000** (default **0**). The higher number wins.
* Same priority → the campaign with the later start date wins.

→ *E.g. a month-long Winter campaign at 0, and a 5-day Black Friday campaign at 10 — Black Friday shows during its dates, then Winter comes back.*

The **Campaigns** list warns you when campaigns overlap and tells you which one steps aside. Nothing in the other campaign is lost.

## 3. **Trigger**

Choose what starts the campaign's effects on a page. The default is **As soon as the page loads**.

<figure><img src="https://2143911517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh99vPHicsa9fNoUu2h0S%2Fuploads%2Fgit-blob-13ce138cb9ff3ffe768b72cbd7a51062e932b232%2Fschedule-and-trigger-04-trigger.png?alt=media" alt="Trigger options"><figcaption></figcaption></figure>

<table data-header-hidden><thead><tr><th width="220"></th><th></th></tr></thead><tbody><tr><td><strong>As soon as the page loads</strong></td><td><ul><li>Effects start right away.</li></ul></td></tr><tr><td><strong>After a specific time on the page</strong></td><td><ul><li>Set <strong>Wait</strong> (0–3600) and <strong>Unit</strong> (<strong>seconds</strong> or <strong>minutes</strong>). Default: 5 seconds.</li><li>Great for: letting shoppers settle in before the celebration starts.</li></ul></td></tr><tr><td><strong>After the shopper scrolls down the page</strong></td><td><ul><li>Set <strong>Scrolled past</strong> as a percentage of the page (1–100%, default 50%).</li><li>A page too short to scroll starts right away.</li><li>Great for: rewarding shoppers who are really browsing.</li></ul></td></tr><tr><td><strong>When a button or element is clicked</strong></td><td><ul><li>Enter the element's <strong>Class name</strong> — without the leading dot. Separate several with commas.</li><li>Clicking the element (or anything inside it) starts the effects.</li><li>Great for: a "Reveal the surprise" button.</li></ul></td></tr><tr><td><strong>When the shopper looks like they are leaving</strong></td><td><ul><li>Starts when the mouse leaves the page through the top — often a sign they're about to close the tab.</li><li>Works with a mouse only, so shoppers on phones and tablets won't see the campaign.</li></ul></td></tr><tr><td><strong>On a cart change</strong></td><td><ul><li><strong>A product is added</strong> or <strong>A product is removed</strong> — for <strong>Any product</strong> or <strong>Only the products I pick</strong> (up to 100).</li><li><strong>The cart total reaches an amount</strong> — enter the amount in your currency's smallest unit (for a two-decimal currency, <code>7500</code> = 75.00). It fires the moment the cart crosses it, not again while it stays above.</li></ul></td></tr></tbody></table>

→ *To find a class name: on your store, right-click the button → **Inspect**, and copy a value from its `class="…"` — e.g. `product-form__submit`.*

{% hint style="warning" %}
**When the shopper looks like they are leaving** can't be used on a campaign targeting **Mobile only**. See [Targeting](/awe-seasonal-effects/getting-started/campaign-settings/targeting.md).
{% endhint %}

{% hint style="info" %}
The cart trigger starts the whole campaign once. The [Add to cart effect](/awe-seasonal-effects/getting-started/effects/add-to-cart-effect.md) is a different setting — it keeps firing on every add after that.
{% endhint %}

***

💬 If you have any related questions, please contact us via **Live chat** in the app.
