From b8ff3c169b6c42682a75483927058c451608536d Mon Sep 17 00:00:00 2001 From: Kerry Date: Thu, 16 Nov 2023 15:31:24 +1300 Subject: [PATCH] track WebRoomHeaderButtonsThreadsButton from new room header (#11885) --- src/components/views/rooms/RoomHeader.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/rooms/RoomHeader.tsx b/src/components/views/rooms/RoomHeader.tsx index 21a3694961..306908af20 100644 --- a/src/components/views/rooms/RoomHeader.tsx +++ b/src/components/views/rooms/RoomHeader.tsx @@ -49,6 +49,7 @@ import RoomAvatar from "../avatars/RoomAvatar"; import { formatCount } from "../../../utils/FormattingUtils"; import RightPanelStore from "../../../stores/right-panel/RightPanelStore"; import { Linkify, topicToHtml } from "../../../HtmlUtils"; +import PosthogTrackers from "../../../PosthogTrackers"; /** * A helper to transform a notification color to the what the Compound Icon Button @@ -220,6 +221,7 @@ export default function RoomHeader({ onClick={(evt) => { evt.stopPropagation(); RightPanelStore.instance.showOrHidePanel(RightPanelPhases.ThreadPanel); + PosthogTrackers.trackInteraction("WebRoomHeaderButtonsThreadsButton", evt); }} aria-label={_t("common|threads")} >