diff --git a/src/v0/destinations/klaviyo/data/KlaviyoIdentify.json b/src/v0/destinations/klaviyo/data/KlaviyoIdentify.json index fd46b6cda9..cb49cbd2e1 100644 --- a/src/v0/destinations/klaviyo/data/KlaviyoIdentify.json +++ b/src/v0/destinations/klaviyo/data/KlaviyoIdentify.json @@ -1,10 +1,14 @@ [ { "destKey": "external_id", - "sourceKeys": "userId", + "sourceKeys": "userIdOnly", "required": false, "sourceFromGenericMap": true }, + { + "destKey": "anonymous_id", + "sourceKeys": "anonymousId" + }, { "destKey": "email", "sourceKeys": "emailOnly", diff --git a/test/integrations/destinations/klaviyo/processor/identifyTestData.ts b/test/integrations/destinations/klaviyo/processor/identifyTestData.ts index 0dd4751133..e03a5c30e8 100644 --- a/test/integrations/destinations/klaviyo/processor/identifyTestData.ts +++ b/test/integrations/destinations/klaviyo/processor/identifyTestData.ts @@ -50,6 +50,7 @@ const commonTraits = { const commonTraits2 = { ...commonTraits, street: '63, Shibuya' }; const commonOutputUserProps = { + anonymous_id: '97c46c81-3140-456d-b2a9-690d70aaca35', external_id: 'user@1', email: 'test@rudderstack.com', first_name: 'Test', diff --git a/test/integrations/destinations/klaviyo/router/data.ts b/test/integrations/destinations/klaviyo/router/data.ts index 8866a8a546..43ae4a5152 100644 --- a/test/integrations/destinations/klaviyo/router/data.ts +++ b/test/integrations/destinations/klaviyo/router/data.ts @@ -253,6 +253,7 @@ export const data: RouterTestData[] = [ type: 'profile', attributes: { external_id: 'test', + anonymous_id: '97c46c81-3140-456d-b2a9-690d70aaca35', email: 'test@rudderstack.com', first_name: 'Test', last_name: 'Rudderlabs', @@ -301,6 +302,7 @@ export const data: RouterTestData[] = [ type: 'profile', attributes: { external_id: 'test', + anonymous_id: '97c46c81-3140-456d-b2a9-690d70aaca35', email: 'test@rudderstack.com', first_name: 'Test', last_name: 'Rudderlabs',