Skip to main content

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.

Standard events are predefined event types that Upstack recognizes across all destinations. Each event has a fixed name, a set of required properties, and optional properties that improve match quality and reporting granularity.
You don’t need to manually instrument these events. The Upstack Pixel fires standard events automatically based on Shopify storefront interactions. This reference describes the payload structure so you can verify data in the dashboard or build custom integrations.
All events share a common envelope:
{
  "event_name": "EventName",
  "event_time": "2026-02-18T14:30:00.000Z",
  "event_source_url": "https://example-store.com/products/classic-tee",
  "user_data": { ... },
  "custom_data": { ... }
}
See Properties & Context for the full field reference.
Fires on every page load across the storefront.When it fires: Each time a visitor loads or navigates to a page.Required properties:
PropertyTypeDescription
event_namestring"PageView"
event_timeISO 8601Timestamp of the event
event_source_urlstringFull URL of the page
Optional properties:
PropertyTypeDescription
page_titlestringHTML title of the page
referrerstringReferring URL
Example payload:
{
  "event_name": "PageView",
  "event_time": "2026-02-18T14:30:00.000Z",
  "event_source_url": "https://example-store.com/collections/summer",
  "user_data": {
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0...",
    "fbc": "fb.1.1708271400.AbC123",
    "fbp": "fb.1.1708271400.XyZ789"
  },
  "custom_data": {
    "page_title": "Summer Collection | Example Store",
    "referrer": "https://www.google.com/"
  }
}
Fires when a visitor views a product page or collection page.When it fires: Product detail page load, collection page load.Required properties:
PropertyTypeDescription
event_namestring"ViewContent"
event_timeISO 8601Timestamp of the event
content_idsstring[]Product or variant IDs viewed
content_typestring"product" or "product_group"
Optional properties:
PropertyTypeDescription
content_namestringProduct or collection title
valuenumberProduct price
currencystringISO 4217 currency code (e.g., "USD")
Example payload:
{
  "event_name": "ViewContent",
  "event_time": "2026-02-18T14:31:12.000Z",
  "event_source_url": "https://example-store.com/products/classic-tee",
  "user_data": {
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0...",
    "fbp": "fb.1.1708271400.XyZ789"
  },
  "custom_data": {
    "content_ids": ["8012345678"],
    "content_type": "product",
    "content_name": "Classic Cotton Tee",
    "value": 34.99,
    "currency": "USD"
  }
}
Fires when a visitor adds an item to their cart.When it fires: Add-to-cart button click, quantity increase in cart.Required properties:
PropertyTypeDescription
event_namestring"AddToCart"
event_timeISO 8601Timestamp of the event
content_idsstring[]Product or variant IDs added
content_typestring"product"
valuenumberTotal value of items added
currencystringISO 4217 currency code
Optional properties:
PropertyTypeDescription
content_namestringProduct title
num_itemsnumberQuantity added
Example payload:
{
  "event_name": "AddToCart",
  "event_time": "2026-02-18T14:32:05.000Z",
  "event_source_url": "https://example-store.com/products/classic-tee",
  "user_data": {
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0...",
    "fbp": "fb.1.1708271400.XyZ789"
  },
  "custom_data": {
    "content_ids": ["8012345678"],
    "content_type": "product",
    "content_name": "Classic Cotton Tee",
    "value": 34.99,
    "currency": "USD",
    "num_items": 1
  }
}
Fires when a visitor starts the checkout flow.When it fires: Checkout page load, “Begin Checkout” button click.Required properties:
PropertyTypeDescription
event_namestring"InitiateCheckout"
event_timeISO 8601Timestamp of the event
content_idsstring[]Product or variant IDs in cart
valuenumberCart subtotal
currencystringISO 4217 currency code
Optional properties:
PropertyTypeDescription
content_typestring"product"
num_itemsnumberTotal items in cart
Example payload:
{
  "event_name": "InitiateCheckout",
  "event_time": "2026-02-18T14:33:45.000Z",
  "event_source_url": "https://example-store.com/checkout",
  "user_data": {
    "em": "a1b2c3d4e5f6...hashed",
    "ph": "f6e5d4c3b2a1...hashed",
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0...",
    "fbc": "fb.1.1708271400.AbC123",
    "fbp": "fb.1.1708271400.XyZ789"
  },
  "custom_data": {
    "content_ids": ["8012345678", "8012345679"],
    "content_type": "product",
    "value": 89.98,
    "currency": "USD",
    "num_items": 2
  }
}
Fires when an order is completed.When it fires: Order confirmation / thank-you page load, Shopify order webhook.Required properties:
PropertyTypeDescription
event_namestring"Purchase"
event_timeISO 8601Timestamp of the event
content_idsstring[]Product or variant IDs purchased
valuenumberOrder total (excluding tax/shipping unless configured)
currencystringISO 4217 currency code
order_idstringShopify order ID or name
Optional properties:
PropertyTypeDescription
content_typestring"product"
content_namestringComma-separated product names
num_itemsnumberTotal items purchased
Example payload:
{
  "event_name": "Purchase",
  "event_time": "2026-02-18T14:35:20.000Z",
  "event_source_url": "https://example-store.com/thank-you",
  "user_data": {
    "em": "a1b2c3d4e5f6...hashed",
    "ph": "f6e5d4c3b2a1...hashed",
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0...",
    "fbc": "fb.1.1708271400.AbC123",
    "fbp": "fb.1.1708271400.XyZ789",
    "external_id": "cust_12345"
  },
  "custom_data": {
    "content_ids": ["8012345678", "8012345679"],
    "content_type": "product",
    "value": 89.98,
    "currency": "USD",
    "order_id": "#1042",
    "num_items": 2
  }
}
Ensure value reflects the actual order amount sent to ad platforms. Discrepancies between Shopify order totals and reported CAPI revenue are the most common attribution debugging issue.
Fires when a visitor submits a lead form.When it fires: Contact form submission, quote request, product inquiry.Required properties:
PropertyTypeDescription
event_namestring"Lead"
event_timeISO 8601Timestamp of the event
Optional properties:
PropertyTypeDescription
content_namestringForm or campaign name
valuenumberEstimated lead value
currencystringISO 4217 currency code
Example payload:
{
  "event_name": "Lead",
  "event_time": "2026-02-18T14:37:00.000Z",
  "event_source_url": "https://example-store.com/contact",
  "user_data": {
    "em": "a1b2c3d4e5f6...hashed",
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0..."
  },
  "custom_data": {
    "content_name": "Product Inquiry",
    "value": 150.00,
    "currency": "USD"
  }
}
Fires when a customer creates an account.When it fires: Account registration form submission.Required properties:
PropertyTypeDescription
event_namestring"CompleteRegistration"
event_timeISO 8601Timestamp of the event
Optional properties:
PropertyTypeDescription
content_namestringRegistration type or source
valuenumberAssigned value of registration
currencystringISO 4217 currency code
Example payload:
{
  "event_name": "CompleteRegistration",
  "event_time": "2026-02-18T14:38:15.000Z",
  "event_source_url": "https://example-store.com/account/register",
  "user_data": {
    "em": "a1b2c3d4e5f6...hashed",
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0..."
  },
  "custom_data": {
    "content_name": "Storefront Registration"
  }
}
Fires when a customer enters payment details during checkout.When it fires: Payment step completion in the checkout flow.Required properties:
PropertyTypeDescription
event_namestring"AddPaymentInfo"
event_timeISO 8601Timestamp of the event
Optional properties:
PropertyTypeDescription
content_idsstring[]Product or variant IDs in cart
valuenumberCart value at payment step
currencystringISO 4217 currency code
Example payload:
{
  "event_name": "AddPaymentInfo",
  "event_time": "2026-02-18T14:34:30.000Z",
  "event_source_url": "https://example-store.com/checkout/payment",
  "user_data": {
    "em": "a1b2c3d4e5f6...hashed",
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0...",
    "fbp": "fb.1.1708271400.XyZ789"
  },
  "custom_data": {
    "content_ids": ["8012345678"],
    "value": 34.99,
    "currency": "USD"
  }
}
Fires when a customer enters shipping details during checkout.When it fires: Shipping step completion in the checkout flow.Required properties:
PropertyTypeDescription
event_namestring"AddShippingInfo"
event_timeISO 8601Timestamp of the event
Optional properties:
PropertyTypeDescription
content_idsstring[]Product or variant IDs in cart
valuenumberCart value at shipping step
currencystringISO 4217 currency code
Example payload:
{
  "event_name": "AddShippingInfo",
  "event_time": "2026-02-18T14:34:00.000Z",
  "event_source_url": "https://example-store.com/checkout/shipping",
  "user_data": {
    "em": "a1b2c3d4e5f6...hashed",
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0...",
    "fbp": "fb.1.1708271400.XyZ789"
  },
  "custom_data": {
    "content_ids": ["8012345678", "8012345679"],
    "value": 89.98,
    "currency": "USD"
  }
}
Fires when a visitor subscribes to email or SMS marketing.When it fires: Newsletter signup, SMS opt-in, popup subscription form.Required properties:
PropertyTypeDescription
event_namestring"Subscribe"
event_timeISO 8601Timestamp of the event
Optional properties:
PropertyTypeDescription
valuenumberEstimated subscriber value
currencystringISO 4217 currency code
Example payload:
{
  "event_name": "Subscribe",
  "event_time": "2026-02-18T14:39:00.000Z",
  "event_source_url": "https://example-store.com/",
  "user_data": {
    "em": "a1b2c3d4e5f6...hashed",
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0..."
  },
  "custom_data": {
    "value": 5.00,
    "currency": "USD"
  }
}
Fires when a visitor begins a free trial.When it fires: Trial signup confirmation, trial activation.Required properties:
PropertyTypeDescription
event_namestring"StartTrial"
event_timeISO 8601Timestamp of the event
Optional properties:
PropertyTypeDescription
content_namestringTrial plan or product name
valuenumberTrial plan value
currencystringISO 4217 currency code
Example payload:
{
  "event_name": "StartTrial",
  "event_time": "2026-02-18T14:40:00.000Z",
  "event_source_url": "https://example-store.com/trial-signup",
  "user_data": {
    "em": "a1b2c3d4e5f6...hashed",
    "client_ip_address": "203.0.113.42",
    "client_user_agent": "Mozilla/5.0..."
  },
  "custom_data": {
    "content_name": "Premium Plan Trial",
    "value": 49.99,
    "currency": "USD"
  }
}

Custom Events

Define events beyond the standard taxonomy for your unique business needs.

Properties & Context

Full reference for all user_data, custom_data, and context fields.