Auto-tag new customers, with Mechanic.

Mechanic is an automation development platform for Shopify. :)

Auto-tag new customers

by Isaac Bowen (team@usemechanic.com)

This task tags every new customer, and it's easy to update it to be more specific about who gets tagged – use that chat button in the corner, and we’ll help!

Runs when a customer is created. Configuration includes tag.

15-day free trial – unlimited tasks

Documentation

This task tags new customers, as their accounts are created.

To tag all of your existing customers at once, open the "Customers" section of your store, then click the checkbox in the upper-right corner of the list. You'll then see an option to "Select all 50+ customers in your store". Click it, then use the "Actions" -> "Add tags" menu item to tag all customers.

Developer details

Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Gurus, everybody.

That’s why we make it easy to configure automation without code, why we make it easy to tweak the underlying code once tasks are installed, and why we publish it all here for everyone to learn from.

Events
when a customer is created (shopify/customers/create)
Options
tag (required)
Script
{% action "shopify" %}
  mutation {
    tagsAdd(
      id: {{ customer.admin_graphql_api_id | default: "gid://shopify/Customer/1234567890" | json }}
      tags: {{ options.tag__required | json }}
    ) {
      userErrors {
        field
        message
      }
    }
  }
{% endaction %}
Mechanic tasks are written in Liquid, which makes them easy to write and easy to modify. Learn more about our platform.