Skip to content

Commit 2497834

Browse files
committed
matomo: "join" events
1 parent 88e260e commit 2497834

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/components/Homepage/useHome.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,27 +174,31 @@ export const useHome = () => {
174174
description: t(
175175
"page-index:page-index-join-action-contribute-description"
176176
),
177+
eventName: "contribute",
177178
},
178179
{
179180
Svg: FaGithub,
180181
label: "GitHub",
181182
href: GITHUB_REPO_URL,
182183
className: "text-accent-a hover:text-accent-a-hover",
183184
description: t("page-index:page-index-join-action-github-description"),
185+
eventName: "GitHub",
184186
},
185187
{
186188
Svg: FaDiscord,
187189
label: "Discord",
188190
href: "/discord/",
189191
className: "text-primary hover:text-primary-hover",
190192
description: t("page-index:page-index-join-action-discord-description"),
193+
eventName: "Discord",
191194
},
192195
{
193196
Svg: FaXTwitter,
194197
label: "X",
195198
href: "https://x.com/EthDotOrg",
196199
className: "text-accent-b hover:text-accent-b-hover",
197200
description: t("page-index:page-index-join-action-twitter-description"),
201+
eventName: "Twitter",
198202
},
199203
]
200204

src/pages/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,14 +821,19 @@ const HomePage = ({
821821
</div>
822822
<div className="mx-auto grid grid-cols-1 gap-16 md:grid-cols-2">
823823
{joinActions.map(
824-
({ Svg, label, href, className, description }) => (
824+
({ Svg, label, href, className, description, eventName }) => (
825825
<SvgButtonLink
826826
key={label}
827827
Svg={Svg}
828828
label={label}
829829
href={href}
830830
className={cn("max-w-screen-sm", className)}
831831
variant="row"
832+
customEventOptions={{
833+
eventCategory: "Homepage",
834+
eventAction: "join",
835+
eventName,
836+
}}
832837
>
833838
<p className="text-body">{description}</p>
834839
</SvgButtonLink>

0 commit comments

Comments
 (0)