AxiTrace View Item List event - parameters, required fields, and integration examples.

View Item List Event

Track when users view a list of products, such as category pages, search results, or product recommendations. This helps analyze product discovery patterns and catalog browsing behavior.

POST /v1/catalog/view_list

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
Browser and Server Both Work

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.

No Facebook / TikTok Pixel Mapping

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

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_id used in product.view and product.addToCart for 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.