Automatically add order tag on checkout link

Automatically add order tag on checkout link

webcity
Shopify Partner
8 2 2

Hi there, 

Someone probably already asked this, but I couldn't find a similar post. 

I am using a checkout URL for people who want to turn cart content into a subscription. With a format like example.com/cart/add?items[]id=123456789&items[]quantity=1&items[]selling_plan=12346789&return_to=/checkout.

My question is, Is there a parameter to add a tag to the checkout link

Maybe something like: example.com/cart/add?items[]id=123456789&items[]quantity=1&items[]selling_plan=12346789&order_tag=chktbtn&return_to=/checkout.

 

I also use checkout URLs for campaign landing pages, it would be nice to tag orders from these campaigns. 

Replies 2 (2)

JoesIdeas
Shopify Partner
2485 229 671

I haven't ever seen a way to add a tag but you could add an order attribute, or line item properties. Reference: https://shopify.dev/api/ajax/reference/cart

 

Then for tagging, if the attribute is unique may you could search that in orders, then bulk tag those once a day or whenever you want to add the tags.

 

If you aren't able to filter the orders using that method, you could still identify them manually by the order attributes and then tag. If you're doing higher volume and don't want to manually do it you can use Order Automator to identify attributes on the order then automatically tag them.

 

 

• Creator of Order Automator [auto tag, fulfill, connect FBA, daily jobs]
• Co-Creator of Product Automator [suite of features for products / collections]
• Shopify developer for 10+ years, store owner for 7 years
• Blog: Shopify Tips, Guides, and Automation Tactics
webcity
Shopify Partner
8 2 2

Thank you, the suggestion is really helpful. It would still be nice to be able to add tags the same way we add attributes/notes.