diff --git a/src/sider/sokperson/SokPerson.tsx b/src/sider/sokperson/SokPerson.tsx index 1251bfcc..799ccc94 100644 --- a/src/sider/sokperson/SokPerson.tsx +++ b/src/sider/sokperson/SokPerson.tsx @@ -59,6 +59,16 @@ const texts = { error: 'Noe gikk galt under søket. Vennligst prøv igjen.', }; +function logHelpTextClick(text: string) { + Amplitude.logEvent({ + type: Amplitude.EventType.ButtonClick, + data: { + url: window.location.href, + tekst: text, + }, + }); +} + function logSokPersonEvent() { Amplitude.logEvent({ type: Amplitude.EventType.ButtonClick, @@ -89,7 +99,10 @@ function InitialerLabel() { return (
{texts.label.initials} - + logHelpTextClick(texts.helpText.initials.title)} + > {texts.helpText.initials.text} @@ -101,7 +114,10 @@ function FodselsdatoLabel() { return (
{texts.label.birthdate} - + logHelpTextClick(texts.helpText.birthdate.title)} + > {texts.helpText.birthdate.text} @@ -168,7 +184,10 @@ export default function SokPerson() { {texts.header} - + logHelpTextClick(texts.helpText.info.title)} + > {texts.helpText.info.p1} {texts.helpText.info.p2}