From 2e9dff3d3e541764f1879d07c1ac5a45fe605fff Mon Sep 17 00:00:00 2001 From: Victor Zeinstra Date: Thu, 19 Sep 2024 11:45:25 +0200 Subject: [PATCH] feat: change feedback hand wave (#6148) * feat: implement feedback hand wave * chore: review * feat: add matomo suggestion utilisateur --------- Co-authored-by: victor --- .../src/layout/Feedback/index.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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} >