# Minimum analytics fields

Connect analytics to collect events (via the unified AB Tasty Tag or your analytics tool).

**Core events**

* `view_item` (PDP view)
* `view_item_list` (PLP/list impression)
* `add_to_cart`
* `purchase`\
  Optional: `remove_from_cart`, `view_promotion`, `search`, `begin_checkout`.

**Minimum fields**

* `userId` (or anonymous ID), `sessionId`
* `productId`, `categoryId` (when relevant)
* `quantity`, `revenue` (for purchases)
* `timestamp`

**Why it matters**

* Powers **best sellers, associated products (bought together), trending, top relevant**.
* Enables **A/B testing & performance analytics**.
