Skip to content

Commit

Permalink
feat(events): adds events on linktree
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa-thayto committed Jan 30, 2024
1 parent 877c40e commit 0c1ea41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pages/linktree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ const LinksPage = () => {
key={text}
href={href}
className="flex justify-center font-medium cursor-pointer rounded-full border border-slate-900 hover:hover:bg-indigo-300 dark:hover:hover:bg-indigo-500 px-10 py-4 mb-4 text-slate-900 dark:text-gray-300 bg-white dark:bg-gray-600"
onClick={() => {
window.simplytics.track('linktree-button-clicked', {
name: 'linktree-button-clicked',
data: {
href,
title: text,
},
})
}}
>
{text}
{Icon && (
Expand Down

0 comments on commit 0c1ea41

Please sign in to comment.