Shopify logo icon filter icon

Add Shopify Product Tags Using SKU Pattern Rules

Use this template
  • 100% fully customizable
  • Includes 7-day free trial
  • Live chat, email support
  • Setup services available

This workflow applies product tags in Shopify by matching SKU patterns to predefined tag rules. When SKUs match the patterns you set, MESA adds the corresponding tags to those products. The applied tags help build collections, sort inventory, and create customer-facing product filters. Rather than manually tagging products, this workflow maintains consistent product organization as you add new items to your catalog.

Frequently asked questions:

What is a template?

Templates are pre-made workflows by our team of experts. Instead of building a workflow from scratch, these have all the steps needed to complete the task.

Can I personalize a template?

Yes! Every step can be customized to meet your exact requirements. Additionally, you can even add more steps and make it more sophisticated.

Can MESA handle the setup for me?

Yes, check out our Expert Workflow Setup. We'll collaborate with you to craft the perfect workflow so you're up and running with confidence.

How this template works:

Step 1.

A Shopify product is created

The workflow triggers when a new product is added to Shopify, capturing SKU details for tagging.

A Shopify product is created
Step 2.

Map SKU patterns to tags

Matches predefined SKU patterns to their corresponding product tags using a mapping system.

Map SKU patterns to tags
Step 3.

Generate list of patterns

Creates an array of SKU patterns to check against each product variant.

Generate list of patterns
Step 4.

Loop over product variants

Iterates through all variants of the product to apply tagging rules based on SKUs.

Loop over product variants
Step 5.

Loop over SKU patterns

Checks each SKU against the defined pattern list to determine if a tag should be applied.

Loop over SKU patterns
Step 6.

Check if the SKU matches the pattern

Runs a regex-based check to confirm if the product’s SKU matches a predefined tagging pattern.

Check if the SKU matches the pattern
Step 7.

Verify tag is not already applied

Ensures the product does not already have the tag before adding it.

Verify tag is not already applied
Step 8.

Retrieve Shopify product details

Fetches the product’s current tag list to compare against the new tag.

Retrieve Shopify product details
Step 9.

Add tag to product

Applies the matched tag to the product in Shopify for better organization and filtering.

Add tag to product

Add Shopify Product Tags Using SKU Pattern Rules

100% customizable. No code required.

Rated 4.8 out of 5 stars on the Shopify App Store

Use this template

Loved by 3k+ businesses worldwide

  • Logo: GLDN
  • Logo: MUD/WTR
  • Logo: Bartesian
  • Logo: Allure
  • Logo: Made In Cookware
  • Logo: Rothy's
  • Logo: Jackie Smith
  • Logo: Full Focus
  • Logo: Car Living
  • icon star orange
  • icon star orange
  • icon star orange
  • icon star orange
  • icon star orange

Fully supported by automation experts.

Get help from our team of experts and industry partners, who are dedicated to ensuring your MESA experience is smooth, efficient, and tailored to your exact business needs.

icon support docs

Knowledge Base

Training guides, tutorials, and platform documentation.

icon partners

Service Partners

Consult on automation strategy to build your workflow.

icon support team

Contact us

5-star customer support and live chat for automations.

MESA is the most customizable automation platform.