How to create an auto tag rule

An auto tag rule says: when this happens, and if these conditions are true, add or remove these tags. Rules run within a minute of each event, and you can have up to 20 of them.

[!WARNING] Tags can move customers into a group, which changes their prices and rules. Their new prices apply at their next cart update.

Before you start

The Auto Tags list

Open Customers › Auto Tags. If you have no rules yet, you see Tag customers and orders automatically with a Create rule button.

The Auto Tags list

Column What it shows
Rule The rule name. Click it to edit.
Runs on The event that starts the rule.
When The conditions in plain words, for example "Total spent in 60 days ≥ 5000", joined with "and" or "or". Shows Always when there are no conditions.
Then The actions, for example "Add customer tag vip".
Status Active or Draft.
Edit A pencil button.

History, Import, Export and Create rule sit in the row under the tabs. When you reach 20 rules, Create rule is disabled and a note tells you to delete one first.

Create the rule

  1. Click Create rule

    Give the rule a Rule name. It is required and can have up to 80 characters.

    The new rule page

  2. Choose when (1. When)

    Pick the Event that starts the rule.

    Event When it runs
    Customer created When an application from the Sol sign-up form is approved (by you or automatically) and Shopify creates a new customer for it. Buyers who already had an account, and customers created any other way, don't trigger it.
    Order created When a new order is placed.
    Order paid When an order is paid.
    Order fulfilled When an order is fulfilled.
    Order canceled When an order is canceled.

    If you change the event later, any conditions or actions that don't apply to the new event are removed, and a note tells you so.

  3. Add conditions (2. If)

    Match decides how conditions work together: All conditions match or Any condition matches. You can add up to 10 conditions, or skip this and let the rule run on every event of that kind. Each condition has a Field, an Operator and a Value.

    The If section

    Field Available for Operators Value
    Customer tags All events contains, does not contain, is, is not A tag.
    Order tags Order events contains, does not contain, is, is not A tag.
    Total spent in last N days Order events is, is not, ≥, ≤ An amount. Also set Days, from 1 to 60.
    Order weight (kg) Order events is, is not, ≥, ≤ A number in kilograms.
    Order total Order events is, is not, ≥, ≤ An amount.
    Form field "(label)" All events contains, does not contain, is, is not, ≥, ≤ The answer from your sign-up form. Pick which form field. Use ≥ and ≤ with numbers.

    Values are required and can be up to 100 characters. Amounts and numbers must be numbers. Amounts are in your store currency. Tags can't contain a comma, *, ', " or \. Click the trash button next to a condition to delete it, and Add condition to add another.

    A Form field condition never matches when the customer has no application from the Sol sign-up form, or when they left that field empty. This holds for every operator, including does not contain and is not.

    [!INFO] Total spent in last N days can look back 1 to 60 days. Shopify shares only the last 60 days of orders with Sol, and there is no extra permission to approve. Orders older than 60 days are not available in Sol.

  4. Choose what happens (3. Then)

    Each action has an Action and a Tag. You need at least 1 action and can have up to 5. A tag can have up to 40 characters.

    The Then section

    Action What it does
    Add customer tag Adds the tag to the customer.
    Remove customer tag Removes the tag from the customer.
    Add order tag Adds the tag to the order. Order events only.
    Remove order tag Removes the tag from the order. Order events only.

    Click the trash button next to an action to delete it (it shows when the rule has 2 or more actions), and Add action to add another. Adding a tag a customer already has does nothing, so it is safe if a rule runs twice.

  5. Set the status and save

    Choose Active to run the rule or Draft to keep it saved but switched off. Click Save in the bar at the top.

Edit or delete a rule

Open a rule from the list. The page has a save bar (Save and Discard) for your changes. A Last 30 days box on the right shows how many times it Ran, how many customers it Changed and how many Errors it had. Click View history to see the runs for this rule: Auto tag history and how rules run.

To delete a rule, click Delete in the title bar of the rule page and confirm with Delete rule. Tags already added stay on customers and orders. New orders are no longer checked.

Example: VIP after $5,000 in 60 days

Yes. A group is a tag, so adding the group's tag with an Add customer tag action puts the customer in that group.

Rules run on new events. They do not go back through your past orders.

No. Tags stay on customers. Delete them in Shopify if you do not need them.

Related articles

Auto tag history and how rules run →