Update matomo event

This commit is contained in:
Dilson's Pickles
2023-09-28 11:56:03 +10:00
parent 9e289646e3
commit 4ebc860511
3 changed files with 3 additions and 4 deletions

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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}`,
]);
}