Skip to product information
Shopify Flowを使って特定の商品の購入回数を顧客タグに記録する設定例
Published:2024.02.25

Example of setting up Shopify Flow to record the number of purchases of a specific product in a customer tag

The Add Tag action of Shopify Flow can be used to set dynamic content using Liquid code, in addition to the direct tag name. Here is an example of how to add a customer tag that counts the number of purchases of a specific product for each customer.


Example of setting up Shopify Flow to record the number of purchases of a specific product in a customer tag


[Setup method ①] Set up a Flow that adds a tag when the target product is included in the order generation trigger (Step 1: Determine whether the target product is included in the order data)


[Setup Method 2] Set up a Flow that adds a tag when the target product is included in the trigger for generating an order (Part 2: Add the purchase quantity as a tag & wait 10 seconds)


[Setup Method 3] Set up a Flow that adds a tag when the target product is included in the trigger for order generation (Step 3: Delete the previous purchase tag if there is one)


After making a purchase (all items are ¥0), you will be able to view the sample code.

View store information

Example of setting up Shopify Flow to record the number of purchases of a specific product in a customer tag

If you have already made a purchase, please login here.

Sample Codes

Code to tag the number of purchases

↗ Related Post

すべてのShopify TIPS

View all