Tags: Auto-Tag, Customers, Spend
This task runs daily to maintain tags for any customers that have a certain spending threshold within a rolling period of order history. Useful for rewarding customers who keep a consistent spend total.
- View in the task library: tasks.mechanic.dev/auto-tag-customers-having-a-rolling-minimum-total-spend
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"minimum_total_spent__number_required": null,
"customer_tag_to_apply__required": null,
"days_of_order_history_to_consider__number_required": 30,
"only_monitor_customers_having_this_tag": null,
"run_hourly_instead_of_daily__boolean": null
}
Learn about task options in Mechanic
{% if options.run_hourly_instead_of_daily__boolean %}
mechanic/scheduler/hourly
{% else %}
mechanic/scheduler/daily
{% endif %}
mechanic/user/trigger
Learn about event subscriptions in Mechanic
This task runs daily to maintain tags for any customers that have a certain spending threshold within a rolling period of order history. Useful for rewarding customers who keep a consistent spend total.
Optionally, choose to filter by customers who have a specific tag, or to run hourly instead of daily for increased tagging frequency.
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!