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
Wire up more posthog properties and interactions (#7763)
This commit is contained in:
committed by
GitHub
parent
be324df953
commit
20e9d0c159
@@ -91,7 +91,7 @@ export default class PosthogTrackers {
|
||||
this.trackPage();
|
||||
}
|
||||
|
||||
public static trackInteraction(name: InteractionName, ev?: SyntheticEvent): void {
|
||||
public static trackInteraction(name: InteractionName, ev?: SyntheticEvent, index?: number): void {
|
||||
let interactionType: InteractionEvent["interactionType"];
|
||||
if (ev?.type === "click") {
|
||||
interactionType = "Pointer";
|
||||
@@ -102,6 +102,7 @@ export default class PosthogTrackers {
|
||||
PosthogAnalytics.instance.trackEvent<InteractionEvent>({
|
||||
eventName: "Interaction",
|
||||
interactionType,
|
||||
index,
|
||||
name,
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user