Triggering workflows on Order and Product tag changes
Flow Companion allows you to automatically trigger Shopify Flow workflows based on changes to order and product tags. You can use these triggers to initiate automations whenever tags are added or removed.
Available Triggers
- Order tags added
- Order tags removed
- Product tags added
- Product tags removed
How to enable tag change tracking
To activate these triggers, you’ll need to enable the corresponding settings in Flow Companion app:
- Go to Flow Companion app main page.
- Navigate to
Settings
→Triggers
. - Enable the desired settings:
- Enable Order tags added / removed to track order tag changes.
- Enable Product tags added / removed to track product tag changes.
Important: when enabling these settings, Flow Companion will request permissions to modify orders or products in your Shopify store. Make sure to grant these permissions to activate tag change tracking successfully.
How tag changes are tracked
Shopify allows Flow Companion to detect when tags on orders or products change, but doesn’t specify exactly what changed each time. To identify precisely which tags were added or removed, Flow Companion compares the current tags with their previous state.
Flow Companion manages this by saving previous tag states in a dedicated metafield:
- For orders: When you enable tag tracking, Flow Companion immediately stores the current tags for all orders placed within the last 90 days.
- For products: Similarly, current product tags are stored when you enable tracking.
Reinstalling Flow Companion
If you uninstall and later reinstall Flow Companion:
- All tracking settings will reset, and you’ll need to enable them again.
- You will be prompted to grant the necessary permissions once more.
- Because tag changes made while Flow Companion was uninstalled weren’t tracked, Flow Companion will reinitialize tag states upon re-enabling, ensuring accurate tracking from that point onward.
Using tag information in workflows
When a workflow triggers on a tag change event, Flow Companion provides detailed information about which tags were added or removed. You can use this information within your workflow conditions and actions.