-
Notifications
You must be signed in to change notification settings - Fork 1
feat: 온보딩 스텝 별 Gtag 추가 #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
apps/client/src/pages/onBoarding/components/funnel/step/AlarmStep.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: Pinback-Team/pinback-client
Length of output: 1031
🏁 Script executed:
Repository: Pinback-Team/pinback-client
Length of output: 196
🏁 Script executed:
rg -A 20 "export.*stepOrder|export.*storySteps|export.*Step\s*=" apps/client/src/pages/onBoarding --type tsRepository: Pinback-Team/pinback-client
Length of output: 2228
🏁 Script executed:
cat -n apps/client/src/pages/onBoarding/components/funnel/MainCard.tsx | head -250Repository: Pinback-Team/pinback-client
Length of output: 9164
🏁 Script executed:
Repository: Pinback-Team/pinback-client
Length of output: 1789
🏁 Script executed:
Repository: Pinback-Team/pinback-client
Length of output: 2240
🏁 Script executed:
Repository: Pinback-Team/pinback-client
Length of output: 1065
🏁 Script executed:
cat -n apps/client/src/pages/onBoarding/components/funnel/step/AlarmStep.tsx | head -80Repository: Pinback-Team/pinback-client
Length of output: 1556
🏁 Script executed:
Repository: Pinback-Team/pinback-client
Length of output: 898
🏁 Script executed:
Repository: Pinback-Team/pinback-client
Length of output: 948
스토리 단계 외 ALARM·MAC 단계에서 의도치 않은 GA 이벤트가 발생합니다
nextStep의sendGAEvent호출은 두 가지 early-return(shouldSkipMacStep,isFinalStep) 이후에만 가드됩니다. 따라서 Mac 사용자가 다음 단계로 진행할 때:shouldSkipMacStep이false가 되어sendGAEvent('onboard-step-5', ...)가 발생합니다.AlarmStep.tsx의useEffect가 이미'onboard-alarm-step'을 발송하므로, 같은 스텝에서 두 번의 이벤트가 발생합니다.sendGAEvent('onboard-step-6', ...)가 발생합니다.onboard-step-4이상의 이벤트명은 PR의 의도(onboard-step-1~3은 스토리 단계 전용)와 맞지 않아 Analytics 데이터를 오염시킵니다.이미 import된
storySteps로 가드를 추가하면 해결됩니다:🐛 제안 수정
setDirection(1); setStep(next); navigate(`/onboarding?step=${next}`); + if (storySteps.includes(step)) { sendGAEvent( `onboard-step-${idx + 1}`, `onboard-step-${idx + 1}`, `onboard-step-${idx + 1}` ); + } };📝 Committable suggestion
🤖 Prompt for AI Agents