# Test an email campaign Testing ensures your restock emails trigger correctly **in a real storefront scenario**—from subscription to restock and delivery. 🎥 Walkthrough: [Watch our tutorial on testing the Global restock campaign end to end.](https://youtu.be/zyZZ5rRRHnI?si=zHH30e7-RNX3N-8W\&t=92) Make sure you have: * Your **campaign is created and Active** * A **workflow is assigned** to the campaign * An **email template** is selected in the workflow * The product or variant you're testing is **out of stock**. *Learn more:* [Create and launch a Restock campaign](https://docs.foxecom.com/xflow-app/campaigns/create-and-launch-a-restock-campaign) ### Step-by-step: Test your email campaign #### Check the “Notify me” widget on the storefront 1. Open a product page for an **out-of-stock** item 2. Confirm the **Notify me** button or form is visible. If the widget doesn’t appear: * Verify the product or variant is out of stock * Make sure **XFlow Helper** is enabled in your theme * Confirm the campaign status is **Active** #### Subscribe using the Notify me form 1. Click the **Notify me** button 2. Enter a test email address 3. Submit the form **What to expect** * A success message confirms the subscription * The subscriber is saved in XFlow #### Restock the product (real-world test) 1. Go to **Shopify admin > Products > Inventory** 2. Add inventory to the product or variant you subscribed to 3. Make sure the item becomes available for purchase. XFlow detects the restock automatically. #### Confirm the email is sent ✅ The assigned workflow runs ✅ The back-in-stock email is sent based on your workflow timing ✅ Delivery, opens, and purchases are tracked automatically If your workflow includes delays, wait for the configured time before checking your inbox. ### What XFlow tracks for you Once the campaign is triggered, XFlow automatically tracks: * Email delivery status * Email opens * Purchases after notification No additional setup is required. ### Related articles Create and launch a Restock campaign Manage campaigns "Notify me" widget: FAQs