diff --git a/packages/code-du-travail-frontend/src/modules/convention-collective/AgreementSearch/AgreementSearch.tsx b/packages/code-du-travail-frontend/src/modules/convention-collective/AgreementSearch/AgreementSearch.tsx index b5269baa29..b7beb41a01 100644 --- a/packages/code-du-travail-frontend/src/modules/convention-collective/AgreementSearch/AgreementSearch.tsx +++ b/packages/code-du-travail-frontend/src/modules/convention-collective/AgreementSearch/AgreementSearch.tsx @@ -5,9 +5,11 @@ import { useState } from "react"; import Button from "@codegouvfr/react-dsfr/Button"; import { ButtonStyle } from "../style"; import { AgreementSearchInput } from "./AgreementSearchInput"; +import { useAgreementSearchTracking } from "../tracking"; export const AgreementSearch = () => { const [noResult, setNoResult] = useState(false); + const { emitPreviousEvent } = useAgreementSearchTracking(); return ( <> { />