Skip to content

Commit

Permalink
fix: klaviyo remove duplicate profile due anonymousId mapped as exter…
Browse files Browse the repository at this point in the history
…nalId
  • Loading branch information
anantjain45823 committed Jun 5, 2024
1 parent f8a275c commit e10099e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/v0/destinations/klaviyo/data/KlaviyoIdentify.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
[
{
"destKey": "external_id",
"sourceKeys": "userId",
"sourceKeys": "userIdOnly",
"required": false,
"sourceFromGenericMap": true
},
{
"destKey": "anonymous_id",
"sourceKeys": "anonymousId"
},
{
"destKey": "email",
"sourceKeys": "emailOnly",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]',
first_name: 'Test',
Expand Down
2 changes: 2 additions & 0 deletions test/integrations/destinations/klaviyo/router/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ export const data: RouterTestData[] = [
type: 'profile',
attributes: {
external_id: 'test',
anonymous_id: '97c46c81-3140-456d-b2a9-690d70aaca35',
email: '[email protected]',
first_name: 'Test',
last_name: 'Rudderlabs',
Expand Down Expand Up @@ -301,6 +302,7 @@ export const data: RouterTestData[] = [
type: 'profile',
attributes: {
external_id: 'test',
anonymous_id: '97c46c81-3140-456d-b2a9-690d70aaca35',
email: '[email protected]',
first_name: 'Test',
last_name: 'Rudderlabs',
Expand Down

0 comments on commit e10099e

Please sign in to comment.