Get Instant Alerts When a Specific Discount Code Is Used
Automatically receive an email notification whenever a specific, pre-defined discount code is successfully applied to a customer's order, ensuring real-time usage tracking.
The Problem
Launching a high-stakes campaign or a limited-time offer with a unique discount code means you need to know its real-time performance. Manually checking orders for specific code usage is incredibly time-consuming, prone to missed data, and prevents immediate action on successful conversions or potential misuse. You risk slow follow-ups or campaign adjustments.
What This Automation Solves
This Shopify Flow eliminates manual checks by starting with the 'Order created' trigger, scanning every new order. A subsequent 'Condition' then precisely checks if the 'Order discount code is equal to [YourDiscountCode]', instantly filtering for your target. Finally, the 'Send internal email' action delivers a real-time alert directly to your inbox, automating crucial tracking and enabling swift action.
When to Use This Automation
- Monitoring a high-value influencer or affiliate campaign's performance.
- Tracking early bird access codes for exclusive product launches or limited inventory items.
- Detecting potential misuse or unauthorized sharing of a sensitive or single-use discount code.
Workflow
Trigger
Step 1Starts when an order is created
Condition
Step 2Condition checking if the specific discount code was used
Action
Step 3Send email to youremail@store.com
Step-by-Step Setup
- 1
Start with the 'Order created' trigger.
- 2
Add a 'Condition' and select 'Order discount code'. Set it to 'is equal to' your exact code (e.g., 'PARTNER20OFF').
- 3
Add the 'Send internal email' action, entering the recipient email (e.g., 'marketing@yourstore.com') for your alert.
Related Questions
- Can I track multiple specific discount codes in a single Flow?
- Yes, you can track multiple codes by adding an 'OR' group within your 'Condition'. This allows you to check if the discount code 'is equal to' Code A OR 'is equal to' Code B.
- How can I include order details in the notification email?
- In the 'Send internal email' action, use Liquid variables in the email body, such as `{{ order.order_number }}`, `{{ order.customer.email }}`, or `{{ order.total_price }}` to provide immediate context.
- What if I want to send this alert to a team communication channel like Slack?
- Absolutely. Instead of the 'Send internal email' action, use the 'Send Slack message' action. You'll need to have the Slack connector installed and configured within Shopify Flow.
- Can I only be notified if a specific discount code is used by a new customer?
- Yes, add an additional 'Condition' before the discount code check. Use 'Customer' > 'Orders count' and set it to 'is equal to' 1 to filter for first-time purchasers only.
Recommended Tools & Apps
Launch this automation
Open Shopify Flow and use this page as your setup blueprint.
Merchant Insight
For time-sensitive promotions, consider integrating a Slack notification instead of email. The immediacy of a Slack alert can reduce response time for high-value partner codes or potential fraud detection, keeping your team agile.
Related Automations
Alert Your Team Instantly to High-Value Orders
Automatically notify key staff members via internal email the moment a high-value order is placed, ensuring prompt attention and personalized service.
How to Immediately Alert Support to Negative Post-Purchase Feedback
Automatically notify your support team of negative customer feedback received after an order, enabling swift resolution and improved customer satisfaction.
Automate Alerts: Catch Irregularly Large Shopify Orders for Review
Automatically receive email alerts and tag orders when an unusually large quantity of items is purchased, ensuring timely review before fulfillment.