Skip to content

Commit

Permalink
[Feat] amplitude 허수 판독기 (#347)
Browse files Browse the repository at this point in the history
* feat: amplitude 허수 판독하기 위한 tracking 추가
  • Loading branch information
eonseok-jeon authored Aug 6, 2024
1 parent f93aa11 commit 926834e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/SignedInPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { track } from '@amplitude/analytics-browser';
import { useContext, useEffect, useState } from 'react';

import { RecruitingInfoContext } from '@store/recruitingInfoContext';
Expand All @@ -17,6 +18,7 @@ const SignedInPage = () => {
const { handleSaveRecruitingInfo } = useContext(RecruitingInfoContext);

const handleSetComplete = () => {
track('done-apply-confirm_submit');
setIsComplete(true);
};

Expand Down
2 changes: 2 additions & 0 deletions src/views/SignupPage/hooks/useMutateSignUp.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { track } from '@amplitude/analytics-browser';
import { useMutation } from '@tanstack/react-query';
import { useNavigate } from 'react-router-dom';

Expand All @@ -21,6 +22,7 @@ const useMutateSignUp = ({ onCheckExistence }: MutateSignUpProps) => {
>({
mutationFn: (userInfo: SignUpRequest) => sendSignUp(userInfo),
onSuccess: () => {
track('done-signup-apply');
navigate('/');
},
onError: (error) => {
Expand Down

0 comments on commit 926834e

Please sign in to comment.