Question

Sending 2x emails to Klaviyo Identify


Userlevel 1
Badge +3

Hey There, 

 

I have this situation where people sometime subscribe with one email, but there account on site is with another.

 

I am wondering if I can send two emails (in an array)? 

 

for example:

'email' : ['email1@mail.com', 'email2@mail.com']


4 replies

Userlevel 4
Badge +7

Hi @chrisB,

You’re getting at something really important–the fact that Klaviyo only handles 1 email/phone per person, and uses those as the unique identifier. You can’t have two email addresses on one profile.

You could have alternative email addresses as profile properties, but there is no built-in support for multiple email addresses. 

I think this is a pretty big product limitation as it’s not uncommon for someone to have multiple emails or even phone numbers.

But that’s how it works right now. Would love to hear if other people want built-in support for alternative email/phones on a profile…

 

Cheers,

Kevin.

Userlevel 1
Badge +3

Hey @KeviSunshine 

 

thanks for your thoughts and comments on this :)

I think there is definitely scope to have a primary and secondary email on a profile, but I do kind of understand how it was used as a unique identifier. I think we are getting to a point that people are having more that one email and it would be good to have additional email (maybe one for transactional and another for campaign).

 

I guess what I am trying to ascertain, is if I can send an array on the identify component, or do I need to loop the request for each one and then throw the unique ID (or email) into cookies later for storage?

 

{ "token": "PUBLIC_KEY", "properties": { "$email": ["abraham.lincoln@klaviyo.com",”a.lincoln@klaviyo.com”], "$first_name": "Abraham", "$last_name": "Lincoln", "$city": "Springfield", "$region": "Illinois" } }

 

If we are assume they are there (under one of the emails), I would rather send a single request that iterate through the array of emails until I get a response, then send it to cookies for subsequent requests. 

 

Hope that kind of makes sense.

Userlevel 4
Badge +7

Hi @chrisB,

You can’t pass an array of emails to the identify endpoint. You could add the other emails as custom profile properties, but the API call will fail if you try to pass an array to the email field.

Userlevel 1
Badge +3

Hi @chrisB,

You can’t pass an array of emails to the identify endpoint. You could add the other emails as custom profile properties, but the API call will fail if you try to pass an array to the email field.

 

damn (but figured as much) looks like i’m looping the calls and storing the ID once found into a cookie I guess...

Reply