-
Notifications
You must be signed in to change notification settings - Fork 1
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
IS-2828: Add amplitude logging for sok #554
Conversation
useEffect(() => { | ||
if (isSuccess) { | ||
logSokPersonResults(searchResults.length); | ||
} | ||
}, [isSuccess, searchResults]); |
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.
Kunne man løst det uten en useEffect? Men er kanskje riktig, siden det er en sideeffekt.
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.
mutate
har vel en sånn onSuccess
greie🤔 Går det an å logge det der? 😁 Se TildeltVeileder
for eksempel
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.
Ja true, det er jo kanskje bedre 👍🏼
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.
Ikke noe galt med useEffect
her tror jeg, men synes å legge det i onSuccess
-callbacken på mutate
leser bedre 👍 Begge loggingene burde kanskje ligge i en sånn callback? Evt putte logSokPersonEvent
i onSettled
hvis vi vil logge den nå kallet har fullført uansett error/success.
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.
Det var smart, funka bra 👍🏼
@@ -11,6 +11,7 @@ export enum EventType { | |||
OptionSelected = 'alternativ valgt', | |||
ButtonClick = 'knapp trykket', | |||
SortingColumn = 'kolonne sortert på', | |||
AmountDisplayed = 'antall vist', |
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.
Tar gjerne tilbakemeldinger på navn her og data-objektet i typen. Sånn jeg forstår det skal dette helst være handlinger, men antall resultater er jo mer en handling av systemet og ikke brukeren 🤔
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.
Tenker det er gudd jeg 😊 Evt. 'antall resultater'
. Men fint slik som det er også
ed8172b
to
3663b71
Compare
Hva har blitt lagt til✨🌈
Håper dette skal fikse:
Og så har vi allerede målinger på klikk på person/lenke, som vi kan knytte opp til søk-klikket i en funnel.