Skip to content

Commit

Permalink
feat: change feedback hand wave (#6148)
Browse files Browse the repository at this point in the history
* feat: implement feedback hand wave

* chore: review

* feat: add matomo suggestion utilisateur

---------

Co-authored-by: victor <[email protected]>
  • Loading branch information
Viczei and victor authored Sep 19, 2024
1 parent 0add09d commit 2e9dff3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/code-du-travail-frontend/src/layout/Feedback/index.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<>
<Script id="tally-js" src="https://tally.so/widgets/embed.js"></Script>
Expand All @@ -13,6 +22,7 @@ export const Feedback = (): React.ReactNode => {
aria-label="Donner votre avis"
aria-haspopup="dialog"
aria-expanded="false"
onClick={onClick}
>
<ImgSuggestion
alt="Suggestion"
Expand Down

0 comments on commit 2e9dff3

Please sign in to comment.