diff --git a/packages/cli/commons/src/analytics/identifier.ts b/packages/cli/commons/src/analytics/identifier.ts index 78c544f645..74c21e7b45 100644 --- a/packages/cli/commons/src/analytics/identifier.ts +++ b/packages/cli/commons/src/analytics/identifier.ts @@ -43,7 +43,6 @@ export class Identifier { user_id: userId, device_id: deviceId, ...this.getAmplitudeBaseEventProperties(), - ...this.getOrganizationIdentifier(), }; amplitudeIdentify(identifier, identifyEvent); }; @@ -51,11 +50,6 @@ export class Identifier { return {userId, deviceId, identify}; } - private getOrganizationIdentifier() { - const {environment, region, organization} = this.configuration; - return {environment, region, organization}; - } - private hash(word: string) { const hash = createHash('sha256').update(word); return hash.digest('hex').toString(); diff --git a/packages/cli/core/src/hooks/analytics/analytics.ts b/packages/cli/core/src/hooks/analytics/analytics.ts index 5e6df3332c..9cb7dbcb14 100644 --- a/packages/cli/core/src/hooks/analytics/analytics.ts +++ b/packages/cli/core/src/hooks/analytics/analytics.ts @@ -47,6 +47,7 @@ const augmentEvent = async ( event.event_properties = { ...event.event_properties, organization_type: type, + organization, environment, region, };