Skip to content

Latest commit

 

History

History

tag-orders-by-locksmith-secret-link

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Tag online orders by ?ls= Locksmith secret link used

Tags: Auto-Tag, Locksmith, Orders

Tag orders with the Locksmith secret link used when placing an order. Optionally, tag the customer as well.

Default options

{
  "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

Subscriptions

shopify/orders/create

Learn about event subscriptions in Mechanic

Documentation

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.

Installing this task

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.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!