> For the complete documentation index, see [llms.txt](https://docs.humblytics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.humblytics.com/how-to-track-purchase-events.md).

# How to Track Purchase Events

Connect your payment provider so every sale is matched to the channel, campaign, landing page, and A/B test variant that brought the buyer in.

Traffic tells you who arrives, and purchase tracking tells you who pays. Once a purchase is matched to the visit that led to it, you can see which campaigns make money, use revenue as an A/B test goal, and end a funnel at the sale.

## Pick your payment provider

| Provider                                   | Setup                                                                                           | Guide                                                                                  |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| **Stripe**                                 | Connect with an API key, then pick how you link payments to visits.                             | [Stripe](/how-to-track-purchase-events/stripe.md)                                      |
| **Foxy**                                   | Connect with a webhook.                                                                         | [Foxy](/how-to-track-purchase-events/foxy.md)                                          |
| **beehiiv** (paid subscriptions)           | Stripe plus a Google Tag Manager tag.                                                           | [beehiiv](/how-to-track-purchase-events/beehiiv-revenue-tracking-and-split-testing.md) |
| **Paddle, ReCharge, or a custom checkout** | One line of code on your confirmation page.                                                     | [Other providers](/how-to-track-purchase-events/other-providers.md)                    |
| **Shop Pay / Shopify Payments**            | Not supported. Shopify's checkout runs on its own domain, where the tracking script can't load. | —                                                                                      |

Stripe and Foxy connections live in **Connect → Connectors**, under **Revenue**.

## Where revenue shows up

* **Observe → Analytics → Overview:** **Revenue**, **Rev/Visitor**, and **Conv. Rate**, plus a revenue chart.
* **Observe → Attribution:** revenue and ROAS by campaign, source, and landing page. See [Understanding Attribution](/understanding-your-data/understanding-attribution.md).
* **Optimize → Experiments:** choose **Revenue** as the goal when you [create a test](/split-testing-overview/how-to-setup-a-split-test.md).

## Check that it works

1. Open your site in a private window, with ad blockers turned off.
2. Make a test purchase.
3. Check **Observe → Attribution**. The payment should appear under **Recent Attributed Transactions**.

Using a provider that isn't listed? Email **<support@humblytics.com>**. New integrations are prioritized by demand.
