// Identify with user ID only
analytics.identify('user@example.com')
// Identify with traits
analytics.identify('user@example.com', {
first_name: 'John',
last_name: 'Doe',
email: 'user@example.com',
plan: 'premium',
created_at: new Date().toISOString()
})
// With options and callback
analytics.identify(
'user@example.com',
{ email: 'user@example.com' },
{},
() => {
console.log('User identified successfully')
}
)