chore: posthog events improved (#3554)
* chore: events naming convention changed * chore: track element added for project related events * chore: track element added for cycle related events * chore: track element added for module related events * chore: issue related events updated * refactor: event tracker store * refactor: event-tracker store * fix: posthog changes --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
parent
7d07afd59c
commit
0165abab3e
103 changed files with 1385 additions and 596 deletions
|
|
@ -8,7 +8,7 @@ import { ChevronDown } from "lucide-react";
|
|||
import { Menu, Transition } from "@headlessui/react";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
// hooks
|
||||
import { useApplication, useUser, useWorkspace } from "hooks/store";
|
||||
import { useEventTracker, useUser, useWorkspace } from "hooks/store";
|
||||
import useUserAuth from "hooks/use-user-auth";
|
||||
// services
|
||||
import { WorkspaceService } from "services/workspace.service";
|
||||
|
|
@ -35,9 +35,7 @@ const OnboardingPage: NextPageWithLayout = observer(() => {
|
|||
// router
|
||||
const router = useRouter();
|
||||
// store hooks
|
||||
const {
|
||||
eventTracker: { postHogEventTracker },
|
||||
} = useApplication();
|
||||
const { captureEvent } = useEventTracker();
|
||||
const { currentUser, currentUserLoader, updateCurrentUser, updateUserOnBoard } = useUser();
|
||||
const { workspaces, fetchWorkspaces } = useWorkspace();
|
||||
// custom hooks
|
||||
|
|
@ -81,7 +79,7 @@ const OnboardingPage: NextPageWithLayout = observer(() => {
|
|||
|
||||
await updateUserOnBoard()
|
||||
.then(() => {
|
||||
postHogEventTracker("USER_ONBOARDING_COMPLETE", {
|
||||
captureEvent("User onboarding completed", {
|
||||
user_role: user.role,
|
||||
email: user.email,
|
||||
user_id: user.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue