Tags: Auto-Tag, Customers, SKU
Use this task to keep 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 stores all purchased SKUs in a customer metafield, dodging the 250 tag limit that exists for customers.
- 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,
"customer_query_when_running_manually": null,
"test_mode__boolean": true
}
Learn about task options in Mechanic
shopify/orders/paid
{% if options.ignore_refunded_purchases__boolean %}
shopify/refunds/create
{% endif %}
{% if options.enable_running_manually__boolean %}
mechanic/user/trigger
mechanic/shopify/bulk_operation
{% endif %}
Learn about event subscriptions in Mechanic
Use this task to keep 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 stores all purchased SKUs in a customer metafield, dodging the 250 tag limit that exists for customers.
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!