Skip to content

Commit

Permalink
feat: ajout de l'identifiant de l'utilisateur (userEmail) au tracking…
Browse files Browse the repository at this point in the history
… Plausible (#3609)
  • Loading branch information
nkrmr authored Mar 20, 2024
1 parent 198e5b6 commit b3312d7
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 b3312d7

Please sign in to comment.