You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
Send how many favorited rooms a user has to Posthog (#7772)
This commit is contained in:
committed by
GitHub
parent
871032e1bc
commit
f6565bfbc8
@@ -23,6 +23,7 @@ import Views from "./Views";
|
||||
import { PosthogAnalytics } from "./PosthogAnalytics";
|
||||
|
||||
export type ScreenName = ScreenEvent["screenName"];
|
||||
export type InteractionName = InteractionEvent["name"];
|
||||
|
||||
const notLoggedInMap: Record<Exclude<Views, Views.LOGGED_IN>, ScreenName> = {
|
||||
[Views.LOADING]: "WebLoading",
|
||||
@@ -90,7 +91,7 @@ export default class PosthogTrackers {
|
||||
this.trackPage();
|
||||
}
|
||||
|
||||
public static trackInteraction(name: InteractionEvent["name"], ev?: SyntheticEvent): void {
|
||||
public static trackInteraction(name: InteractionName, ev?: SyntheticEvent): void {
|
||||
let interactionType: InteractionEvent["interactionType"];
|
||||
if (ev?.type === "click") {
|
||||
interactionType = "Pointer";
|
||||
|
Reference in New Issue
Block a user