Tagging Orders by Test Group in Shopify
Show which test group is associated with orders in your Shopify store.
Background
By default, when an order is created in Shopify and the user was included in an Intelligems test(s), there are a few ways that Intelligems will show up on the order within your Shopify admin portal. One thing that will not show up by default is which test or test groups a customer was in. You can always get this information by using our order export feature, but by following the below steps to setup a Shopify Flow, you will automatically get a tag on your Shopify orders to give you this information.
You will have to set up a Shopify Flow for each test as they are based on the unique Test Group IDs that are assigned to each test group.
Step 1: Confirm that the "Add Test Group ID" setting is toggle on
Before completing any other steps please reach out to Intelligems support for help enabling the setting that allows Intelligems to add the test group ID. Please note that this will add the test group ID as a line item property - some brands use line item properties for other workflows, so it is important to check that this will not break anything that you are currently doing.
Step 2: Get Test Group IDs
For every test set up in the Intelligems app, each test group receives a unique ID. You can get this information by clicking the "Show Info" option in the more options menu:
Step 3: Set up a workflow in Shopify Flow
If you have not already, download the Shopify Flow app here. Once you are in the app:
Click "Create workflow" in the top right, followed by "Select a trigger".
For the trigger, select "Order created".
Click the blue plus sign in the "Order created" card and select "Condition".
Click "Add criteria" > "Order" > "lineItems" > "customAttributes" > "value".
Change the "Equal to" dropdown to "Includes" and paste the test group ID (from Step 2) in the "Value" box.
Click the blue plus sign next to "Then" in the "Check if..." card and select "Action".
Click "Add order tags" and type the tag you would like to add to the orders for this test group(s). This tag will be added to all orders completed in this test group(s) in Shopify. When it's done, your Shopify Flow should look similar to the below.
Click "Turn on workflow" in the top right.
Last updated