Tags: Auto-Tag, Locksmith, Orders
Tag orders with the Locksmith secret link used when placing an order. Optionally, tag the customer as well.
- View in the task library: tasks.mechanic.dev/tag-orders-by-locksmith-secret-link
- Task JSON, for direct import: task.json
- Preview task code:
{
"query_parameter_name__required": "ls",
"cart_attribute_name__required": "Locksmith Secret Link",
"tag_customer_with_parameter_value__boolean": false,
"only_tag_the_customer_for_their_first_order__boolean": false
}
Learn about task options in Mechanic
shopify/orders/create
Learn about event subscriptions in Mechanic
Tag orders with the Locksmith secret link used when placing an order. Optionally, tag the customer as well.
Note: if a customer uses multiple secret links, the last one used is assigned to the order.
This task adds JavaScript to your storefront, which adds ?ls= parameter (Locksmith secret link) to the customer's cart (using the cart attribute name of your choice). (Locksmith secret link values are saved in a browser cookie for one year.) This task copies the cart attribute to the order's tags when the corresponding order is created. Optionally, select to have the value applied to the customer as a tag as well.
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!