# How to track purchases on a Lovable store

> How to track purchases on a store built with Lovable: send the purchase from where the money is taken, for Stripe and for Shopify checkout, and what needs a yes.

Source: https://clickfall.co.uk/guides/track-purchases-lovable-store

[Guides](https://clickfall.co.uk/guides) / Measurement

# Tracking purchases on a Lovable store.

How to track purchases on a store built with Lovable: send the purchase from where the money is taken, for Stripe and for Shopify checkout, and what needs a yes.

By Seth LeechWritten 7 Nov 2026Sources checked 7 Nov 20266 min read

**Track the purchase from the place the money is taken, not from the page the shopper lands on.**

On a Lovable store that means your payment provider’s event: a Stripe webhook, or Shopify’s order webhook. The thank-you page can fail to load, get blocked, or sit on someone else’s domain.

## Why the page isn’t enough

A tag on your thank-you page only sees a purchase if the shopper reaches that page, in a browser that lets the tag run. Blockers and browsers remove some of them. If checkout happens on another site, your page never sees the order at all.

## Lovable with Stripe

1. Take payment with Stripe Checkout.
2. Listen for Stripe’s completed-checkout event on a server endpoint. Stripe’s own guide uses webhooks for fulfilling orders, and the same event is the one to count.
3. On that event, record the sale once, with the order ID, the value and the currency.
4. Send it on to the ad platform from the server, with the same order ID as an event ID, so a browser event for the same sale isn’t counted twice.

## Lovable with Shopify checkout

A Lovable store with Shopify checkout sends the shopper to Shopify to pay. Your Lovable pages never see the order, and a Shopify theme app embed may never load on your front end.

1. Use Shopify’s order webhooks to learn that an order was paid.
2. Record the sale once, then send it on from the server, as in the Stripe steps.
3. Keep the visit and the click ID from your Lovable pages, so the sale can be matched to the ad.

## What needs a yes

Counting your own visits can need no consent in the UK, if you tell people and give a free way to object. Sending a visitor’s data to an ad platform still needs a yes. So send ad events only for visitors who agreed.

## Where Clickfall fits

Clickfall is one option. Counting visits and Stripe sales are live. The Shopify connection is in build, and the Lovable with Shopify path is in testing. Sending to Meta, Google Ads, TikTok and Microsoft Ads is in build. See [installing in Lovable](https://clickfall.co.uk/install/lovable) and [Lovable with Shopify](https://clickfall.co.uk/install/lovable-shopify).

You can also build the Stripe or Shopify webhook yourself. The steps above are the same either way.

This explains the law in plain English. It isn't legal advice.

## Sources

1. [Stripe: fulfil Checkout orders with webhooks](https://docs.stripe.com/checkout/fulfillment)
2. [Shopify: webhooks](https://shopify.dev/docs/api/webhooks)
3. [Meta for Developers: Conversions API](https://developers.facebook.com/documentation/ads-commerce/conversions-api)
4. [ICO: Guidance on the use of storage and access technologies](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guidance-on-the-use-of-storage-and-access-technologies/)

Every source was checked on 7 Nov 2026. Spotted something out of date? [Tell us](mailto:hello@clickfall.co.uk?subject=Guide%20correction:%20How%20to%20track%20purchases%20on%20a%20Lovable%20store) and we'll correct it.

## About the author

Seth Leech · Founder, Clickfall

**Draft.** The author's bio and photo go here before launch, in their own words.

## The Clickfall features behind this guide

- [Conversion feedback: Send ad platforms the sales they missedIn build](https://clickfall.co.uk/features/conversion-feedback)
- [First-party tracking: Your data. Your domain. Your rulesLive](https://clickfall.co.uk/features/first-party-tracking)
- [Proof ledger: A receipt for every conversionPreview](https://clickfall.co.uk/features/proof-ledger)
