diff --git a/src/sider/sokperson/SokPerson.tsx b/src/sider/sokperson/SokPerson.tsx index 1251bfcc..7ade00f6 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() { + Amplitude.logEvent({ + type: Amplitude.EventType.ButtonClick, + data: { + url: window.location.href, + tekst: texts.helpText.info.title, + }, + }); +} + function logSokPersonEvent() { Amplitude.logEvent({ type: Amplitude.EventType.ButtonClick, @@ -168,7 +178,10 @@ export default function SokPerson() { {texts.header} - + logHelpTextClick()} + > {texts.helpText.info.p1} {texts.helpText.info.p2}