Tag Shopify Orders When Specific Discount Codes Are Applied
Gain valuable insights into discount performance by tagging orders when a specific discount code is used. This MESA workflow template automatically applies a custom tag to Shopify orders with designated discount codes, allowing you to analyze promotion effectiveness, segment customers, and track sales trends with ease. Streamline order management and make data-driven marketing decisions.
Trusted by 1,000+ Shopify merchants — from solo operators to scaling brands.

How it works
3 steps to start tagging orders when customers use your target discount code
Order Created
Order Created
Loop
Loop
Order Add Tag
Order Add Tag
Ready to start tagging orders when customers use your target discount code
Get setup in 3 minutes.
Frequently asked questions
Can I track multiple discount codes in the same workflow?
Yes, but you'll need to modify the Loop step's filter to use "contains" instead of "equals" if you want to catch variations, or duplicate the Loop and Order Add Tag steps for each specific code you want to track with different tags.
Will this work with automatic discount codes that don't require customer input?
Yes, this workflow captures all discount codes applied to an order, whether the customer manually entered them or they were automatically applied through Shopify's automatic discount features.
What happens if a customer uses multiple discount codes on one order?
The workflow will check each discount code applied to the order. If any of them match your target code, the tag will be added once to the order. If you're tracking multiple different codes with different tags, you may get multiple tags on the same order.
Make this template your own!
Customize this workflow even further:
You're in good company
"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."
"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."
"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"
Ready to start tagging orders when customers use your target discount code?
7-day free trial • 3 min setup • Cancel anytime
Need help? Our automation experts will help you personalize this workflow for free. Contact support