Skip to product information
1 of 1
Published:2024.02.25

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

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

Applications

  • Shopify Flow Management/Editing

How to implement

  • Shopify Flow
View full details

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.

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

Sample Codes

Code to tag the number of purchases

Related Post