chore: posthog event for workspace invite (#2989)
* chore: posthog event for workspace invite * chore: updated event names, added all the existing events to workspace metrics group * chore: seperated workspace invite * fix: workspace invite accept event updated --------- Co-authored-by: Ramesh Kumar Chandra <rameshkumar2299@gmail.com>
This commit is contained in:
parent
37c03ff239
commit
b35874e294
25 changed files with 441 additions and 120 deletions
|
|
@ -22,7 +22,7 @@ export const WorkspaceDashboardView = observer(() => {
|
|||
user: userStore,
|
||||
project: projectStore,
|
||||
commandPalette: commandPaletteStore,
|
||||
trackEvent: { setTrackElement },
|
||||
trackEvent: { setTrackElement, postHogEventTracker },
|
||||
} = useMobxStore();
|
||||
|
||||
const user = userStore.currentUser;
|
||||
|
|
@ -37,7 +37,18 @@ export const WorkspaceDashboardView = observer(() => {
|
|||
);
|
||||
|
||||
const handleTourCompleted = () => {
|
||||
userStore.updateTourCompleted();
|
||||
userStore.updateTourCompleted().then(() => {
|
||||
postHogEventTracker(
|
||||
"USER_TOUR_COMPLETE",
|
||||
{
|
||||
user_id: user?.id,
|
||||
email: user?.email,
|
||||
state: "SUCCESS"
|
||||
}
|
||||
)
|
||||
}).catch((error) => {
|
||||
console.log(error);
|
||||
})
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue