Skip to content

Commit

Permalink
feat(front): track search history use
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-telescoop committed Oct 16, 2023
1 parent 95fcc39 commit 17e3858
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ export class ResultCardController {
this.htmlRna = rna.replace(searchValueRegex, `<span class="dsfr-black-bold">${upperSearchedValue}</span>`);
this.htmlSiren = siren.replace(searchValueRegex, `<span class="dsfr-black-bold">${upperSearchedValue}</span>`);
}

onClick() {
trackerService.buttonClickEvent("home.history.click");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
const ctrl = new ResultCardController(association, searchValue);
</script>

<Card size="12" url={ctrl.url}>
<Card size="12" url={ctrl.url} @click={ctrl.onClick}>
<div class="fr-grid-row fr-grid-row--center fr-grid-row--gutters">
<div class="fr-col fr-col-lg-12">
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
Expand Down

0 comments on commit 17e3858

Please sign in to comment.