How to Attribute Sales to Chat Conversations on Shopify

Conversion attribution in chat means answering: did this specific conversation cause this specific order? Most chat tools cannot answer this question — they can show that stores using chat have higher conversion rates, but they cannot link a particular conversation with a particular customer to a particular order.

Why exact attribution is hard

The challenge is technical. The chat conversation happens on your Shopify store domain (e.g., yourstore.myshopify.com). The checkout happens on checkout.shopify.com — a separate domain where third-party JavaScript from your store does not run. Standard cross-domain tracking is blocked by browser privacy protections. Getting conversation data from the storefront to the checkout completion event requires a native Shopify mechanism.

How Remplace solves it with Shopify Web Pixel

Remplace uses a Shopify Web Pixel extension — an official Shopify API for running code within the checkout and post-purchase flow. When a visitor has a conversation on your store, the widget sets two cookies:

These cookies are first-party cookies set on your store domain. Shopify's checkout domain (checkout.shopify.com) is treated as the same origin for cookie purposes under Shopify's infrastructure, so the cookies survive to checkout.

When checkout completes, the Web Pixel fires the checkout_completed event, reads both cookies via browser.cookie.get(), and calls the attribution endpoint with the order ID and conversation ID. The server then marks the conversation as converted with the exact order and timestamp.

Attribution types:

What other tools provide

Rep AI provides aggregate analytics — total revenue from sessions that included a chat interaction. This cannot distinguish whether the chat caused the purchase or whether the visitor was going to buy regardless. Zipchat and Tidio provide similar aggregate dashboards. Shopify Inbox has no attribution at all. Only Remplace provides per-conversation, per-order linkage.