Hi everyone! Quick question about Identify API Cal...
# support
a
Hi everyone! Quick question about Identify API Call. If my website does not have a login-password setup, it is based on just simple HubSpot forms collecting user data, how do we pass these user traits to create a user-id?
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Prateek on the form submit, you make an identify call with the email_id / phone_number as the user_id. This way any further events will send the user details in the traits object.
a
Hi. In the documentation, it is said to refrain from using emails as user_id
Can we create a new alpha-numeric id, pass the traits (email, phone) and call Identify?
m
So generally the user_id is your Data Base user_id. You could create an alpha-numeric id and pass the traits but what is the significance of such a user_id (do you use it across your different systems) so in your case you maybe best served using the email / phone number (unless you have such a Database unique identifier).
a
Yes, we do plan to use the user_id created by Rudderstack across other platforms. How can I create an alpha-numeric user_id? Can I convert the anonymous_id into a user_id?
m
No, I mean you should use the user_id you create in RudderStack and not create a user_id in RudderStack and use it elsewhere. You could use a package such as uuid to create a unique identifier . Yes you can use the anonymous_id as a user_id (not recommended).
a
Okay. So, what I plan to do is everytime someones hit the Submit button, I will call the Identify method, along with the UUID package and then pass the UUID value as user_id and the other traits
m
No. If the same person hits the submit button twice, won't you get 2 distinct UUIDs?
a
That is good question
What would be your suggestion?
m
Can you explain your customer workflow?
a
I have a landing page. We run marketing campaigns. Our aim is to make the page visitors sign up by filling a form
m
What do the users do after filling the form?
a
Now, once they are signed up, they should go vis RS to Salesforce. And then, our Customer team sends them email and have a phone conversation
I am thinking that we could deploy one feature to stop double click (like disappearing or disabled button).
m
Oh ok, but do they have no other action on your website once they sign up?
👍 1
a
And using RS Identity resolution, can we custom program that if there are two profile with same email address, we merge it
They do not have any action other than browsing our pages and going through other sections of our website
m
In your case you could use the email or phone number as userId since the backend unique identifier does not exist.
a
Well, here is a twist. If after the call with our customer team, they buy our product, then they are assigned a Database ID
And we have users who have more than 1 email address. So ideally, email address is not a good option for userID
m
Oh ok. If they then come back to the website, you can use the alias call to merge the user_id (email / phone number) with this Database ID.
I am dropping of for some other work. Let me know what you have decided.
a
Yep. But not all of our customers have Database ID. Only those who have made purchases
Okay
m
Oh ok
a
Just to provide closure, yes, we will be using a client side hashing of email to create user_ids
This issue can be closed.