File tree 2 files changed +9
-3
lines changed
overview-filters/text-filter
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ export const AlternativeAudience = () => {
102
102
'for'
103
103
) . slice ( 1 ) } `;
104
104
105
- return `${ forString } ${ providerTypesString || currentAudienceLabel } ${ addPeriod ? '.' : '' } ` ;
105
+ return `${ forString } ${ providerTypesString || currentAudienceLabel } ${
106
+ addPeriod ? '.' : ''
107
+ } `;
106
108
} ;
107
109
108
110
if ( ! alternativeAudience ) {
@@ -126,7 +128,7 @@ export const AlternativeAudience = () => {
126
128
{ getRelatedString ( 'relatedAudience' ) . replace ( '{name}' , productName ) } { ' ' }
127
129
{ audienceLinks . map ( ( link , index ) => (
128
130
< Fragment key = { index } >
129
- < LenkeInline href = { link . url } analyticsLabel = { 'Aktuell målgruppe' } >
131
+ < LenkeInline href = { link . url } analyticsComponent = "alternativ- målgruppe" >
130
132
{ link . title }
131
133
</ LenkeInline >
132
134
{ getConjunction ( {
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ import { translator } from 'translations';
5
5
import { usePageContentProps } from 'store/pageContext' ;
6
6
import { useOverviewFilters } from 'store/hooks/useOverviewFilters' ;
7
7
import { windowScrollTo } from 'utils/scroll-to' ;
8
+ import { AnalyticsEvents , logAmplitudeEvent } from 'utils/amplitude' ;
8
9
import {
9
10
OVERVIEW_FILTERS_TEXT_INPUT_EVENT ,
10
11
OverviewFiltersTextInputEventDetail ,
11
12
} from 'store/slices/overviewFilters' ;
12
-
13
13
import style from './OverviewTextFilter.module.scss' ;
14
14
15
15
type Props = {
@@ -35,6 +35,10 @@ export const OverviewTextFilter = ({ hideLabel }: Props) => {
35
35
}
36
36
)
37
37
) ;
38
+ logAmplitudeEvent ( AnalyticsEvents . FILTER , {
39
+ komponent : 'skjemaoversikt-filter' ,
40
+ filtertekst : value ,
41
+ } ) ;
38
42
} , 500 ) ,
39
43
[ setTextFilter ]
40
44
) ;
You can’t perform that action at this time.
0 commit comments