Skip to main content
nopCommerce → AmplitudeIntegration guide

Connecting nopCommerce to Amplitude

nopCommerce is a .NET platform usually run by teams who deploy their own builds, which makes tracking a code change rather than a plugin install — and code changes ship on the release cycle, not on the marketing calendar. 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 nopCommerce 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

nopCommerce orders in Amplitude with the revenue fields populated

Send nopCommerce orders to Amplitude server-side from a plugin consuming the order-paid event, with user_id from the customer ID, device_id if stored, and insert_id from the order GUID. Populate per-item price and quantity or revenue fields, send refunds as negative revenue, and pick one revenue definition used everywhere.

Amplitude on a nopCommerce store is usually about repeat purchase: which first-order products lead to second orders, and which acquisition sources produce customers who come back. That depends on one user ID everywhere, including for guest checkouts, where nopCommerce creates a guest customer record that never logs in again.

Send the order server-side when payment status becomes Paid. nopCommerce's event system lets a plugin consume order-paid events, so this ships as a plugin rather than a theme edit the next deploy overwrites. Set user_id to the customer ID, or to your own ID if you map guests by email, device_id from the browser SDK if you stored it on the customer, and insert_id from the order GUID. Populate price and quantity per line item, or the revenue field in the exact names Amplitude expects; missing them gives you correct event counts and an empty revenue chart.

Send refunds and voids as negative revenue events, since nopCommerce supports partial refunds and lifetime value per cohort otherwise overstates by the refund rate. Decide whether revenue means order subtotal or order total including shipping and tax, and use the same figure in every event, because Amplitude will not tell you two developers chose differently.

nopCommerce → Amplitude · what breaks

Why this join usually fails — nopCommerce → Amplitude

  1. 01

    The user ID and device ID pair never reaches nopCommerce

    Custom builds mean the checkout flow differs per installation, and a redeploy can remove tracking that was added by hand.

  2. 02

    Tracking that disappears on the next release

    Anything bolted onto a self-hosted build by hand will eventually be lost in a merge. Putting the identifier in the schema makes it a first-class field that a redeploy carries rather than erases.

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

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

nopCommerce → Amplitude · the fix

What working looks like — nopCommerce → 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

nopCommerce → Amplitude · architecture

How nopCommerce and Amplitude actually connect

  1. 1

    nopCommerce holds the truth

    Because the platform is self-hosted, the order table is directly queryable and there is no reason to infer revenue from a confirmation page.

  2. 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. 3

    The identifier is the bridge

    The user ID and device ID pair, captured at the visit and carried into the nopCommerce order.

  4. 4

    The event source decides reliability

    Send orders with payment status paid, at the order subtotal.

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

nopCommerce → Amplitude · normal or broken

Working vs. broken, side by side — nopCommerce → Amplitude

Normal, not a fault

  • The user ID and device ID pair present on the order

  • Sent from the nopCommerce order table

  • 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

    Custom builds mean the checkout flow differs per installation, and a redeploy can remove tracking that was added by hand.

  • Sent from the browser

    Anything bolted onto a self-hosted build by hand will eventually be lost in a merge. Putting the identifier in the schema makes it a first-class field that a redeploy carries rather than erases.

  • 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

nopCommerce → Amplitude · diagnose

Diagnostic order — nopCommerce → Amplitude

  1. 01

    Count orders carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether identifier capture survives a deploy

    Test it deliberately on a staging release rather than discovering it three weeks after the fact.

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

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

nopCommerce → Amplitude · prove

How it gets proven — nopCommerce → Amplitude

Source of truth

nopCommerce orders by payment status, from the database rather than from a page.

  • 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.
  • Paid orders reconciled from the database against imported conversions for a closed week.

nopCommerce → 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
  • Check whether identifier capture survives a deploy
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

nopCommerce orders by payment status, from the database rather than from a page.

Get my free conversion tracking audit

Free30 minutesNo obligation

nopCommerce → Amplitude · when not to buy

When you don't need this — nopCommerce → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID and device ID pair.
  • If your team already sends orders server-side from the application, this is done and the remaining work is reconciliation.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

nopCommerce → Amplitude · what we deliver

What gets built — nopCommerce → Amplitude

  • Identifier capture into nopCommerce

    Add the identifier as a custom order field in the data model, so it survives redeploys as a schema change rather than as a script.

  • Event source: the nopCommerce order table

    Send orders with payment status paid, at the order subtotal.

  • Dispatch to Amplitude

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.

  • Reversals where they exist

    Refunds and voids reverse.

Written guarantee

95%+ tracking accuracy

Measured against nopCommerce orders by payment status, from the database rather than from a page.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

nopCommerce → Amplitude questions, answered

The purchase event is arriving without price and quantity or the revenue field Amplitude reads. Check a live event's properties, not just the count.

Free · 30 min

Get nopCommerce and Amplitude joined properly

Free30 minutesNo obligation