Docs
← Back to site

SureCart

2 min readUpdated November 11, 2026

With SureCart on a client’s website, the connector counts the same three shop events as for WooCommerce, so the shop goals and the Shop checkout funnel set themselves up the same way, and revenue is joined to the visit that brought the buyer.

What is counted#

EventWhenDetails
Added to cartSureCart reports a product added to the cartFrom SureCart’s own browser event (scAddedToCart). Two adds within half a second count once
Checkout startedSureCart reports a checkout startedFrom SureCart’s own browser event (scCheckoutInitiated)
PurchaseSureCart confirms the checkoutRevenue = the checkout total in its currency. Properties: items and coupon (the promotion code, if any)

Amounts come from SureCart in the currency’s smallest unit (cents) and are converted to units, including for zero-decimal currencies such as JPY.

How a purchase is counted, exactly once#

  • From the website’s server, when SureCart confirms the checkout (surecart/checkout_confirmed). SureCart’s confirmation is requested by the buyer’s own browser, so the event carries the buyer’s address and browser and joins their visit. Each checkout is counted once, whatever happens next.
  • From the buyer’s browser, only when the website’s connection code is too old to send from the server: SureCart’s checkout-completed event (scCheckoutCompleted) records it instead.

Test mode#

Purchases made in SureCart’s test mode are left out, so test money never shows as revenue. To count them too (for example while setting up a shop with a client):

add_filter( 'nahnu_analytics_connector_surecart_test', '__return_true' );

Orders by customers whose role is not counted (What to count › roles) are also left out.

Where it shows#

The same places as WooCommerce: Revenue in the key numbers, Goals & events, the Shop checkout funnel, Paths to conversion, revenue per source and campaign, email reports and the portal.

Goals & events with the shop events

Turning it off#

On the client’s WordPress: connector settings › What to count › switch off SureCart › Save changes.

For developers#

// Change or skip the Purchase for a SureCart checkout.
add_filter( 'nahnu_analytics_connector_surecart_purchase', function ( $event, $checkout ) {
    $event['p']['plan'] = 'annual';
    return $event; // Return null to skip this checkout.
}, 10, 2 );

Troubleshooting#

What you seeWhy, and what to do
Test purchases are missingExpected: test mode is left out. Use the filter above to count them
Purchases without a sourceThe connection code is old, so the browser counted them and they may miss the visit. Paste a new connection code
No Added to cartSureCart sends it from its own scripts: check that the cart is SureCart’s, not a custom form

Was this helpful?