mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 11:29:02 +00:00
posthog attribution adjustment
This commit is contained in:
@@ -120,7 +120,7 @@ const attemptLogin = async (
|
||||
}
|
||||
|
||||
if (email) {
|
||||
telemetry.identify(email);
|
||||
telemetry.identify(email, email);
|
||||
telemetry.capture('User Logged In');
|
||||
}
|
||||
|
||||
|
||||
@@ -22,10 +22,12 @@ class Capturer {
|
||||
}
|
||||
}
|
||||
|
||||
identify(id: string) {
|
||||
identify(id: string, email?: string) {
|
||||
if (ENV === 'production' && TELEMETRY_CAPTURING_ENABLED) {
|
||||
try {
|
||||
this.api.identify(id);
|
||||
this.api.identify(id, {
|
||||
email: email
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('PostHog', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user