Tags: Auto-Tag, Customers, Products
When a customer orders an item on sale (technically, when the order contains a product variant that includes a "compare at" price), this task automatically adds a tag to their account. Useful for keeping track of customers who take advantage of sale pricing!
- View in the task library: tasks.mechanic.dev/auto-tag-customers-who-purchase-an-item-on-sale
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"tag_to_add__required": "discount-shopper"
}
Learn about task options in Mechanic
shopify/orders/create
mechanic/user/trigger
Learn about event subscriptions in Mechanic
When a customer orders an item on sale (technically, when the order contains a product variant that includes a "compare at" price), this task automatically adds a tag to their account. Useful for keeping track of customers who take advantage of sale pricing!
This task will run for each new order that's created, tagging customers who purchase a product that has a "compare at" price.
Run this task manually to have Mechanic scan your entire customer base, and each customer's order history. This may take some time! To ensure that Mechanic can access your complete history, make sure "Read all orders" is enabled.
Please note: This task will only tag customers who've purchased a product that currently has a "compare at" price. Historical information about "compare at" pricing is not available, and so this task cannot make tagging decisions based on historical pricing.
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!