Wire up more posthog properties and interactions (#7763)
This commit is contained in:
parent
be324df953
commit
20e9d0c159
6 changed files with 43 additions and 8 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue