Skip to Content
ShopifyAttributionHow Shopify Attribution Works

How Shopify Attribution Works

Shopify attribution in Nitoriq connects a Shopify order to Nitoriq tracking evidence.

Order delivery and attribution are separate. Nitoriq can receive and store a Shopify order even when the order does not carry enough evidence to connect it to a Nitoriq click, visit, or campaign.

The Data Path

The attribution path has several pieces:

  1. a shopper opens a Nitoriq campaign URL or tracked path
  2. Nitoriq creates click, visit, campaign, and workspace context
  3. the shopper reaches the Shopify storefront with identifiers such as niq_click_id, niq_visit_id, or niq_campaign_id
  4. the Nitoriq Web Pixel records storefront and checkout events when it can
  5. the Nitoriq attribution theme extension can write the same identifiers into Shopify cart attributes when it is enabled
  6. Shopify sends order and refund webhooks to Nitoriq
  7. Nitoriq normalizes the storefront events, order payload, cart token, checkout token, and order identifiers into attribution evidence
  8. Nitoriq resolves the order to attributed, unattributed, or pending

Refunds follow the order after it has been stored. They adjust Shopify revenue records; they do not create attribution on their own.

Evidence Nitoriq Uses

Attribution evidence

Order payload click ID

A Nitoriq click ID found on the Shopify order payload, stored order fields, cart attributes, checkout attributes, note attributes, custom attributes, top-level order fields, or landing_site URL.

This is high-confidence evidence when the click exists in the connected Nitoriq workspace.

Checkout token

A Shopify checkout token seen in storefront behavior and also present on the order.

Checkout token matches are high-confidence because they connect behavior close to checkout with the final order.

Cart token

A Shopify cart token seen before checkout and also present on the order.

Cart token matches are medium-high confidence because they are one step earlier than checkout-token evidence.

Checkout completed order ID

A checkout_completed storefront event that includes the same Shopify order ID as the stored order.

This is high-confidence evidence when the event also carries Nitoriq identifiers.

Storefront event candidates

Recent Web Pixel or theme fallback events that contain Nitoriq identifiers, Shopify client ID, cart token, checkout token, or order ID context.

Candidates explain what Nitoriq saw while evaluating an order. Candidate evidence must still tie back to the order through a matching token or order ID to become the winning match.

What Happens To Each Order

When Nitoriq normalizes a Shopify order, it evaluates evidence in this order:

  1. order payload click ID
  2. checkout token
  3. cart token
  4. checkout completed order ID
  5. nearby client or behavioral candidates
  6. raw storefront events around the order time

The winning match updates the order with attribution status, confidence, attribution source, Nitoriq click ID, visit ID, and campaign ID.

Orders can have these statuses:

  • attributed means Nitoriq found campaign, click, visit, or matching evidence that connects the order to a Nitoriq path
  • unattributed means Nitoriq stored the order, but could not connect it to Nitoriq tracking evidence
  • pending can appear before attribution workers finish processing the order

Attributed orders also include an attribution confidence value and an attribution source.

Where To Inspect Evidence

In Shopify Admin, open Apps > Nitoriq Commerce > Store activity.

The page shows recent Shopify orders, recent storefront tracking events, and an attribution audit for the selected order. The audit separates the winning evidence from candidate notes, which is useful when an order is unattributed or matched through cart-token evidence.

The attribution audit separates winning evidence from candidate notes for the selected Shopify order.

Why Some Orders Are Unattributed

Common reasons include:

  • the shopper did not arrive through a Nitoriq tracked path
  • Nitoriq identifiers were stripped before the storefront or checkout
  • the Web Pixel was inactive or stale during the session
  • the attribution theme extension was not active, so cart attributes were not available as a backup evidence path
  • privacy or browser behavior limited pixel events
  • the order arrived through a manual, draft, subscription, or support workflow that did not include the same storefront evidence
  • the click ID belonged to a different Nitoriq workspace than the connected Shopify store
  • Nitoriq saw nearby storefront candidates, but none matched the order’s checkout token, cart token, or Shopify order ID

Inspect the order audit, the Store activity event list, diagnostics, and the traffic path that produced the order.

Was this page helpful?