Flow Automation: Triggering Workflows When an Order’s Attribution Is Calculated
You can use the Order attribution calculated trigger in Flow Automation to start a workflow as soon as an order’s attribution is calculated. For example, when attribution is written to the order in the admin, the system records the source or URL that led to the purchase. This automates routine tasks such as updating order tags and recording metrics, so your team does not need to handle them manually.
This guide explains when to use the trigger, how to test it end to end, and provides a practical example for automating communications and updates.
Supported Actions
The following actions are supported when using the Order attribution calculated trigger. Click on any action name to view its setup instructions:
- [Order] Update Order Tag
- [General] Update Counter
- [General] For Each Loop
Testing the Workflow
To test a workflow triggered when an order’s attribution is calculated, follow these steps:
- From your SHOPLINE admin panel, go to Orders > Draft orders and click Create order to manually add a test draft order.
- Verify that the trigger works as configured in the Flow Automation app. For details on how to view flow execution results, please refer to the "How to View the Running of a Flow" section of this Help Center guide.
Example Use Case
Here is a practical example of using the Order attribution calculated trigger to automatically tag orders with the first interaction URL:
- Trigger: Order attribution calculated trigger
- Action: Update order tag (add first interaction URL)
Available Templates
Here is a ready-to-use template that incorporates this trigger. Click the template to view or apply it:
- Tag orders with the first interaction URL when order attribution is calculated: When Order attribution calculated is triggered, the flow adds an order tag with the first interaction URL and can optionally update a monthly counter.