@@ -21,7 +21,6 @@ import { cn } from "@/lib/utils/cn"
21
21
import { dataLoader } from "@/lib/utils/data/dataLoader"
22
22
import { existsNamespace } from "@/lib/utils/existsNamespace"
23
23
import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
24
- import { trackCustomEvent } from "@/lib/utils/matomo"
25
24
import { getLocaleTimestamp } from "@/lib/utils/time"
26
25
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
27
26
@@ -107,12 +106,10 @@ const ResourcesPage = ({ txCostsMedianUsd }) => {
107
106
GITHUB_REPO_URL
108
107
) . toString ( ) }
109
108
className = "visited:text-white"
110
- onClick = { ( ) => {
111
- trackCustomEvent ( {
112
- eventCategory : EVENT_CATEGORY ,
113
- eventAction : "links" ,
114
- eventName : "Ethereum.org Github Page Feedback" ,
115
- } )
109
+ customEventOptions = { {
110
+ eventCategory : EVENT_CATEGORY ,
111
+ eventAction : "links" ,
112
+ eventName : "Ethereum.org Github Page Feedback" ,
116
113
} }
117
114
>
118
115
{ t ( "page-resources-share-feedback" ) }
@@ -141,14 +138,11 @@ const ResourcesPage = ({ txCostsMedianUsd }) => {
141
138
"relative text-nowrap rounded-xl px-4 py-2 text-sm [&_svg]:shrink-0 [&_svg]:text-sm" ,
142
139
activeSection === key && "!text-primary"
143
140
) }
144
- onClick = { ( ) =>
145
- trackCustomEvent ( {
146
- eventCategory : EVENT_CATEGORY ,
147
- eventAction : "whats_on_this_page" ,
148
- eventName :
149
- "network,using, scaling, resilience, privacy_security" ,
150
- } )
151
- }
141
+ customEventOptions = { {
142
+ eventCategory : EVENT_CATEGORY ,
143
+ eventAction : "whats_on_this_page" ,
144
+ eventName : key ,
145
+ } }
152
146
>
153
147
{ activeSection === key && (
154
148
< motion . div
@@ -209,12 +203,10 @@ const ResourcesPage = ({ txCostsMedianUsd }) => {
209
203
< ButtonLink
210
204
href = "https://ethereumdashboards.com"
211
205
size = "lg"
212
- onClick = { ( ) => {
213
- trackCustomEvent ( {
214
- eventCategory : EVENT_CATEGORY ,
215
- eventAction : "links" ,
216
- eventName : "ethereumdashboards.com" ,
217
- } )
206
+ customEventOptions = { {
207
+ eventCategory : EVENT_CATEGORY ,
208
+ eventAction : "links" ,
209
+ eventName : "ethereumdashboards.com" ,
218
210
} }
219
211
>
220
212
ethereumdashboards.com
@@ -242,12 +234,10 @@ const ResourcesPage = ({ txCostsMedianUsd }) => {
242
234
) . toString ( ) }
243
235
variant = "outline"
244
236
isSecondary
245
- onClick = { ( ) => {
246
- trackCustomEvent ( {
247
- eventCategory : EVENT_CATEGORY ,
248
- eventAction : "links" ,
249
- eventName : "Ethereum.org Github Feature Request" ,
250
- } )
237
+ customEventOptions = { {
238
+ eventCategory : EVENT_CATEGORY ,
239
+ eventAction : "links" ,
240
+ eventName : "Ethereum.org Github Feature Request" ,
251
241
} }
252
242
>
253
243
{ t ( "page-resources-suggest-resource" ) }
@@ -259,12 +249,10 @@ const ResourcesPage = ({ txCostsMedianUsd }) => {
259
249
) . toString ( ) }
260
250
variant = "outline"
261
251
isSecondary
262
- onClick = { ( ) => {
263
- trackCustomEvent ( {
264
- eventCategory : EVENT_CATEGORY ,
265
- eventAction : "links" ,
266
- eventName : "Ethereum.org Github Bug Report" ,
267
- } )
252
+ customEventOptions = { {
253
+ eventCategory : EVENT_CATEGORY ,
254
+ eventAction : "links" ,
255
+ eventName : "Ethereum.org Github Bug Report" ,
268
256
} }
269
257
>
270
258
< FaGithub /> { t ( "page-resources-found-bug" ) }
0 commit comments