Skip to main content

Why track purchases?

Tracking purchases lets you answer:
  • How much revenue did we make this week?
  • Which marketing channel drives the most purchases?
  • What’s the average order value?
  • How many users bought after clicking a specific CTA?
  • What’s the conversion rate from signup to purchase?

The basic purchase event

Use the event name purchase with an amount property:

Where to fire the purchase event

Fire it after the payment API confirms success — not when the user clicks the pay button.

Stripe integration example

components/Checkout.jsx

Tracking the full purchase funnel

To understand where users drop off, track every step:
On your dashboard you can see how many users made it through each step — and where the majority drop off.

Subscription events

For recurring subscriptions, track both the initial purchase and renewals:

E-commerce cart tracking



Verifying purchases are tracked

  1. Make a test purchase (use Stripe’s test card 4242 4242 4242 4242)
  2. Go to Analytiq dashboard, click Events
  3. Filter by event name purchase
  4. Verify all properties appear correctly