Web SDK · v0.6.0
Identify Users
Connect anonymous browsing activity to known customers at sign-in or checkout.
Identify a signed-in customer with your stable internal ID and known traits.
rtn.identify('customer_123', {
email: 'alex@example.com',
first_name: 'Alex',
last_name: 'Morgan',
phone: '+15551234567'
});For guest checkout, you can send traits without a customer ID:
rtn.identify({ email: 'guest@example.com' });Call rtn.reset() at sign-out or when a shared device changes users. This starts a fresh anonymous identity for the next visitor.
Emails are trimmed and lowercased, and phone numbers are normalized before sending. Invalid contact values are dropped while other traits are still sent. Contact data from the browser is treated as unverified; see Privacy Controls.