diff --git a/apps/dashboard/src/components/shared/external-link.tsx b/apps/dashboard/src/components/shared/external-link.tsx index ade6bb1ecd4..483c083a4af 100644 --- a/apps/dashboard/src/components/shared/external-link.tsx +++ b/apps/dashboard/src/components/shared/external-link.tsx @@ -1,5 +1,7 @@ import { RiBookMarkedLine, RiExternalLinkLine, RiQuestionLine } from 'react-icons/ri'; import { cn } from '@/utils/ui'; +import { useTelemetry } from '@/hooks/use-telemetry'; +import { TelemetryEvent } from '@/utils/telemetry'; interface ExternalLinkProps extends React.AnchorHTMLAttributes { children: React.ReactNode; @@ -7,12 +9,30 @@ interface ExternalLinkProps extends React.AnchorHTMLAttributes { + telemetry(TelemetryEvent.EXTERNAL_LINK_CLICKED, { + href, + variant, + }); + }; + return ( {variant === 'documentation' &&