From f0467aa15bdbab099048b895ffb7739457b4c82c Mon Sep 17 00:00:00 2001 From: Mohd Zishan <72738005+Zishan-7@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:07:09 +0530 Subject: [PATCH] Add matomo event tracking (#214) --- index.html | 7 +++--- src/onboarding/Register.jsx | 6 +++++ src/shared/Footer.jsx | 44 ++++++++++++++++++++++++++++++++----- 3 files changed, 47 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 9ee79f8e..6afa726d 100644 --- a/index.html +++ b/index.html @@ -81,19 +81,18 @@ diff --git a/src/onboarding/Register.jsx b/src/onboarding/Register.jsx index 87df9dd7..10f232b4 100644 --- a/src/onboarding/Register.jsx +++ b/src/onboarding/Register.jsx @@ -26,6 +26,12 @@ export default function Register() { const navigate = useNavigate(); const handleSignUp = async data => { + window._paq.push([ + 'trackEvent', + 'Sign Up', + 'Sign Up button clicked', + data.email + ]); if (!isClerkLoaded) return; try { diff --git a/src/shared/Footer.jsx b/src/shared/Footer.jsx index b437d629..d212c531 100644 --- a/src/shared/Footer.jsx +++ b/src/shared/Footer.jsx @@ -18,7 +18,14 @@ export default function Footer() {