View Item List Event
Fire view_item_list once when a visitor sees a list of products: a category page, search results or a recommendation carousel. It is forwarded only to Google Analytics 4, as view_item_list, and together with select_item shows which lists and positions get clicked.
Where It Goes
AxiTrace forwards view_item_list server-side to each platform you connect and enable it on:
| Platform | Event sent |
|---|---|
| Google Analytics 4 | view_item_list |
Meta, TikTok, Google Ads, Pinterest, Reddit, LinkedIn, Microsoft Advertising and OpenAI Ads have no standard event for it, so nothing is sent there.
How catalog events reach Google Analytics 4: GA4 server-side tracking with AxiTrace.
When to Use This Event
Trigger this event when a user views a product listing:
- Category page views
- Search results page
- Product recommendation carousels
- "Recently viewed" or "You may also like" sections
- Collection or brand pages
Send this event from your backend with /v1/catalog/view_list, or from the
browser with Axitrace._instance.track('view_item_list', { ... }). Both paths write the
same row and forward to the same destinations.
If your shop already has a GA4 ecommerce dataLayer, you do not need to call anything at
all: turn on autoTrackDataLayer and the SDK translates your existing
GA4 view_item_list push into this event. See the
Google Tag Manager guide.
The browser path is deliberately more forgiving than /v1/catalog/view_list: a
missing currency or an empty items array is accepted rather than rejected, because a
dataLayer is often not under your control field by field. The REST endpoint keeps the
strict contract for backend callers, who are.
This event does not map to any Facebook or TikTok standard event, so no pixel fires and no Meta or TikTok CAPI event is sent - there is no standard event on either platform to optimise toward, and inventing a custom one would create a conversion you never asked for. It can be forwarded to Google Analytics 4, where it is a recommended event: tick it on your GA4 connection under Events to forward. It is stored in AxiTrace for internal catalog analytics whether or not you forward it anywhere.
If your shop already sends this event to GA4 with its own gtag.js or GTM tag, leave the checkbox off. Forwarding it as well would have GA4 count the same action twice. Forward it when AxiTrace is your only source for it.
Request Parameters
User Identification
At least one of these identifiers is required:
| Field | Type | Description |
|---|---|---|
client_id |
string | Your custom user/visitor identifier (use SDK's vt_vid cookie value) |
user_id |
string | Authenticated user ID |
session_id |
string | Current session identifier (use SDK's vt_sid cookie value) |
List Identification
| Field | Type | Description |
|---|---|---|
item_list_id |
string | Unique identifier for the list (e.g., category_shoes, search_results) |
item_list_name |
string | Human-readable list name (e.g., "Running Shoes", "Search: blue shoes") |
Optional Fields
| Field | Type | Description |
|---|---|---|
items |
array | Array of item objects shown in the list |
params |
object | Additional parameters |
Item Object
| Field | Type | Description |
|---|---|---|
item_id |
string | Product SKU or ID |
item_name |
string | Product name |
price |
number | Product price |
index |
integer | Position in the list (0-indexed) |
item_category |
string | Product category |
item_brand |
string | Product brand |
Examples
JavaScript SDK (browser)
// Browser, with the JavaScript SDK. The SDK supplies the visitor and session
// ids from its own cookies, so no client_id or session_id is needed.
Axitrace._instance.track('view_item_list', {
item_list_id: 'category_running_shoes',
item_list_name: 'Running Shoes',
items: [
{ item_id: 'SKU-1', item_name: 'Trail Runner', price: 349.00, quantity: 1 },
{ item_id: 'SKU-2', item_name: 'Road Runner', price: 299.00, quantity: 1 }
]
});
Server-Side (AxiTrace PHP SDK)
<?php
use AxiTrace\AxiTrace;
// Initialize - auto-reads vt_vid, vt_sid cookies
$axitrace = AxiTrace::init('sk_live_YOUR_SECRET_KEY');
// Track category page view
$response = $axitrace->viewItemList([
'item_list_id' => 'category_running_shoes',
'item_list_name' => 'Running Shoes',
'items' => [
[
'item_id' => 'SKU-001',
'item_name' => 'Nike Air Max',
'price' => 129.99,
'index' => 0,
'item_category' => 'Footwear',
'item_brand' => 'Nike',
],
[
'item_id' => 'SKU-002',
'item_name' => 'Adidas Ultraboost',
'price' => 149.99,
'index' => 1,
'item_category' => 'Footwear',
'item_brand' => 'Adidas',
],
],
]);
Server-Side (cURL)
curl -X POST https://stat.axitrace.com/v1/catalog/view_list \
-u "sk_live_YOUR_SECRET_KEY:" \
-H "Content-Type: application/json" \
-d '{
"client_id": "value-from-vt_vid-cookie",
"session_id": "value-from-vt_sid-cookie",
"item_list_id": "category_running_shoes",
"item_list_name": "Running Shoes",
"items": [
{
"item_id": "SKU-001",
"item_name": "Nike Air Max",
"price": 129.99,
"index": 0,
"item_category": "Footwear",
"item_brand": "Nike"
},
{
"item_id": "SKU-002",
"item_name": "Adidas Ultraboost",
"price": 149.99,
"index": 1,
"item_category": "Footwear",
"item_brand": "Adidas"
}
]
}'
Response
Success Response (200 OK)
{
"success": true,
"eventId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"action": "view_item_list"
}
Error Responses
| Status | Error | Description |
|---|---|---|
400 |
at least one of client_id, user_id, or session_id is required |
No user identifier provided |
401 |
unauthorized |
Invalid or missing API key |
Common Mistakes
- Sending one event per product. Send one event per list, with the visible products in
itemsand theirindex. - Leaving out
item_list_idanditem_list_name. Without them lists cannot be compared, andselect_itemcannot be matched to the list it came from. - Using it for the product detail page. That is
product.view. - Forwarding it to GA4 while your Google tag or GTM already sends
view_item_list. GA4 does not deduplicate server events against the browser tag, so every action is counted twice. Enable it on the GA4 connection only when AxiTrace is the only source.
Best Practices
- Include item_list_id and item_list_name - These help segment catalog analytics by list type (category, search, recommendations)
- Include item index - Track product position to analyze which list positions drive the most clicks and conversions
- Limit items to visible products - Only include products actually visible on screen, not the entire category
- Use consistent item_id - Match the
item_idused inproduct.viewandproduct.addToCartfor cross-event analysis - Send it from one side only - the browser SDK or your backend, never both for the same list impression, or your click-through rate is halved by double-counted impressions.