Skip to content

Ecommerce platforms

WooCommerce revenue attribution with CrispStats

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.

Updated

Set up CrispStats on WooCommerce

  1. 01

    Step 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. 02

    Step 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. 03

    Step 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. 04

    Step 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. 05

    Step 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, 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 the install check shows once the first events land, on the demo site, Quillbook, on generated traffic.
  • 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 and limits

    • 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.
    • 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.

The docs page covers the optional steps this guide leaves out.

Setup questions. Straight answers.

What people ask before they connect it.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

Not answered here? Write to hello@crispstats.com

Go further

Related

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.

© 2026 OG APPS LLC. All rights reserved.

Get an AI summary of CrispStats