Skip to main content
Content properties are used for search and content interaction events.

User-Input Properties

PropertyTypeDescriptionEvents
searchTermstringSearch query entered by usersearch

searchTerm

Search query entered by the user.

Example

window._upstack('track', 'search', {
  searchTerm: 'blue running shoes',
  items: [
    { id: 'SKU-001', name: 'Running Shoes', price: 99.00 },
    { id: 'SKU-002', name: 'Athletic Socks', price: 12.00 }
  ]
});

Auto-Derived Fields

The following fields are automatically computed from your items array during event forwarding. Do not pass them directly:
FieldDerived FromDescription
content_idsitems[].idArray of product IDs
content_nameitems[0].nameName of first product
content_typeInferred"product" or "product_group"
num_itemsSum of items[].quantityTotal item count
For product data, always use the items array. The platform extracts and formats the necessary fields for each advertising destination.

Items Array

Pass all product data here — content fields are derived automatically.

content_ids

Learn how product IDs are extracted from items.