From 4ebc86051111f4e81cd3a12d8a5644d81276cf37 Mon Sep 17 00:00:00 2001 From: Dilson's Pickles Date: Thu, 28 Sep 2023 11:56:03 +1000 Subject: [PATCH] Update matomo event --- src/components/button/DownloadButton.jsx | 2 +- src/components/button/DownloadMuseHubButton.jsx | 2 +- src/components/card/DownloadCard.jsx | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/button/DownloadButton.jsx b/src/components/button/DownloadButton.jsx index 67f08b9..5b6496f 100644 --- a/src/components/button/DownloadButton.jsx +++ b/src/components/button/DownloadButton.jsx @@ -10,7 +10,7 @@ function DownloadButton() { }, []); function handleButtonClick() { - _paq.push(['trackEvent', 'Button', 'Click', 'Download Audacity button']); + _paq.push(['trackEvent', 'Button', 'Download', 'Download Audacity button']); } function renderButton(href) { diff --git a/src/components/button/DownloadMuseHubButton.jsx b/src/components/button/DownloadMuseHubButton.jsx index 6824863..2ea24b5 100644 --- a/src/components/button/DownloadMuseHubButton.jsx +++ b/src/components/button/DownloadMuseHubButton.jsx @@ -9,7 +9,7 @@ function DownloadMuseHubButton() { }, []); function handleButtonClick() { - _paq.push(["trackEvent", "Button", "Click", "Download MuseHub button"]); + _paq.push(["trackEvent", "Button", "Download", "Download MuseHub button"]); } function renderButton(href) { diff --git a/src/components/card/DownloadCard.jsx b/src/components/card/DownloadCard.jsx index cea3310..dddd6ea 100644 --- a/src/components/card/DownloadCard.jsx +++ b/src/components/card/DownloadCard.jsx @@ -4,11 +4,10 @@ function DownloadCard(props) { const { OS, title, downloadURL, buttonText, downloadType, checksum } = props; function handleButtonClick() { - console.log(OS + " " + title); _paq.push([ "trackEvent", "Button", - "Click", + "Download", `${OS + " " + downloadType}`, ]); }