Auto-tag new customers, with Mechanic.

Mechanic is a development and ecommerce automation platform for Shopify. :)

Auto-tag new customers

This task tags every new customer, with the same configurable tag. :)

Runs Occurs whenever a customer is created. Configuration includes tag.

15-day free trial – unlimited tasks

Documentation

This task tags every new customer, with the same configurable tag. :)

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, Shopifolks, 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.

(By the way, have you seen our documentation? Have you joined the Slack community?)

Open source
View on GitHub to contribute to this task
Subscriptions
shopify/customers/create
Tasks use subscriptions to sign up for specific kinds of events. Learn more
Options
tag (required)
Code
{% 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 %}
Task code is written in Mechanic Liquid, an extension of open-source Liquid enhanced for automation. Learn more