-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
Feat: plausible tracking stickiness #3363
Conversation
# Conflicts: # package.json
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
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.
Originally when I was thinking how I'd implement it I thought about useEffect tracking an attempt to change the select box to something other than default. But now that I see how you added this inside the submit handler also makes sense.
@@ -10,6 +12,7 @@ import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; | |||
import useToast from 'hooks/useToast'; | |||
import { formatUnknownError } from 'utils/formatUnknownError'; | |||
import { GO_BACK } from 'constants/navigate'; | |||
import { usePlausibleTracker } from '../../../../hooks/usePlausibleTracker'; |
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.
dots
import useProjectForm from '../hooks/useProjectForm'; | ||
import useProjectForm, { | ||
DEFAULT_PROJECT_STICKINESS, | ||
} from '../hooks/useProjectForm'; |
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.
dots
@@ -15,6 +17,7 @@ import AccessContext from 'contexts/AccessContext'; | |||
import { Alert } from '@mui/material'; | |||
import { GO_BACK } from 'constants/navigate'; | |||
import { useDefaultProjectSettings } from 'hooks/useDefaultProjectSettings'; | |||
import { usePlausibleTracker } from '../../../../hooks/usePlausibleTracker'; |
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.
dots
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Initially I was planning to use it within a useEffect, but that would give false results if someone is changing the select over and over. Having it in the submit handler, ensures we only track what we need |
# Conflicts: # frontend/src/hooks/api/actions/useProjectApi/useProjectApi.ts # frontend/src/hooks/usePlausibleTracker.ts
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Adds plausible tracking when default project stickiness is changed
About the changes
Closes #
Important files
Discussion points