diff --git a/src/v0/destinations/posthog/data/PHAliasConfig.json b/src/v0/destinations/posthog/data/PHAliasConfig.json index 1992349e22..26fb61ea78 100644 --- a/src/v0/destinations/posthog/data/PHAliasConfig.json +++ b/src/v0/destinations/posthog/data/PHAliasConfig.json @@ -1,12 +1,12 @@ [ { - "destKey": "properties.alias", + "destKey": "properties.distinct_id", "sourceKeys": "userId", "sourceFromGenericMap": true, "required": true }, { - "destKey": "properties.distinct_id", + "destKey": "properties.alias", "sourceKeys": "previousId", "required": true }, diff --git a/test/integrations/destinations/posthog/processor/data.ts b/test/integrations/destinations/posthog/processor/data.ts index f33aa268b7..35e12b4aab 100644 --- a/test/integrations/destinations/posthog/processor/data.ts +++ b/test/integrations/destinations/posthog/processor/data.ts @@ -74,7 +74,7 @@ export const data = [ $ip: '0.0.0.0', $timestamp: '2020-11-04T13:21:09.712Z', $anon_distinct_id: 'f3cf54d8-f237-45d2-89f7-ccd70d42cf31', - distinct_id: 'prevId_1', + distinct_id: 'uid-1', $device_manufacturer: 'Xiaomi', $os_version: '8.1.0', $app_version: '1.1.7', @@ -84,7 +84,7 @@ export const data = [ $device_model: 'Redmi 6', $app_namespace: 'com.rudderlabs.javascript', $app_build: '1.0.0', - alias: 'uid-1', + alias: 'prevId_1', }, timestamp: '2020-11-04T13:21:09.712Z', event: '$create_alias', diff --git a/test/integrations/destinations/posthog/router/data.ts b/test/integrations/destinations/posthog/router/data.ts index dab8ba8b1c..20870670dc 100644 --- a/test/integrations/destinations/posthog/router/data.ts +++ b/test/integrations/destinations/posthog/router/data.ts @@ -79,7 +79,7 @@ export const data = [ $ip: '0.0.0.0', $timestamp: '2020-11-04T13:21:09.712Z', $anon_distinct_id: 'f3cf54d8-f237-45d2-89f7-ccd70d42cf31', - distinct_id: 'prevId_1', + distinct_id: 'uid-1', $device_manufacturer: 'Xiaomi', $os_version: '8.1.0', $app_version: '1.1.7', @@ -89,7 +89,7 @@ export const data = [ $device_model: 'Redmi 6', $app_namespace: 'com.rudderlabs.javascript', $app_build: '1.0.0', - alias: 'uid-1', + alias: 'prevId_1', }, timestamp: '2020-11-04T13:21:09.712Z', event: '$create_alias',