Skip to content

Commit

Permalink
Merge pull request #4411 from owid/fix-download-modal-analytics
Browse files Browse the repository at this point in the history
🐛 Small fix to Google analytics tracking of grapher download modal clicks
  • Loading branch information
bnjmacdonald authored Jan 8, 2025
2 parents 9e6c9c8 + c74c45d commit 8f1612d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/@ourworldindata/grapher/src/modal/DownloadModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -875,9 +875,7 @@ export const DownloadModalDataTab = (props: DownloadModalProps) => {
onClick={() => onDownloadClick(CsvDownloadType.Full)}
tracking={
"chart_download_full_data--" +
serverSideDownloadAvailable
? "server"
: "client"
(serverSideDownloadAvailable ? "server" : "client")
}
/>
<DownloadButton
Expand All @@ -889,9 +887,7 @@ export const DownloadModalDataTab = (props: DownloadModalProps) => {
}
tracking={
"chart_download_filtered_data--" +
serverSideDownloadAvailable
? "server"
: "client"
(serverSideDownloadAvailable ? "server" : "client")
}
/>
</div>
Expand Down

0 comments on commit 8f1612d

Please sign in to comment.