From 1d2109b8a589f9aca6dafd1228326abfc98038ce Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Mon, 12 Feb 2024 12:09:19 +0545 Subject: [PATCH] Track project id on click --- frontend/src/components/projectDetail/downloadOsmData.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/projectDetail/downloadOsmData.js b/frontend/src/components/projectDetail/downloadOsmData.js index 0d7ba1e619..db895e6d13 100644 --- a/frontend/src/components/projectDetail/downloadOsmData.js +++ b/frontend/src/components/projectDetail/downloadOsmData.js @@ -85,7 +85,12 @@ export const DownloadOsmData = ({ projectMappingTypes, project }) => { window.focus(); if (window._paq) { // Check if Matomo tracking array (_paq) exists - window._paq.push(['trackEvent', 'OSMDownloads', 'Click', `${title}_${fileFormat}`]); + window._paq.push([ + 'trackEvent', + 'OSMDownloads', + 'Click', + `${project.projectId}_${title}_${fileFormat}`, + ]); } // Check if the request was successful if (responsehead.ok) {