-
Notifications
You must be signed in to change notification settings - Fork 145
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
chore: send survey partial responses event #1788
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: +4.25 kB (+0.12%) Total Size: 3.56 MB
ℹ️ View Unchanged
|
if (!posthog) { | ||
logger.error('[survey sent] event not captured, PostHog instance not found.') | ||
return | ||
} | ||
localStorage.setItem(getSurveySeenKey(survey), 'true') | ||
|
||
// Don't send partial response if survey is not completed and disable_survey_partial_response is true |
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.
will disable_survey_partial_response
be default'ed to false
? or should that be an opt in feature?
@@ -684,6 +684,10 @@ export function SurveyPopup({ | |||
onPopupSurveyDismissed = () => {}, | |||
onPopupSurveySent = () => {}, | |||
}: SurveyPopupProps) { | |||
const surveyResponseInsertID = useMemo( |
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.
what does Insert
mean here?
() => survey.id + Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10), | ||
[survey.id] |
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.
can we just use an uuid instead?
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
Changes
sends events after every survey question - logic to dedupe them will be done on posthog/posthog side
related issue: PostHog/posthog#19300
todo:
Checklist