# Add participant metadata

Give a website survey a shopper’s name or your own customer ID. You can also save extra customer details with their responses. Shopoll calls these details **participant metadata**.

## Identify a signed-in shopper

Set the user object on the page before loading the Shopoll embed. Supply values for the shopper currently using the storefront. For example, this code identifies a member of a research panel.

```javascript
window.Shopoll = window.Shopoll || {};
window.Shopoll.user = {
  id: 'panel-42',
  handle: 'Research panel member',
  metadata: {
    name: 'Sample shopper',
    email: 'shopper@example.test',
    panel: 'Spring collection'
  }
};
```

The embed passes this data to the survey frame when it opens. Responses keep the details supplied when that attempt started. Up to 32 properties can contain short text, numeric or boolean values. Remove the user object when the shopper signs out.

## Choose a display name

The participant list shows the handle first. If none is set, it uses the available name, store-supplied email, Shopify customer ID or email entered in the survey. Participants without any of those can be found by ID. A Shopify page or verified order supplies the Shopify customer ID. Adding your own field with a similar name does not verify a customer.

## Inspect the result

Open [Participants](/participants.md) in the workspace, search for the handle and select its row. The details panel lists the properties. Compare two submissions from the same shopper to see their history. Anonymous responses leave out these customer details.

To record the collection or campaign for one visit, [attach storefront context to the response](/embed/survey-metadata.md).
