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:
parent
c7c0fdbcc5
commit
9b0ab3321c
6 changed files with 22 additions and 8 deletions
|
@ -34,13 +34,15 @@ import Analytics from "../../Analytics";
|
|||
import PosthogTrackers from "../../PosthogTrackers";
|
||||
import EmbeddedPage from "./EmbeddedPage";
|
||||
|
||||
const onClickSendDm = () => {
|
||||
const onClickSendDm = (ev: ButtonEvent) => {
|
||||
Analytics.trackEvent('home_page', 'button', 'dm');
|
||||
PosthogTrackers.trackInteraction("WebHomeCreateChatButton", ev);
|
||||
dis.dispatch({ action: 'view_create_chat' });
|
||||
};
|
||||
|
||||
const onClickExplore = () => {
|
||||
const onClickExplore = (ev: ButtonEvent) => {
|
||||
Analytics.trackEvent('home_page', 'button', 'room_directory');
|
||||
PosthogTrackers.trackInteraction("WebHomeExploreRoomsButton", ev);
|
||||
dis.fire(Action.ViewRoomDirectory);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue