From c74c45d984969b589382b667698be388e053e9ae Mon Sep 17 00:00:00 2001 From: Bobbie Macdonald Date: Wed, 8 Jan 2025 13:08:36 -0400 Subject: [PATCH] :bug: fix event_action Google analytics param for `chart_download_*` --- .../@ourworldindata/grapher/src/modal/DownloadModal.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/@ourworldindata/grapher/src/modal/DownloadModal.tsx b/packages/@ourworldindata/grapher/src/modal/DownloadModal.tsx index e8c9930dab..b89031653b 100644 --- a/packages/@ourworldindata/grapher/src/modal/DownloadModal.tsx +++ b/packages/@ourworldindata/grapher/src/modal/DownloadModal.tsx @@ -875,9 +875,7 @@ export const DownloadModalDataTab = (props: DownloadModalProps) => { onClick={() => onDownloadClick(CsvDownloadType.Full)} tracking={ "chart_download_full_data--" + - serverSideDownloadAvailable - ? "server" - : "client" + (serverSideDownloadAvailable ? "server" : "client") } /> { } tracking={ "chart_download_filtered_data--" + - serverSideDownloadAvailable - ? "server" - : "client" + (serverSideDownloadAvailable ? "server" : "client") } />