# Product Viewed

### Description <a href="#id-02ef3240-4408-41f3-bec9-eede48353245" id="id-02ef3240-4408-41f3-bec9-eede48353245"></a>

This client-side event fires on the storefront product pages (PDPs).

### Instrumentation <a href="#f566db7b-d919-4e8a-b782-f224176402d1" id="f566db7b-d919-4e8a-b782-f224176402d1"></a>

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

💡

Note: We do not fire a Page event on product pages, as this would cause duplicate event data that makes journey analytics more difficult in tools like MixPanel or Amplitude. Some CDPs do recommend that both a page event and a Product Viewed event fire on product pages. That can be accomplished, if a merchant requests it.

**Event Properties**

| Property    | Type   | Description                               |
| ----------- | ------ | ----------------------------------------- |
| product\_id | String | Database id of the product being viewed   |
| sku         | String | Sku of the product being viewed           |
| category    | String | Product category being viewed             |
| name        | String | Name of the product being viewed          |
| brand       | String | Brand associated with the product         |
| variant     | String | Variant of the product (e.g. Black)       |
| price       | Number | Price ($) of the product being viewed     |
| currency    | String | Currency of the transaction               |
| value       | Number | Total value of the product after quantity |
| url         | String | URL of the product page                   |
| image\_url  | String | Image url of the product                  |

### Example: <a href="#df4dd446-be63-48d9-808b-dbc474171e7e" id="df4dd446-be63-48d9-808b-dbc474171e7e"></a>

```javascript
analytics.track('Product Viewed', {
  product_id: '507f1f77bcf86cd799439022',
  sku: 'G-35',
  category: 'Games',
  name: 'Monopoly: 3rd Edition',
  brand: 'Hasbro',
  variant: '200 pieces',
  price: 15.99,
  quantity: 1,
  currency: 'usd',
  position: 3,
  value: 15.99,
  url: 'https://www.example.com/product/path',
  image_url: 'https://www.example.com/product/path.jpg'
});
```


---

# 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-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.
