diff --git a/frontend/src/common/analytics/events.ts b/frontend/src/common/analytics/events.ts index 1486f0912fd49..e411c645d5221 100644 --- a/frontend/src/common/analytics/events.ts +++ b/frontend/src/common/analytics/events.ts @@ -69,6 +69,7 @@ export enum EVENTS { DOWNLOAD_DATA_COMPLETE = "DOWNLOAD_DATA_COMPLETE", DOWNLOAD_DATA_COPY = "DOWNLOAD_DATA_COPY", DOWNLOAD_DATA_FORMAT_CLICKED = "DOWNLOAD_DATA_FORMAT_CLICKED", + DOWNLOAD_DATA_SEURAT_DEPRECATION_CLICKED = "DOWNLOAD_DATA_SEURAT_DEPRECATION_CLICKED", HOMEPAGE_SEC_NAV_DE = "HOMEPAGE_SEC_NAV_DE", HOMEPAGE_SEC_NAV_CENSUS = "HOMEPAGE_SEC_NAV_CENSUS", HOMEPAGE_SEC_NAV_CELL_GUIDE = "HOMEPAGE_SEC_NAV_CELL_GUIDE", diff --git a/frontend/src/components/Collections/components/Dataset/components/DownloadDataset/components/Content/components/Details/index.tsx b/frontend/src/components/Collections/components/Dataset/components/DownloadDataset/components/Content/components/Details/index.tsx index c9e3bf5be6e3c..df96c57149820 100644 --- a/frontend/src/components/Collections/components/Dataset/components/DownloadDataset/components/Content/components/Details/index.tsx +++ b/frontend/src/components/Collections/components/Dataset/components/DownloadDataset/components/Content/components/Details/index.tsx @@ -8,6 +8,8 @@ import { StyledLink, TextWrapper, } from "./style"; +import { track } from "src/common/analytics"; +import { EVENTS } from "src/common/analytics/events"; export const PROMPT_TEXT = "Select one of the data formats to view its download details."; @@ -56,7 +58,16 @@ const Details: FC = ({ Seurat support will be removed between Nov 15 - Dec 31, 2024. You can download and convert the .h5ad yourself by following these {""} - instructions. + + track(EVENTS.DOWNLOAD_DATA_SEURAT_DEPRECATION_CLICKED) + } + > + instructions + + . )}