> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# User Data

> The parameters that say who did something: email, phone, name and address.

User data says who did something. It goes in the same object as every other parameter, and each event page shows which of these two tables applies.

Sample payload with every user data parameter:

```javascript theme={null}
window._upstack('track', 'lead', {
  // User data
  email: 'jane@example.com',
  phone: '+15551234567',
  firstName: 'Jane',
  lastName: 'Smith',
  addresses: [{
    firstName: 'Jane',
    lastName: 'Smith',
    company: 'Example Co',
    address1: '123 Main St',
    address2: 'Apt 4B',
    city: 'Austin',
    province: 'Texas',
    provinceCode: 'TX',
    country: 'United States',
    countryCode: 'US',
    zip: '78701',
    phone: '+15551234567'
  }]
});
```

## Which user data do I send when the visitor may be anonymous?

Browse and cart events, `initiate_checkout`, and any other event where the person may be anonymous use this table.

| Name | Type | Required | Example value | Description |
| - | - | - | - | - |
| [`email`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/email) | `string` | Yes\* | `jane@example.com` | Email address. |
| [`phone`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/phone) | `string` | Yes\* | `+15551234567` | Phone number in E.164 format. |
| [`firstName`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/name) | `string` | No | `Jane` | First name. |
| [`lastName`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/name) | `string` | No | `Smith` | Last name. |

\* Required once you know it.

## Which user data do I send when I know who the person is?

Later checkout steps, order, lead and account events use this table.

| Name | Type | Required | Example value | Description |
| - | - | - | - | - |
| [`email`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/email) | `string` | Yes | `jane@example.com` | Email address. |
| [`phone`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/phone) | `string` | Yes\* | `+15551234567` | Phone number in E.164 format. |
| [`firstName`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/name) | `string` | Yes\* | `Jane` | First name. |
| [`lastName`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/name) | `string` | Yes\* | `Smith` | Last name. |
| [`addresses`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/address) | `Array<Address>` | No | [See address parameters](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/address.md) | Shipping and billing addresses. |

\* Required if you have it.

## Can I send a phone number without an email?

Only when you don't have the email, such as on an SMS sign-up. An event with only a phone number still reaches ad platforms. Klaviyo, Omnisend, Sendlane, Attentive, Yotpo and Loops need more to match it to a contact.

## Do userId and userEmail count as user data?

No. Neither one links the event to a person. Send `email`, and use [`identify()`](https://docs.upstackdata.com/pixel/javascript-sdk#identify-userid-data) to link your own user ID.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.