Auto-tag new customers with the current date
Tag new Shopify customers with their signup date so you can find customers who joined on the same day.
Try this taskWhen it runs
When a customer is created, or when their account is activated if you enable that option.
What you choose
The date format, optional text before or after the date, and when to tag the customer.
Customer tag preview
Sample customerAlex Chen
-
Before the task runs
- wholesale
-
After signup on June 1, 2026
- wholesale
- signup-20260601
Documentation
Use this task to tag incoming customers with the current date/time, using the format of your choice, and optionally a prefix and suffix. If you like, enable "Wait until the customer is enabled" to apply the tag when the customer's online account is activated, rather than when the customer is first created.
To customize the date/time format, use an "strftime" reference, like www.strfti.me.
Task code and subscriptions
You can edit the Liquid code after installing this task. View on GitHub or ask a question in the Mechanic Slack community.
Subscriptions
{% if options.wait_until_the_customer_is_enabled__boolean %}
shopify/customers/enable
{% else %}
shopify/customers/create
{% endif %}
shopify/customers/create
How task subscriptions work
Option types and flags
- Tag date format (required)
- Wait until the customer is enabled (boolean)
Task code
{% assign tag = "now" | date: options.tag_date_format__required | prepend: options.tag_prefix | append: options.tag_suffix %}
{% if event.preview %}
{% assign customer = hash %}
{% assign customer["admin_graphql_api_id"] = "gid://shopify/Customer/12345" %}
{% endif %}
{% action "shopify" %}
mutation {
tagsAdd(
id: {{ customer.admin_graphql_api_id | json }}
tags: {{ tag | json }}
) {
userErrors {
field
message
}
}
}
{% endaction %}
Mechanic Liquid reference
Default option values
- Tag date format
%Y%m%d- Tag prefix
signup-