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 and danyx23 committed Jan 9, 2025
2 parents d19d8fa + c2abb3a commit ebcec64
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 ebcec64

Please sign in to comment.