Automate Order Tagging from Sales Channels or UTMs

Automate Order Tagging from Sales Channels or UTMs

xamy
Tourist
6 0 17

We're listing products on Google Merchant and Facebook Shops but not directly checking out on those platforms. Because of this, since customers are using the native Shopify checkout Shopify doesn't identify the channel. There are UTM parameters affixed to the product URLs to identify the source but is there any way to automate tagging with them? I've tried Shopify flow but it doesn't seem to trigger the tags, here is the setup:

Capture.JPG

Is there anything wrong with the flow? Or does anyone have a solution to what I'm trying to achieve?

Replies 4 (4)

JoesIdeas
Shopify Partner
2419 224 646

Instead of UTM parameters, maybe you could try "order source" property of the order data?

We use that source property of the order data with our app Order Automator to automatically tag channels / orders created by apps.

I'm not that familiar with Shopify Flow but here are some ideas you can try:

1) See if you can create a rule by order source.

2) Grab the "source" property from an example order and use that as the identifier.

3) If you can't create a rule by order source with Shopify Flow, read the order data file to see if there is another property that makes sense that you can use.

You can check order properties here: Shopify Order API (search "order properties"), but it also helps to check on an actual order, instructions to do that below:


To get and read order data
1) Go to the order details page, then after the string of numbers in the url (that's the order ID), type ".json" and press enter. The url will look like this:

https://YOURSITE.myshopify.com/admin/orders/123456789.json

2) You'll see a wall of text. You can organize it into readable format by pasting that text into a tool like this: https://jsonformatter.curiousconcept.com.

3) Now in readable format, scan for some identifiable properties that are unique to this order, then try to match a Shopify Flow rule.

If you aren't able to achieve your goal with Shopify Flow and need a solution, feel free to send me a message. I'm the lead developer of that app I mentioned, Order Automator, I can take care of this for you.

• Creator of Order Automator [auto tag, fulfill, connect FBA, order 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 Tools
Florian2
Shopify Partner
11 0 13

If you have the Flow app you can make it work this way (replace "promotion" with your UTM campaign name:
Xnip2024-05-20_17-43-36.jpg

 

Fastest way to find the "campaign is equal to" filter is to type "UTM" in the search. 
Here is the path to the Campaign filter:
Order
CustomerJourneySummary
LastVisit
UtmParameters
Campaign

From then you can choose whatever action you want 🙂
Have fun!

patriotshave
Tourist
5 0 5

Hi. Did you ever solve this?  I am having same issue. I enter the UTM source as indicated in the Shopify Order details, but the flow does not seem to identify it (and thus it is not tagging the order as desired).

Kalen_Jordan
Shopify Partner
765 34 135

Yeah you have to use a graphql query like this on customerJourneySummary.

 

Screenshot 2023-09-21 at 8.50.52 AM.png