diff --git a/packages/code-du-travail-frontend/src/layout/Feedback/index.tsx b/packages/code-du-travail-frontend/src/layout/Feedback/index.tsx index 757c05a673..c47183d1ce 100644 --- a/packages/code-du-travail-frontend/src/layout/Feedback/index.tsx +++ b/packages/code-du-travail-frontend/src/layout/Feedback/index.tsx @@ -1,8 +1,17 @@ import styled from "styled-components"; import React from "react"; import Script from "next/script"; +import { push as matopush } from "@socialgouv/matomo-next"; +import { MatomoBaseEvent } from "../../lib"; export const Feedback = (): React.ReactNode => { + const onClick = () => { + matopush([ + MatomoBaseEvent.TRACK_EVENT, + MatomoBaseEvent.HEADER, + "click_bandeau", + ]); + }; return ( <> @@ -13,6 +22,7 @@ export const Feedback = (): React.ReactNode => { aria-label="Donner votre avis" aria-haspopup="dialog" aria-expanded="false" + onClick={onClick} >