Skip to main content
Standard events are predefined event types that Upstack recognizes across all destinations. Use these events to track customer behavior and attribute conversions.
This guide applies to all Upstack implementations — Shopify, headless, GTM, or custom websites. The JavaScript snippets below work everywhere the Upstack pixel is installed.
Shopify stores: Most events are tracked automatically by the Upstack Pixel. See Automatic Shopify Tracking to understand what’s already tracked. Use these snippets for custom implementations, headless checkouts, or events not covered by automatic tracking.

page_view

Fires when a visitor loads a page.

JavaScript

With custom properties:

Properties

Auto-Captured

The SDK automatically captures page_url, page_title, page_referrer, and page_path.

When to Fire

  • On initial page load
  • On SPA route changes
  • After dynamic content loads (infinite scroll)

view_content

Fires when a visitor views a product or content page.
Shopify: Automatically tracked when viewing product detail pages.

JavaScript

Minimal example:

Properties

When to Fire

  • Product detail page load
  • Quick view modal open
  • Collection page load (with collection products)

view_category

Fires when a visitor views a collection or category page.
Shopify: Automatically tracked when viewing collection pages.

JavaScript

Minimal example:

Properties

When to Fire

  • Collection page load
  • Category filter applied
  • Browse by category navigation

view_item_list

Fires when a visitor views a list of products (similar to view_category but more general).

JavaScript

Properties

When to Fire

  • Product recommendation carousel load
  • “Related Products” section view
  • “Recently Viewed” section view
  • Search results page load

add_to_cart

Fires when a visitor adds an item to their cart.

JavaScript

Minimal example:

Properties

When to Fire

  • Add-to-cart button click
  • Quantity increase in cart
  • “Buy Now” button click (before checkout)

product_removed_from_cart

Fires when a visitor removes an item from their cart.

JavaScript

Properties

When to Fire

  • Remove button click
  • Quantity decrease to zero
  • Clear cart action

view_cart

Fires when a visitor views their shopping cart.

JavaScript

Properties

When to Fire

  • Cart page load
  • Cart drawer/sidebar open
  • Mini-cart expansion

initiate_checkout

Fires when a visitor starts the checkout process.

JavaScript

Properties

When to Fire

  • Checkout button click
  • Checkout page load
  • Express checkout initiation (Shop Pay, Apple Pay)

add_shipping_info

Fires when a customer enters shipping details during checkout.

JavaScript

Properties

When to Fire

  • Shipping form completion
  • Shipping method selection
  • Proceeding past shipping step

select_shipping_method

Fires when a customer selects a shipping method during checkout.

JavaScript

With items:

Properties

When to Fire

  • Shipping method radio button selection
  • Shipping tier dropdown change
  • Before proceeding to payment

add_payment_info

Fires when a customer enters payment details during checkout.

JavaScript

Properties

When to Fire

  • Payment form completion
  • Payment method selection
  • Before final order submission

purchase

Fires when an order is completed.

JavaScript

The third parameter ('ORD_12345') is a deduplication ID. It prevents duplicate purchase events from being sent to destinations if the event fires multiple times.
Minimal example:

Properties

Important: The value property should match what you want reported to ad platforms. Discrepancies between Shopify order totals and reported CAPI revenue are the most common attribution debugging issue.

When to Fire

  • Order confirmation page load
  • After successful payment confirmation
  • Shopify orders/create webhook (server-side)

Fires when a visitor performs a search.

JavaScript

With search results:

Properties

When to Fire

  • Search results page load
  • Predictive search dropdown display
  • “No results” page (with resultsCount: 0)

lead

Fires when a visitor submits a lead form.

JavaScript

Newsletter signup:

Properties

When to Fire

  • Contact form submission
  • Newsletter signup
  • Quote request submission
  • Product inquiry

complete_registration

Fires when a customer creates an account.

JavaScript

Properties

When to Fire

  • Account registration form submission
  • OAuth signup completion (Google, Facebook)
  • Post-purchase account creation

subscribe

Fires when a visitor subscribes to email or SMS marketing.

JavaScript

SMS subscription:

Properties

When to Fire

  • Newsletter signup
  • SMS opt-in
  • Push notification subscription

add_to_wishlist

Fires when a visitor adds a product to their wishlist.

JavaScript

Properties

When to Fire

  • Wishlist/favorite button click
  • Save for later action
  • Heart icon click on product

refund

Fires when an order is refunded.

JavaScript

Full refund:
Partial refund:

Properties

When to Fire

  • Refund processed via Shopify admin
  • refunds/create webhook (server-side)
  • Customer service refund action

login

Fires when a user logs into their account.

JavaScript

Properties

When to Fire

  • Successful login form submission
  • OAuth login completion
  • Automatic re-authentication

sign_up

Fires when a user creates a new account.

JavaScript

Properties

sign_up vs complete_registration: Use sign_up for initial account creation. Use complete_registration for multi-step registration flows or when capturing additional profile data.

When to Fire

  • Account creation form submission
  • OAuth signup completion

contact

Fires when a user submits a contact form.

JavaScript

Properties

When to Fire

  • Contact us form submission
  • Support request submission
  • Product inquiry

book_call

Fires when a user books a call or consultation.

JavaScript

Properties

When to Fire

  • Calendly booking confirmation
  • Meeting scheduler submission
  • Demo request completion

schedule

Fires when a user schedules an appointment.

JavaScript

Properties

When to Fire

  • Appointment booking confirmation
  • Service scheduling completion

submit_application

Fires when a user submits an application.

JavaScript

Properties

When to Fire

  • Wholesale application submission
  • Affiliate program application
  • Partnership request

trial_started

Fires when a visitor begins a free trial.

JavaScript

Properties

When to Fire

  • Trial signup confirmation
  • Trial activation

Item Object

The items array in e-commerce events uses this structure:

Event Tracking Matrix

This matrix shows which events are tracked automatically by the Upstack Pixel on Shopify stores versus which require manual implementation.
Legend:
  • ✅ = Automatically tracked by Upstack Pixel
  • Via form hooks = Tracked when using compatible form/popup apps
  • Via webhook = Tracked server-side through Shopify webhooks
  • Required = You must implement manually
  • — = Not applicable or rarely needed

Events Not Covered Here

Shopify Automatic Tracking

Events that fire automatically on Shopify stores — check what’s already tracked.

JavaScript SDK

Full SDK API reference including identify() and direct client methods.

Properties & Context

Complete reference for item arrays, customer data, and auto-captured fields.

Custom Events

Create events beyond the standard taxonomy, including Upstack-generated events like nc_purchase.