Skip to content

Commit

Permalink
feat: add tracking analytics in skills
Browse files Browse the repository at this point in the history
  • Loading branch information
NedcloarBR committed Jan 14, 2025
1 parent d775937 commit 3f48c07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/skills.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Button, Separator } from "./ui";
import Link from "next/link";
import { SkillData } from "@/@types";
import { skills } from "@/constants";
import { track } from '@vercel/analytics';

export function Skills() {
const t = useTranslations("Skills");
Expand All @@ -16,6 +17,11 @@ export function Skills() {
const [dialogSkill, setDialogSkill] = useState<SkillData | null>(null);

function handleClick(skill: SkillData) {
track("Skills",{
action: "click",
category: "Skills",
label: skill.name,
});
setDialogSkill(skill);
setIsOpen(true);
}
Expand Down

0 comments on commit 3f48c07

Please sign in to comment.