# WooCommerce revenue attribution with CrispStats

Updated 2026-12-04

See which channel, campaign and page drove your WooCommerce revenue, without cookies. Type your store's address in CrispStats and approve access on the store's own screen: nothing is pasted, CrispStats adds three order webhooks, and paid orders and refunds arrive within seconds. The CrispStats WordPress plugin ties each order to the visit that led to it.

## Steps

### 1. Open the WooCommerce panel

The CrispStats script must already run on your site. Open the site's **Settings**, select **Revenue**, choose **Connect a payment provider** and pick WooCommerce. You need permission to manage the site's settings.

### 2. Type the store address

Under **Store address**, type the https address of the WordPress site your store runs on, such as `https://shop.example.com`. A store in a folder keeps its path, such as `https://example.com/shop`. CrispStats checks that WooCommerce answers there before it sends you on.

### 3. Approve on the store

Select **Connect WooCommerce**. Your store opens its own screen, asks you to sign in as an administrator if you are not, then asks you to approve CrispStats with **Read/Write** access. CrispStats only reads orders, but WooCommerce gives a read-only key no way to create webhooks. Select **Approve**.

### 4. Come back and check the webhooks

The store sends you back to **Revenue**, and CrispStats adds three webhooks named **CrispStats revenue attribution**, for **Order created**, **Order updated** and **Order deleted**. You can see them in **WooCommerce**, **Settings**, **Advanced**, **Webhooks**.

### 5. Install the WordPress plugin to link orders to visits

Without the plugin, orders are counted but not tied to visits. Install the [CrispStats WordPress plugin](/integrations/wordpress), paste your site key, and check that **Link orders to visits** is on in **Settings**, **CrispStats**. It is on by default when WooCommerce is active, and saves the visitor id on each order at checkout, in the classic and the block checkout, as `crispstats_visitor_id`.

## Check that it works

The WooCommerce row in **Settings**, **Revenue** shows **Connected**, whether it is live, and when it last updated. Make a purchase from a page with the script: it appears under **Payments** on the Revenue screen with the source of that visit. If the key stops working or loses a permission, the row says so and names the way out. In WooCommerce, the three **CrispStats revenue attribution** webhooks show as active.

## What you get

- Revenue by source, channel, campaign and landing page for every order placed with the plugin running.
- Orders in **Processing** or **Completed** recorded once, for the order total in the order's own currency. An order that moves from one to the other is not counted twice.
- Renewal orders from WooCommerce Subscriptions counted as renewals, not new sales.
- Each refund, partial or full, recorded against its order for the amount refunded, tax included.
- Product names from the order's line items, and test orders from WooPayments and WooCommerce PayPal Payments left out.

## Notes for WooCommerce

- Past orders are not imported: revenue starts on the day you connect. To bring in older orders, send them from your server with the [payment API](https://docs.crispstats.com/revenue/payment-api).
- WooCommerce does not resend a webhook that failed, and it turns a webhook off after five failures in a row. If orders stop arriving, check the webhooks' status in WooCommerce or connect the store again.
- The store must answer at a public https address. Local, private and `http://` addresses cannot connect, and neither can a staging site behind a password.
- WooCommerce has no test keys, so test orders are left out one by one by the mark the payment gateway saves. The WooCommerce Stripe Gateway saves no such mark, so its test orders count: try it on a staging copy that is not connected.
- Orders are not read back from the store, so they never show as verified revenue. CrispStats checks the signature of every webhook with the secret it gave the store.
- Disconnecting removes the webhooks. The store keeps the REST API key until you revoke it in **WooCommerce**, **Settings**, **Advanced**, **REST API**.
- A payment without a visitor id is still recorded and counted in revenue, MRR and every total. It is left out of the source, campaign and channel breakdowns rather than filed under Direct.

Full reference: [WooCommerce in the docs](https://docs.crispstats.com/revenue/woocommerce)

## Frequently asked questions

### Why does it ask for Read/Write access?

WooCommerce gives a read-only key no way to create webhooks. The key is used to add the three webhooks when you connect and to remove them when you disconnect. CrispStats keeps it encrypted and never changes orders, products or customers.

### Can I import orders from before I connected?

No. WooCommerce revenue starts on the day you connect. Older orders can be sent with the payment API, from a server you run, with your secret key.

### Do I need the WordPress plugin?

To tie orders to visits, yes, or the same thing by hand: save the visitor id that crispstats.id() resolves to in the browser on the order, under the meta key crispstats_visitor_id. Without either, orders still count in revenue and every total, and stay out of the source breakdowns.

### What happens if I connect the same store again?

CrispStats adds a new set of webhooks first, keeps the old set delivering until the new connection is saved, then removes the old one, so no order is missed during the switch.

### Is revenue attribution on every plan?

Yes. Every feature is on every plan and in the 14-day free trial, and payments are kept on every plan, while other traffic data is kept for the plan's period, 24 months on Starter.

## Related

- [WordPress analytics with the CrispStats plugin](/integrations/wordpress)
- [Cookieless analytics for online stores](/for/ecommerce)
- [Revenue attribution: which traffic pays](/features/revenue-attribution)
- [Revenue per visitor calculator](/tools/revenue-per-visitor-calculator)
