You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-13 06:02:19 +03:00
Add opt-in analytics to onboarding tasks (#8409)
* Add interaction tracking to explore room, send DM and create room events in onboarding view and elsewhere * Update matrix analytics events dependency
This commit is contained in:
committed by
GitHub
parent
c7c0fdbcc5
commit
9b0ab3321c
@@ -43,6 +43,8 @@ import SettingsStore from "../../settings/SettingsStore";
|
||||
import { KeyBindingAction } from "../../accessibility/KeyboardShortcuts";
|
||||
import { shouldShowComponent } from "../../customisations/helpers/UIComponents";
|
||||
import { UIComponent } from "../../settings/UIFeature";
|
||||
import { ButtonEvent } from "../views/elements/AccessibleButton";
|
||||
import PosthogTrackers from "../../PosthogTrackers";
|
||||
|
||||
interface IProps {
|
||||
isMinimized: boolean;
|
||||
@@ -116,8 +118,9 @@ export default class LeftPanel extends React.Component<IProps, IState> {
|
||||
dis.fire(Action.OpenDialPad);
|
||||
};
|
||||
|
||||
private onExplore = () => {
|
||||
private onExplore = (ev: ButtonEvent) => {
|
||||
dis.fire(Action.ViewRoomDirectory);
|
||||
PosthogTrackers.trackInteraction("WebLeftPanelExploreRoomsButton", ev);
|
||||
};
|
||||
|
||||
private refreshStickyHeaders = () => {
|
||||
|
||||
Reference in New Issue
Block a user