Connecting SureCart to Amplitude
SureCart runs checkout off-site while the store lives in WordPress, which removes the database load and introduces a handoff where the identifier can be lost. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the SureCart order before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
SureCart to Amplitude: device_id through the checkout handoff
Pass Amplitude's device_id, and user_id for logged-in WordPress users, into the SureCart checkout as metadata, then post the order from SureCart's order webhook with price, quantity and product ID per line, revenueType separating one-time from subscription payments, and the order ID as insert_id. Unlike ad platforms, Amplitude should get renewals, cancellations and refunds as negative revenue.
Amplitude's browser SDK runs on your WordPress pages, but the SureCart order is created in SureCart's platform, so a purchase event read from the thank-you page misses anyone who closes the tab and duplicates anyone who reloads it. Pass Amplitude's device_id, and user_id if the WordPress user is logged in, into the checkout as metadata, then post the order server-side from SureCart's order webhook with those IDs.
Use the revenue fields Amplitude expects, price, quantity and a product ID per line item, and set revenueType to separate one-time purchases from subscription payments, which SureCart already distinguishes. Use the SureCart order ID as insert_id. Unlike an ad platform, Amplitude should receive renewals and cancellations, since subscription retention by cohort is a main reason to have product analytics on a store.
Guest checkout is the identity gap. A buyer without a WordPress account has only a device_id, so a second purchase from another device becomes a second user. If repeat purchase matters to you, set a user_id from your own customer record at checkout and confirm Amplitude merges it with the earlier device. Refunds can be sent as negative revenue so lifetime value stays honest.
SureCart → Amplitude · what breaks
Why this join usually fails — SureCart → Amplitude
- 01
The user ID and device ID pair never reaches SureCart
Checkout runs on SureCart's infrastructure, so the identifier must be passed at the handoff rather than read from the page.
- 02
Order data living outside the site it belongs to
Teams used to querying the WooCommerce orders table find nothing in the database, because the orders are not there. Reconciliation has to go through the API, and assuming otherwise wastes a day.
- 03
Revenue events that carry no revenue
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
- 04
Nothing reconciles afterwards
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
SureCart → Amplitude · the fix
What working looks like — SureCart → Amplitude
The user ID and device ID pair on every order
Conversions arriving in Amplitude
The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.
Reconciled against the source
SureCart → Amplitude · architecture
How SureCart and Amplitude actually connect
- 1
SureCart holds the truth
Because the cart is hosted rather than in WordPress, the order data lives outside your database and must be pulled rather than queried.
- 2
Amplitude needs a click to match
Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.
- 3
The identifier is the bridge
The user ID and device ID pair, captured at the visit and carried into the SureCart order.
- 4
The event source decides reliability
Send completed orders at paid value, with subscriptions sending only the first payment.
- 5
Deduplication at the destination
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
SureCart → Amplitude · normal or broken
Working vs. broken, side by side — SureCart → Amplitude
Normal, not a fault
The user ID and device ID pair present on the order
Sent from the SureCart order webhook
Deduplicated correctly
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Reconciles with the source
Actually broken
The user ID and device ID pair missing on most records
Checkout runs on SureCart's infrastructure, so the identifier must be passed at the handoff rather than read from the page.
Sent from the browser
Teams used to querying the WooCommerce orders table find nothing in the database, because the orders are not there. Reconciliation has to go through the API, and assuming otherwise wastes a day.
Counted twice, or not at all
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
Nobody has reconciled it
SureCart → Amplitude · diagnose
Diagnostic order — SureCart → Amplitude
- 01
Count orders carrying the user ID and device ID pair
- 02
Follow one real conversion end to end
- 03
Confirm where the order record actually lives before designing reconciliation
On hosted-checkout plugins it is not in WordPress, and that changes the whole approach.
- 04
Check a purchase event for the price and quantity fields specifically
Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.
- 05
Read the match rate, not the success message
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
SureCart → Amplitude · prove
How it gets proven — SureCart → Amplitude
Source of truth
SureCart orders by date, split into one-time and subscription purchases.
- The user ID and device ID pair confirmed present on a live order.
- Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
- Completed orders reconciled from the API against imported conversions.
SureCart → Amplitude · free audit
What we check in the free audit
- Count orders carrying the user ID and device ID pair
- Follow one real conversion end to end
- Confirm where the order record actually lives before designing reconciliation
- Check a purchase event for the price and quantity fields specifically
- Read the match rate, not the success message
Checked against
SureCart orders by date, split into one-time and subscription purchases.
Free30 minutesNo obligation
SureCart → Amplitude · when not to buy
When you don't need this — SureCart → Amplitude
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID and device ID pair.
- If you use a fully in-database cart, you can query directly and this indirection does not apply.
- If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.
SureCart → Amplitude · what we deliver
What gets built — SureCart → Amplitude
Identifier capture into SureCart
Capture on your WordPress site and pass the identifier into the checkout session as metadata.
Event source: the SureCart order webhook
Send completed orders at paid value, with subscriptions sending only the first payment.
Dispatch to Amplitude
The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.
Reversals where they exist
Refunds and cancellations reverse.
Written guarantee
95%+ tracking accuracy
Measured against SureCart orders by date, split into one-time and subscription purchases.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
SureCart → Amplitude questions, answered
Pass Amplitude's device_id into the SureCart checkout as metadata and post a revenue event from the order webhook with that ID and the order ID as insert_id.
Yes. Retention analysis needs them, unlike ad platforms, which should get only the first payment.
Almost always because the user ID and device ID pair never reached the SureCart order. Checkout runs on SureCart's infrastructure, so the identifier must be passed at the handoff rather than read from the page. Measure coverage before debugging the dispatch.
Amplitude tracks both a device ID and a user ID and merges them when a user identifies. The merge rules decide who counts as one person, so a mistake here does not produce a small error — it changes every retention curve and cohort size in the account.
The SureCart order webhook. Send completed orders at paid value, with subscriptions sending only the first payment.
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
More on SureCart → Amplitude
- Stripe → AmplitudeConnecting Stripe to Amplitude
- PayPal → AmplitudeConnecting PayPal to Amplitude
- Shopify → AmplitudeConnecting Shopify to Amplitude
RELATED GUIDES
Where SureCart → Amplitude fits in the rest of your tracking
- Saleor → AmplitudeConnecting Saleor to Amplitude
- Checkout Extensibility → AmplitudeConnecting Shopify Checkout Extensibility to Amplitude
- Medusa → AmplitudeConnecting Medusa to Amplitude
- SureCart → GA4Connecting SureCart to GA4
- SureCart → Adobe AnalyticsConnecting SureCart to Adobe Analytics
- Jewelry ecommerceConversion tracking for jewelry ecommerce, measured in settled orders
- Braintree → AmplitudeConnecting Braintree to Amplitude
- Wix → AmplitudeConnecting Wix Stores to Amplitude
Free · 30 min
Get SureCart and Amplitude joined properly
Free30 minutesNo obligation
