Shopify Flow: Separately tag Instagram and Facebook Orders

Topic summary

A user sought to create a Shopify Flow automation to differentiate and tag orders from Facebook and Instagram shops separately. Initial attempts using the sub-channel field failed because both platforms were grouped under the Facebook umbrella.

Solution Found:

  • The user discovered that order source information is stored in the additional details section as custom attributes
  • By using the customAttributes_item.value variable in Flow, they successfully distinguished between Instagram and Facebook orders
  • A working Flow screenshot was shared for others facing similar challenges

Key Troubleshooting Tip:
Another participant suggested using Flow’s sample data feature to inspect test orders and identify where platform identifiers are stored in the order data structure.

The issue is now resolved with a functional automation workflow.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hello. I’m looking to build an automation in flow that can differentiate between orders from our Facebook shop and our Instagram shop and tag them appropriately.

I know that the information is available in the additional details section on each order, but I’m not sure how that translates to flow.

I tried to tag by sub-channel, but its looping both shops under the FB umbrella.

TIA!

2 Likes

If you can create a test order that uses Facebook or Instagram, you can use the sample data feature in Flow to see where, if anywhere, “Facebook” or “Instragram” are stored. Docs https://help.shopify.com/en/manual/shopify-flow/create/preview-data#sample-data

I’m not sure there sub-channels like that are storaged anywhere, but if you see it in the Admin it’s somewhere.

I figured it out!

Since the information is stored in the additional details section, I was able to use the custom attributes variable (customAttributes_item.value) to differentiate Instagram and Facebook orders!

I’ll attach the flow below in case anyone else has similar issues.

1 Like