# Set up your back in stock campaign
Send restock alerts for every out-of-stock product with one Global campaign. Make its workflow and email your own, activate it, and XFlow handles the subscriber list, sends the emails when products restock, and tracks conversions for you.
Start with the Global campaign. It covers all your out-of-stock products, so you don't need to create a new campaign for each one.
**Before you begin:**
* The XFlow app embed is turned on in your theme.
* You have at least one out-of-stock product.
## What a campaign does
A campaign decides which products get restock alerts, which workflow runs, and when alerts are sent. The Global campaign does this for all out-of-stock products at once, so you only customize one workflow and one set of emails.
| Part | What it does in the Global campaign |
| ------------------ | ---------------------------------------------------------------------------------------- |
| **Campaign** | Covers every out-of-stock product, except the ones you exclude. |
| **Workflow** | Decides what happens when a shopper signs up and when a product is restocked. |
| **Email template** | Is the email shoppers receive. The workflow uses the template you select for each email. |
## Set up the Global campaign
1. Go to **XFlow > Back in stock > Campaigns**.
2. Open **Global campaign**.
3. Review the **General settings**.
The Global campaign applies to all out-of-stock products in your store (inventory \= 0). The campaign name and description are for you and your team. Only you see them.
Skip this step if you want alerts for every out-of-stock product.
1. Click **Select** next to **Excluded products**.
2. Choose the products that should never get restock alerts from this campaign.
3. Confirm your selection.
Choose how much inventory a product needs before subscribers are notified. The same quantity applies to every product in the campaign.
If you set **1**, subscribers are notified as soon as the product is back with at least 1 unit. If you set **5**, XFlow waits until 5 units are available.
**Minimum restock quantity** is available on paid plans. On the Free plan it is fixed at **1** and can't be changed.
* **Priority:** decides which campaign wins when a product is in more than one. Higher numbers win. The Global campaign has priority 0.
* **Enable for logged-in customers only** (optional): shows the sign-up only to customers who are logged in.
Decide when the campaign runs.
* **Start date and time:** when alerts start.
* **End date** (optional): when alerts stop.
Leave the campaign ongoing for continuous alerts. Set an end date for seasonal campaigns, so shoppers don't get outdated alerts.
Click **Continue to workflow setup** or open the **Manage workflows** tab to assign your workflows:
* **Restock workflow (required):** Notifies customers when a product is back in stock. Make sure it is configured and active.
* **New customer sign-up workflow (optional):** Used for additional actions, such as internal alerts or welcome emails.
Click **Edit workflow** to review each workflow and make changes if needed.
Make sure all assigned workflows are **active** before activating the campaign. Learn more in [Manage new customer sign up and restock workflow](https://docs.foxecom.com/xflow-app/back-in-stock/manage-new-customer-sign-up-and-restock-workflow).
1. Go to **XFlow > Back in stock > Campaigns**.
2. Open **Global campaign**.
3. Change **Status** to **Active**.
4. Click **Save**.
Your Global campaign is **Active**, so out-of-stock products show the **Notify me** button.
On the Free plan, restock emails stop sending once your back in stock + pre-order sales reach $500 (lifetime). Choose a paid plan to resume them.
## Campaign status
A campaign has one of four statuses.
| Status | What it means |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Draft** | The campaign has never been activated, so it is not running yet. |
| **Active** | The campaign is running. Shoppers can sign up with the **Notify me** form, and workflows run when their conditions are met. |
| **Deactivated** | The campaign was active and you stopped it. The **Notify me** form and the workflows stop running. |
| **Paused** | The campaign is paused because your store reached a usage limit on the Free plan. Shoppers can still sign up, but workflows don't run until the campaign is available again. |
## Manage your campaigns
Activate, stop or delete a campaign without changing its workflows or email templates.
### Stop a campaign
Stop a campaign when you don't want it to send alerts for now. The subscriptions it already collected are kept, but no more notifications are sent.
1. Go to **XFlow > Back in stock > Campaigns**.
2. Open the campaign.
3. Change **Status** to **Inactive**.
4. Click **Save**.
To start it again, change **Status** back to **Active**. Its assigned workflows become active again too.
### Delete a campaign
Delete a campaign you no longer need.
1. Go to **XFlow > Back in stock > Campaigns**.
2. Open the campaign.
3. Select **Delete**.
4. Confirm the action.
Deleting a campaign is permanent. Its settings and workflow assignments can't be recovered. The Global campaign can't be deleted.
### Check campaign results
Open **Analytics & logs** in a campaign to see how it is performing:
* **Campaign performance:** total subscribers, conversion rate, total revenue and engagement rate.
* **Workflow performance:** total runs, success rate and attributed revenue for the **Restock** and **Sign-up** workflows.
* **Recent runs:** the latest workflow activity, including the product, start time, status, completed steps and completion time.
**Analytics & logs** is available for campaigns that are **Active**, **Deactivated** or **Paused**. It isn't available while a campaign is in **Draft**.

## When to add another campaign
Use the Global campaign for everything first. Add another campaign only when some products need a different workflow or email, such as an early-access restock for VIP customers. If a product is in both, the campaign with the higher priority wins.
## FAQs
All out-of-stock products in your store (inventory \= 0), except any you've added to the **Excluded products** list in the campaign settings.
Check that the campaign is saved, its status is **Active**, and its restock workflow is set up and active.
They are kept. The campaign stops sending notifications until you activate it again.
No. This workflow is optional. Use it for extra actions, such as an internal alert or a welcome email.
The campaign with the higher **Priority** number takes precedence. The Global campaign has priority 0.
Keep the Global campaign for everything else, and add a campaign for those products with its own workflow and email. The Global campaign has priority 0, so set the new campaign's **Priority** to 1 or higher.
## Related articles
Manage new customer sign up and restock workflow
Test an email campaign
Email templates