From 11802cb5588dafdec8a2c6786a97409be4090019 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Wed, 4 Feb 2026 14:53:11 +0100 Subject: [PATCH] feat: enhance GoalStats component with user guidance for tracking goals and add documentation link --- components/dashboard/GoalStats.tsx | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/components/dashboard/GoalStats.tsx b/components/dashboard/GoalStats.tsx index 13853e9..f6303aa 100644 --- a/components/dashboard/GoalStats.tsx +++ b/components/dashboard/GoalStats.tsx @@ -1,6 +1,8 @@ 'use client' +import Link from 'next/link' import { formatNumber } from '@/lib/utils/format' +import { BookOpenIcon, ArrowRightIcon } from '@ciphera-net/ui' import type { GoalCountStat } from '@/lib/api/stats' interface GoalStatsProps { @@ -39,10 +41,25 @@ export default function GoalStats({ goalCounts, siteId, dateRange }: GoalStatsPr )) ) : ( -
-

- No custom events in this period. Track goals with pulse.track('event_name') in your snippet. -

+
+
+
+ +
+

+ Need help tracking goals? +

+

+ Add pulse.track('event_name') where actions happen on your site, then see counts here. Check our guide for step-by-step instructions. +

+ + Read documentation + + +
)}