Tags: Auto-Tag, Customers, Discounts
Use this task to easily identify customers who used certain discount codes. This task runs automatically on incoming orders, and can be run manually to tag customers based on historical orders. Optionally, choose to remove tags, instead of adding them.
- View in the task library: tasks.mechanic.dev/auto-tag-customers-based-on-discount-codes-used
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"discount_codes_and_tags__keyval_required": {},
"untag_customers_instead_of_tagging_them__boolean": null,
"allow_partial_matches_when_checking_for_discount_codes__boolean": null
}
Learn about task options in Mechanic
shopify/orders/create
mechanic/user/trigger
Learn about event subscriptions in Mechanic
Use this task to easily identify customers who used certain discount codes. This task runs automatically on incoming orders, and can be run manually to tag customers based on historical orders. Optionally, choose to remove tags, instead of adding them.
This task runs automatically on incoming orders. Run this task manually to scan your store's order history, tagging customers based on historical orders.
Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!