'use client' import Link from 'next/link' import { formatNumber } from '@ciphera-net/ui' import { Target } from '@phosphor-icons/react' import { BookOpenIcon, ArrowRightIcon } from '@ciphera-net/ui' import type { GoalCountStat } from '@/lib/api/stats' interface GoalStatsProps { goalCounts: GoalCountStat[] onSelectEvent?: (eventName: string) => void } const LIMIT = 10 export default function GoalStats({ goalCounts, onSelectEvent }: GoalStatsProps) { const list = (goalCounts || []).slice(0, LIMIT) const hasData = list.length > 0 const total = list.reduce((sum, r) => sum + r.count, 0) const emptySlots = Math.max(0, 6 - list.length) return (
Add pulse.track('event_name') where actions happen on your site, then see counts here. Check our guide for step-by-step instructions.