If you are looking to tag orders based on the URL of the referrer that brought the customer to your store, then this is the criteria for you.
Shopify retains the full URL of the referring site and applies it as an attribute in the order data. Our referring site criteria is able to analyze this attribute by looking at either the domain or path of the url, or both.
How to use the criteria
To create a workflow using this criteria, click on the Create New Workflow button from the main Workflows view:
Define the trigger to determine at which point you would like the workflow to run, we recommend selecting the trigger when orders are created.
Click the Add criteria to my workflow button:
The Referring site criteria can be found within the Other category in the Select criteria pop-up window:
Click the Use in your workflow button on the right to select this criteria.
You will then be presented with the following screen:
You can either select the Domain or the Path for the criteria:
Analyze the Domain or Path, or both?
The referring site criteria will let you analyze either the Domain or the Path of the referring site URL.
The first part of the referring site URL is the domain name. This is the top level domain of the URL.
You need to include any subdomains (like www) e.g. www.ayearssupplyof.co.uk
Please Don't include http:// or https:// in the value you enter!!!
This is the part of the URL after the domain name and can contain the directory structure and any variables used in the URL.
If you'd like your workflow to analyze both the Domain and the Path of the referring site URL, then just add another criteria to the workflow, one for the domain and one for the path:
Select the condition that the criteria must match:
Here is what each option within the conditions dropdown will do:
is: If the Domain or Path of the referring site matches exactly the value specified.
is NOT: If the Domain or Path of the referring site does not match the exact value specified.
contains: If the Domain or Path of the referring site contains the specified alphanumeric string.
does not contain: If the Domain or Path of the referring site does not contain the specified alphanumeric string.
Select the option that most suits your needs.
Enter the string that you are looking to find or match in the referring site URL:
Defining the Tag name
Define the tag name/names that you would like to be applied when this workflow matches your criteria (don't forget to click the Add fixed tag button):
Saving and naming your workflow
It's worth giving your workflow a name to help you identify it at a later date, so add a workflow name in the New Workflow section, check the summary of your workflow and if happy, either Test your Workflow against an existing order or hit Save Workflow:
Both the referring domain and referring path can be automatically applied as tags on orders by using our Dynamic Tags option:
Is this workflow compatible with Backdating?
Yes, the referring site criteria is available to use in our backdating service. Find out more about backdating?
Need any help?
If you have any questions about the content of this article or any other Order Tagger related question, then please do just get in touch.