Guides / Payments

Get Alerted When You Hit Revenue Milestones

3 min read·Payments

The Idea

Smart Actions counts events in a rolling window. If you log a "Payment received" event for every payment, Smart Actions can fire when that count crosses a threshold — a payment count milestone without tracking cumulative sums.

Step 1: Log Every Payment

ts
await logit.now("payments", {
  event: "Payment received",
  description: `${customerEmail}${(amount / 100).toFixed(2)} ${currency.toUpperCase()}`,
  icon: "💰",
  notify: true,
  tags: { currency, plan },
  metadata: { amount, currency, customerId, plan },
});

Step 2: Create Milestone Rules

Rule nameThresholdWindowCooldown
10 payments today1024 hours24 hours
50 payments today5024 hours24 hours
100 payments today10024 hours24 hours

Each rule fires once per day when the payment count hits that milestone.

Step 3: Pair with a Slack Webhook

Configure the milestone rule to also post a Slack message to your #wins channel using the Webhook action type so the whole team sees it.

Customizing for Your Deal Size

If your average order value is $49, 10 payments ≈ $490/day. Adjust thresholds to match your typical deal size so milestones represent real business moments.

Tips

  • Set cooldown equal to the window (e.g. both 24 hours) so you get exactly one notification per milestone per period.
  • Start with a modest threshold (e.g. 10 payments) and add higher-level rules as your volume grows.
  • Combine with a Slack webhook so the whole team celebrates together.

Try LogIt free

7-day trial. No credit card required.

Start free