Skip to content

Commit

Permalink
feat: ajout de l'email de l'utilisateur au tracking plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrmr committed Mar 20, 2024
1 parent 53c308f commit 83b8d65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/hooks/plausible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function usePlausibleTracking() {
props?: Record<string, string | number | boolean>
) {
const eventProps: Record<string, string | number | boolean | undefined> = {
userEmail: auth?.email,
organisationType: auth?.organisation?.type,
organisationNom: auth?.organisation ? getOrganisationLabel(auth.organisation) : undefined,
...(currentPath ? { currentPath: currentPath } : {}),
Expand Down

0 comments on commit 83b8d65

Please sign in to comment.