Flow Automation: Updating the Counter Action
You can use the Update counter action in a Flow Automation workflow to automatically record how many times a certain behavior occurs, such as product sales or discount code usage. These accumulatedThe counter values can be used as conditions to determine the next steps in a workflow, or be reused in other automation scenarios like scheduled reporting.
This action serves as the essential data recorder and is the mandatory first step for any merchant who wants to generate automated performance reports.
Field Description
| Field | Description |
| Counter name | Enter a new name to create a new counter, or select an existing counter to update its value. Use a descriptive name so you can identify it later on the counter management page or in a counter report. |
| Counter value |
Choose how the counter should change:
Click Add variable to use a dynamic value from the trigger, such as the quantity ordered. |
| Note: A counter only records and stores data — it does not generate a report on its own. To view, export, or manage your counters, see "Flow Automation: Understanding and Managing Counters." |
Applicable Workflows
This action works with all available triggers. You can click on a trigger type to view its full setup instructions.
- Supported by all workflow types
Example Use Case
Below is a practical use case of the Update Counter action: automatically tagging products with over 100 sales as [Hot Sale]:
- Trigger: Order Placed Successfully
-
Action 1: Update Counter
- Counter Name: Product Sales
- Increment Value: Quantity Ordered
- Condition: Counter value ≥ 100
- Action 2: Add product tag [Hot Sale] and send notification email
| Note: This use case can also be found in the template section under the Counter category. |
Available Templates
Here are commonly used templates that include the Update Counter action. Click any template to view its detailed setup and apply it directly:
- Track discount code usage: Monitor the usage count of all distributed discount codes. These counters can be used to generate discount performance reports.
- Track hot SKUs that frequently go out of stock: Log how many times each SKU experiences low stock monthly. This helps you optimize inventory strategies for popular items.
- Count new email subscribers each month: Use counters to track monthly growth in email subscribers. Pair this with Counter Report for regular performance insights.
- Reset counters on a recurring schedule: Set up daily, weekly, or monthly resets for short-term promotional counters (e.g., flash sales).
- Track current valid email subscribers: Monitor the total number of currently active email subscribers in real time.
- Upgrade membership level based on bundle purchases: For example, upgrade to Silver after 3 bundle purchases, and to Gold after 5.
- Count order volume by country: Use counters and scheduled reports to analyze order volume by region for better geographical sales insights.
- Auto-tag products that meet sales targets as [Hot Sale]: Automatically tag products with high sales to support showcasing, categorization, or promotions.