> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Items, SaaS and Auto-Captured Parameters

> The items array, SaaS parameters, and what Upstack captures for you.

| Page | What it covers |
| - | - |
| [Item parameters](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/items.md) | The `items` array for product events |
| [SaaS parameters](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/saas.md) | Account, subscription, trial, payment and seat parameters |
| [Auto-captured fields](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/auto-captured.md) | Click IDs, UTM parameters and page context that Upstack captures for you |

Items on a `purchase`:

```javascript theme={null}
window._upstack('track', 'purchase', {
  // Standard parameters
  orderId: '10421',
  transactionId: '10421',
  value: 81.17,
  currency: 'USD',
  items: [{
    id: '8012345678',
    variant: '44120033',
    variantName: 'Blue / Medium',
    name: 'Classic Cotton Tee',
    sku: 'TEE-BLU-M',
    price: 34.99,
    quantity: 2,
    brand: 'Example Brand',
    category: 'Apparel',
    url: 'https://example.com/products/classic-tee',
    imageUrl: 'https://example.com/images/classic-tee.jpg'
  }],
  orderName: '#1042',
  price: 81.17,
  subtotalPrice: 62.98,
  tax: 5.20,
  shipping: 12.99,
  discount: 7.00,
  coupon: 'SAVE10',
  paymentType: 'credit_card',
  shippingTier: 'Express',
  affiliation: 'Example Store',

  // User data
  email: 'jane@example.com',
  phone: '+15551234567',
  firstName: 'Jane',
  lastName: 'Smith',
  addresses: [{
    address1: '123 Main St',
    city: 'Austin',
    provinceCode: 'TX',
    countryCode: 'US',
    zip: '78701'
  }],

  // Custom data
  salesChannel: 'web',
  loyaltyTier: 'gold',
  giftOrder: false
});
```

SaaS parameters on a `subscription_started`:

```javascript theme={null}
window._upstack('track', 'subscription_started', {
  // Standard parameters
  accountId: 'acct_abc123',
  subscriptionId: 'sub_def456',
  planId: 'plan_pro_monthly',
  value: 99.00,
  currency: 'USD',
  planName: 'Pro Plan',
  mrr: 9900,
  arr: 118800,
  billingInterval: 'month',

  // User data
  email: 'jane@example.com',
  phone: '+15551234567',
  firstName: 'Jane',
  lastName: 'Smith',

  // Custom data
  referralCode: 'FRIEND20',
  previousTrial: true
});
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.