# Product List Viewed

### Description <a href="#id-0cf4074b-e96c-468c-be4d-86eb5a6b58e0" id="id-0cf4074b-e96c-468c-be4d-86eb5a6b58e0"></a>

This client-side event fires on the Shopify storefront’s category pages.

### Instrumentation <a href="#id-2c88691b-8084-4fcd-aa9c-95d089972d72" id="id-2c88691b-8084-4fcd-aa9c-95d089972d72"></a>

This event is implemented with our javascript analytics library. The tracking code is managed in the storefront theme.

**Event Properties**

| Property               | Type            | Description                            |
| ---------------------- | --------------- | -------------------------------------- |
| list\_id               | String          | Product list being viewed              |
| category               | String          | Product category being viewed          |
| products               | Array\<Product> | Products displayed in the product list |
| products.$.product\_id | String          | Product id displayed on the list       |
| products.$.sku         | String          | Sku of the product being viewed        |
| products.$.category    | String          | Product category being viewed          |
| products.$.name        | String          | Name of the product being viewed       |
| products.$.brand       | String          | Brand associated with the product      |
| products.$.variant     | String          | Variant of the product (e.g. Black)    |
| products.$.price       | Number          | Price ($) of the product being viewed  |
| products.$.position    | Number          | Position in the product list (ex. 3)   |
| products.$.url         | String          | URL of the product page                |
| products.$.image\_url  | String          | Image url of the product               |

### Example: <a href="#c3e92d25-6b18-46ec-9044-dc60caa29d7b" id="c3e92d25-6b18-46ec-9044-dc60caa29d7b"></a>

```javascript
analytics.track('Product List Viewed', {
  list_id: 'great_deals_1',
  category: 'Deals',
  products: [
    {
      product_id: '507f1f77bcf26cd799439011',
      sku: '45791-32',
      name: 'Monopoly: 3rd Edition',
      price: 19,
      position: 1,
      category: 'Games',
      url: 'https://www.example.com/product/path',
      image_url: 'https://www.example.com/product/path.jpg'
    },
    {
      product_id: '505bd76785ebb709fc183733',
      sku: '46492-32',
      name: 'Uno Card Game',
      price: 3,
      position: 2,
      category: 'Games'
    }
  ]
});
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.fueled.io/integrations/destinations/segment.com/segment-event-specifications/product-list-viewed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
