Tags: Auto-Tag, Customers, SKU
This task keeps customers tagged with the SKUs of the products they've purchased, optionally ignoring product purchases that have been refunded. Add a tag prefix to make SKU tags easy to distinguish from your other customer tags.
- View in the task library: tasks.mechanic.dev/auto-tag-customers-by-purchased-skus
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"tag_prefix": "",
"ignore_refunded_purchases__boolean": true,
"enable_running_manually__boolean": null,
"test_mode__boolean": true
}
Learn about task options in Mechanic
shopify/orders/paid
{% if options.ignore_refunded_purchases__boolean %}
shopify/refunds/create
{% endif %}
mechanic/user/trigger
mechanic/shopify/bulk_operation
Learn about event subscriptions in Mechanic
This task keeps customers tagged with the SKUs of the products they've purchased, optionally ignoring product purchases that have been refunded. Add a tag prefix to make SKU tags easy to distinguish from your other customer tags.
This task also records all purchased SKUs in a JSON metafield called "mechanic.purchased_skus", associated with the customer. For customers who have purchased more products than would fit inside Shopify's maximum tag limit of 250, this metafield provides a way for you to access all purchased SKUs.
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!