From 83b8d65152d4e7f596dc4fdffa5bf32f1c95e4ea Mon Sep 17 00:00:00 2001 From: Nicolas KREMER Date: Wed, 20 Mar 2024 10:02:19 +0100 Subject: [PATCH] feat: ajout de l'email de l'utilisateur au tracking plausible --- ui/hooks/plausible.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/hooks/plausible.ts b/ui/hooks/plausible.ts index 9f412efa2..38e8ea20d 100644 --- a/ui/hooks/plausible.ts +++ b/ui/hooks/plausible.ts @@ -14,6 +14,7 @@ export function usePlausibleTracking() { props?: Record ) { const eventProps: Record = { + userEmail: auth?.email, organisationType: auth?.organisation?.type, organisationNom: auth?.organisation ? getOrganisationLabel(auth.organisation) : undefined, ...(currentPath ? { currentPath: currentPath } : {}),