Is it possible to embed tags in a URL that will populate the same tag in an order?

We use tags for attribution of orders. Is it possible to emded a tag in a URL that would eventually be recorded in the tags section of any order that was placed following that URL?

Something along the lines of ?tag=xxxxx

I think you’d need to add this to the cart as either an order attribute or a line item attribute.

You can do that with the Cart ajax API: https://shopify.dev/api/ajax/reference/cart

How it would work:

  1. Customer clicks add to cart

  2. You put some javascript code on your site that detects that click, then reads the url, then adds the tag parameter as either a line item property, order attribute, order notes, etc.

That would handle the information part on your order. Then if you wanted a tag to be added, you could use Order Automator app to look for that data then automatically add the appropriate tag to the order.

If you have a developer, they can handle the website part with the ajax api. If not and you want some help contact my team at speedboostr.com/contact. We do stuff like that, plus built that Order Automator app so can help you make your idea an automated solution.