---
updatedAt: 2026-10-09T03:00:34.000Z
agentTools:
  projectIndex: https://docs.attributionapp.com/llms.txt
---

# Shopify CDP Connector Events Spec

Events mapping from Shopify WebPixel and Webhooks to CDP Connector Events

Attribution leverages the industry-standard [Segment V2 Ecommerce Spec](https://segment.com/docs/connections/spec/ecommerce/v2/) to implement events based on data available from Shopify. While a strict 1:1 mapping of all Shopify events to the Segment Spec isn't always possible, Attribution aims to reconcile both models in a way that preserves analytical integrity. Some deviations exist, but they are designed to reflect the most meaningful interpretation of Shopify data within the Segment framework.

## Shopify Web Pixel Events

These are website events captured by Shopify when a visitor interacts with your Storefront.

### Standard Events

*Shopify reference: [Standard Events](https://shopify.dev/docs/api/web-pixels-api/standard-events)*

| Shopify Web Pixel Event            | CDP Event                   | Properties                                                                                                                                                                                                                                                        |
| ---------------------------------- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `cart_viewed`                      | **Cart Viewed**             | `cart_id`, `currency`, `products[]`                                                                                                                                                                                                                               |
| `checkout_address_info_submitted`  | **Checkout Step Completed** | `checkout_token`,<br />`shopify_step` (set to `checkout_address_info_submitted`)                                                                                                                                                                                  |
| `checkout_completed`               | **Checkout Step Completed** | `checkout_token`,<br />`shopify_step` (set to `checkout_completed`)                                                                                                                                                                                               |
| `checkout_contact_info_submitted`  | **Checkout Step Completed** | `checkout_token`,<br />`shopify_step` (set to `checkout_contact_info_submitted`)                                                                                                                                                                                  |
| `checkout_shipping_info_submitted` | **Checkout Step Completed** | `checkout_token`,<br />`shopify_step` (set to `checkout_shipping_info_submitted`)                                                                                                                                                                                 |
| `checkout_started`                 | **Checkout Started**        | `checkout_token`, `order_id`, `revenue`, `shipping`, `tax`, `currency`, `products[]`                                                                                                                                                                              |
| `collection_viewed`                | **Product List Viewed**     | `list_id`, `category`, `products[]`                                                                                                                                                                                                                               |
| `payment_info_submitted`           | **Payment Info Entered**    | `checkout_token`                                                                                                                                                                                                                                                  |
| `product_added_to_cart`            | **Product Added**           | `cart_id`, *Product properties*                                                                                                                                                                                                                                   |
| `product_removed_from_cart`        | **Product Removed**         | `cart_id`, *Product properties*                                                                                                                                                                                                                                   |
| `product_viewed`                   | **Product Viewed**          | *Product properties*                                                                                                                                                                                                                                              |
| `search_submitted`                 | **Products Searched**       | `query`, `results` (number of products returned)                                                                                                                                                                                                                  |
| `page_viewed`                      | **Loaded a Page**           | Fired by the Web Pixel when "Pageview trigger method" is set to `web_pixel`, the default. If you install the Segment snippet yourself and set it to `disabled`, your snippet (*analytics.js*) sends pageviews instead. <br />`url`, `referrer`, `search`, `title` |

Shopify is retiring script tags, so CDP Connector no longer adds the Segment snippet to your storefront and sends all of these events, pageviews included, from the Web Pixel. The Web Pixel provides the same coverage the Segment snippet did, with better accuracy: it bypasses most ad blockers and is less affected by network latency. Shopify runs Web Pixels in a sandbox that cannot load *analytics.js*, so events reach Segment in "Cloud-mode", and Segment destinations that depend on "Device mode" do not run on your Shopify pages unless you install the Segment snippet yourself. Learn more about Segment [Connection modes](https://segment.com/docs/connections/destinations/#connection-modes).

Additionally `shopify_event` property is present on all events and includes original Shopify Web Pixel Event name. The `shopify_event_data` property could be added to all events if *Send raw Shopify Event data* setting enabled which will include original Shopify event payload.

#### Product properties

Product properties are extracted from `CartLine[]`, `CheckoutLineItem[]` and `ProductVariant` depending on event. `url` and `image_url` will have `window.location.origin` prepended if relative url is provided by Shopify.

| Key (name)   | Value                        |
| ------------ | ---------------------------- |
| `product_id` | `variant.product.id`         |
| `sku`        | `variant.sku`                |
| `category`   | `variant.product.type`       |
| `name`       | `variant.product.title`      |
| `brand`      | `variant.product.vendor`     |
| `variant`    | `variant.title`              |
| `variant_id` | `variant.id`                 |
| `price`      | `variant.price.amount`       |
| `currency`   | `variant.price.currencyCode` |
| `url`        | `variant.product.url`        |
| `image_url`  | `variant.image.src`          |
| `quantity`   | `line.quantity`              |
| `position`   | `index + 1`                  |
| *coupon*     | not available                |

### DOM Pixel Events

**Shopify Form Submitted** is fired every time any form is submitted on the website, this often includes, subscribe to newletter forms, product variant selection is implemented using the forms, login.

You can disable sending these event by turning off *Track Shopify "form\_submitted" DOM event* setting.

*Shopify reference: [DOM Pixel Events API](https://shopify.dev/docs/api/web-pixels-api/dom-events)*

| Shopify Web Pixel Event | CDP Event                  | Properties                                                                                                         |
| ----------------------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `form_submitted`        | **Shopify Form Submitted** | `form_id` HTML `<form>` element `id`,<br />*other\** (form inputs with `name` set would be attached as properties) |

### Custom Events

You can also capture and fire custom events using [Shopify.analytics.publish()](https://shopify.dev/docs/api/web-pixels-api/emitting-data) method. Please note that some Apps installed on your store could fire custom events as well. Disable *Track custom Shopify events* setting to stop sending custom events.

*Shopify reference: [Emitting Data](https://shopify.dev/docs/api/web-pixels-api/emitting-data)*

| Shopify Web Pixel Event | CDP Event                 | Properties                   |
| ----------------------- | ------------------------- | ---------------------------- |
| `CUSTOM_NAME`           | **Shopify: CUSTOM\_NAME** | *customData* passed to event |

### Consent context (Customer Privacy, *beta*)

How Web Pixel events reflect customer consent is controlled by the [Customer Privacy Mode](https://docs.attributionapp.com/docs/shopify-cdp-connector-usage#customer-privacy-mode) setting. Consent is passed following the Segment [Consent Management](https://segment.com/docs/privacy/consent-management/) spec.

*Shopify reference: [Customer Privacy API](https://shopify.dev/docs/api/customer-privacy)*

#### `disabled` (default)

No `context.consent` is attached to event payloads. All events are always sent.

#### `pass_through` (recommended)

Every Web Pixel event payload gets a `context.consent.categoryPreferences` object, mapped from Shopify's Customer Privacy API and reflecting the visitor's consent state at the time the event is sent. Events are always sent, with the consent context attached.

#### `strict` (experimental)

The same `context.consent.categoryPreferences` object is attached. If analytics consent is not granted, events are queued rather than sent, then flushed once consent is granted — flushed events carry the consent context too.

The `context.consent.categoryPreferences` object attached in `pass_through` and `strict` maps to Shopify's Customer Privacy API:

| `categoryPreferences` key | Shopify Customer Privacy source | Default (when unknown) |
| ------------------------- | ------------------------------- | ---------------------- |
| `Advertising`             | `marketingAllowed`              | `false`                |
| `Analytics`               | `analyticsProcessingAllowed`    | `false`                |
| `Functional`              | `preferencesProcessingAllowed`  | `true`                 |
| `DataSharing`             | `saleOfDataAllowed`             | `false`                |

Example payload with the consent context attached (other `context` fields omitted):

```json
{
  "type": "track",
  "event": "Product Added",
  "userId": "7344837845231",
  "anonymousId": "0db4b712-1aee-4173-be25-1bf3dfa00811",
  "properties": {
    "product_id": "8741523456789",
    "name": "Example T-Shirt",
    "price": 29.99,
    "currency": "USD",
    "shopify_event": "product_added_to_cart"
  },
  "context": {
    "consent": {
      "categoryPreferences": {
        "Advertising": true,
        "Analytics": true,
        "Functional": true,
        "DataSharing": false
      }
    }
  }
}
```

## Webhook events

These events are implemented by subscribing to Shopify Webhook topics.

*Shopify reference: [Webhooks](https://shopify.dev/docs/api/webhooks)*

| Shopify Webhook Topic        | CDP Event                               |
| ---------------------------- | --------------------------------------- |
| `orders/cancelled`           | **Order Cancelled**                     |
| `orders/create`              | **Order Created**                       |
| `orders/delete`              | **Order Deleted**                       |
| `orders/edited`              | **Order Edited**                        |
| `orders/edited`              | **Order Updated**<br />(Segment only)   |
| `orders/fulfilled`           | **Order Fulfilled**                     |
| `orders/paid`                | **Order Paid**                          |
| `orders/paid`                | **Order Completed**<br />(Segment only) |
| `orders/partially_fulfilled` | **Order Partially Completed**           |
| `refunds/create`             | **Order Refunded**                      |

Properties availability could vary depending on webhook topic.

**Order Refunded** has negative `revenue` property.

**Order Completed** event can be configured by *Webhook to trigger "Order Completed" event* setting to be fired on `orders/paid` (default) or `orders/fulfilled` topics.

(Attribution only) The **Estimated First Order** event is triggered on the `orders/paid` webhook when a Shopify customer has prior orders that were not previously tracked. This synthetic event uses the customer's original `created_at` timestamp and sets `revenue` to `0.01`, allowing Attribution to distinguish first-time purchases from repeat ones.

### Order properties

* *checkout\_id* - not available, Shopify removed it from order webhooks in API `2026-04`; use `checkout_token`
* `order_id` - Shopify Order name (not to be confused with "number" and "order\_number")
* *affiliation* - not available
* `subtotal`
* `total`
* `revenue`
* `shipping`
* `tax`
* `discount`
* `coupon`
* `currency`
* `products[]` - see *Product properties*

### Product properties

* `product_id`
* `sku`
* *category* - not available
* `name`
* `brand` - this maps to "vendor" in Shopify
* `variant`
* `price`
* `quantity`
* `coupon`
* `position`
* `url`
* `image_url` - sometimes not available

Additionally, the following out‑of‑spec properties are included:

* `shopify_order_id` - Shopify internal Order ID
* `shopify_refund_id`
* `checkout_token`
* `source_name`
* `cart_id` - Shopify cart token, matches `cart_id` on Web Pixel cart events; absent for orders placed without an online store cart (POS, draft orders)
* `variant_id` - on each `products[]` item

### Extended line item properties

Each `products[]` item can carry extra beyond-spec fields. They are disabled by default and enabled individually by the [Extended Line Item Properties](https://docs.attributionapp.com/docs/shopify-cdp-connector-usage#extended-line-item-properties) setting:

* `presentment_amount` - unit price in the currency presented to the customer
* `presentment_currency`
* `product_properties` - line item custom attributes as a key/value object; attributes with empty values are skipped

You can also configure the CDP Connector to send extra order-level properties using [Additional Order Properties](https://docs.attributionapp.com/docs/shopify-cdp-connector-usage#additional-order-properties).

## Identity resolution

Identity is resolved as soon as it's known. For new customers, this typically occurs when they place their first order or sign up. For existing users, identity resolution happens when they sign in or complete a repeat purchase. Additionally, all webhook events are followed by `identify()` calls to enrich customer traits, including:

* `shopify_customer_id`
* `email`
* `first_name`
* `last_name`
* `created_at`
* `address`
  * `country`
  * `state`
  * `city`
  * `postal_code`
  * `street`
* `orders_count`
* `total_spent`
* `shopify_rfm_group`
* `shopify_predicted_spend_tier`

You can configure the CDP Connector to send extra traits using [Additional Customer Traits](https://docs.attributionapp.com/docs/shopify-cdp-connector-usage#additional-customer-traits).

The `USER_ID` value is controlled by the *User ID source* setting, which lets you choose which trait to use as the unique identifier: `email`, `shopify_customer_id`, or `none`. This flexibility ensures alignment with your CDP’s identity resolution strategy and downstream analytics.