Payment tracking
Payment tracking: see which lead paid, and what brought them
Payment tracking means knowing which lead paid, how much, and which ad or post brought them. Connect Razorpay, Stripe or Dodo Payments to ownyourclick by webhook and the gateway itself confirms each payment, so it's recorded even when the buyer never reaches your thank-you page. The payment appears on that lead's row in your Google Sheet.
Other gateways, such as Cashfree, PayU or Instamojo, get Payment started and the thank-you page, not a confirmed payment.What it doesn't do →
7 days of Team, free. No card needed.
| What the buyer did | Thank-you page only | Gateway connected |
|---|---|---|
| Paid by UPI, came back to the thank-you page | Paid | Paid, ₹2,999, confirmed by Razorpay |
| Paid by UPI in another app, then closed the tab | Nothing | Paid, ₹2,999 |
| Paid later from a payment link sent on WhatsApp, on another phone | Nothing | Paid, matched by the email or phone they paid with |
| Reached the thank-you page, but the UPI payment never went through | Paid (wrong) | Payment started, then Payment failed |
| Asked for a refund a week later | Still Paid | Refunded, and moved to the status you chose |
Why do purchases go missing when you only track the thank-you page?
The usual way to count a sale is the page people see after paying: when someone reaches /thank-you, count a purchase. It's simple, and it misses real buyers:
- UPI and app switching. The buyer leaves the browser to approve the payment in their UPI or bank app and never comes back to your page.
- A closed tab. The payment succeeds, the redirect is slow, and they close the tab.
- Paying somewhere else. You send a payment link on WhatsApp and they pay on their phone, nowhere near your landing page.
- False sales. People reach the thank-you page with a UPI payment still pending, refresh it, or share it.
- Refunds. A thank-you page has no way of knowing that a payment was refunded later.
For a one-person business selling a course, a coaching plan or a service from a landing page, each missing sale is a buyer you might call again as if they hadn't paid, and an ad that looks worse than it is.
How does payment tracking through your payment gateway work?
Your payment gateway already knows about every payment. A webhook is the gateway sending a short message to an address you give it each time something happens: a payment succeeded, failed or was refunded.
With ownyourclick, that address belongs to your page:
- The gateway sends the payment, signed with a secret only you and ownyourclick know. Without that secret, nothing sent to the address is accepted, so a message that isn't from your gateway can't mark a lead as paid.
- ownyourclick matches the payment to its lead: by the ids ownyourclick passes along, by the visitor or click, or by the email or phone the buyer paid with.
- The lead shows Paid, with the amount, on the page's Leads tab and in the Payment column of your Google Sheet, next to the source that brought them.
Because the gateway reports it, the payment is recorded whether or not the buyer ever comes back to your site. Each payment is counted once by its gateway id, however many times the gateway retries.
How do you connect Razorpay, Stripe or Dodo Payments?
You need a landing page with the ownyourclick tag on it (how to add the lead tracking script). Then:
- Open the page, then its Payments tab.
- Under Your payment gateway, pick Dodo Payments, Razorpay or Stripe, and the currency.
- Copy the webhook address shown and add it in your gateway's webhook settings, for the payment-succeeded and refunded events.
- Paste the Signing secret from your gateway and press Save secret.
| Gateway | Where the secret comes from |
|---|---|
| Stripe | The signing secret Stripe shows for the webhook you added. |
| Dodo Payments | The signing secret Dodo Payments shows for the webhook you added. |
| Razorpay | There's no secret to copy. On Accounts & Settings → Webhooks → Add New Webhook, type a long secret of your own in the Secret box, then paste the same one in ownyourclick as the Webhook secret. Your Razorpay Key ID and Key Secret aren't used. |
The Payments log on the same tab fills in as payments arrive: when, what, who, and which gateway told ownyourclick.
Can one gateway track payments for every page?
Yes. Most solopreneurs sell everything through one Razorpay or Stripe account, so you only connect it once.
After the secret is saved on one page, tick Use this gateway for every page on that page's Payments tab. Then:
- Every page in your workspace, new ones included, reports payments through that one address and secret. Their Payments tab shows connected, shared. There's nothing to paste into the gateway again.
- The payment lands on the page the buyer filled in, whichever page's address the gateway sent it to, so that page's statuses and automations apply.
- A page can still have its own gateway. Paste a secret on that page and it uses its own from then on.
- To stop sharing, untick the box, or remove the secret from the page you set it up on.
A page that uses the shared gateway counts a sale the same way as one with its own: the gateway confirms it, not the thank-you page.
Thank-you page or payment gateway: which should you use?
You can use both. The thank-you page works with any gateway and needs nothing connected; the gateway is the exact count.
| Thank-you page | Gateway connected (Dodo Payments, Razorpay, Stripe) | |
|---|---|---|
| Set up | Enter the Address of that page (/thank-you, or status=succeeded) and the price, if the address doesn't carry it | Webhook address and secret, once |
| Buyer pays and never comes back | Missed | Recorded |
| Paid from a payment link sent on WhatsApp | Missed | Recorded, matched by email or phone |
| UPI still pending on the thank-you page | Counted as paid | Payment started until the gateway confirms |
| Refunds | Not seen | Refunded |
| Amount | The price you entered, or the amount in the address | The amount the gateway reports |
Once a gateway is connected, reaching the thank-you page only marks Payment started, and the gateway's confirmation marks the lead Paid. A status such as "failed" in the thank-you page's address never counts as a sale.
What happens after a payment is matched to its lead?
- Your Google Sheet. The Payment column on the lead's row updates, so you see which source, ad or post brought paying customers, not just form fills.
- Statuses. With statuses on, the Automations tab can "move the lead to [status]" when your gateway confirms a payment of an amount, and "stop its messages and move the lead to [status]" when a payment is refunded. A status change can start a WhatsApp automation (WhatsApp is in beta).
- Meta ads. If the page sends Purchase on its Meta ads tab with a Conversions API access token, each confirmed payment goes to Meta once, with the ad click from when that person first landed. That is how Meta can learn who buys, even though the payment was confirmed later by the gateway. More in the Meta Pixel lead tracking guide.
- Abandoned checkouts. Leaving your page for a checkout (Razorpay, Stripe, Dodo, Cashfree, PayU, Instamojo, PhonePe, Paytm, PayPal and others) is marked Payment started. A lead stuck there is someone who nearly bought: call them the same day. When a buyer says they'll pay "later", that is usually where the sale is lost.
What doesn't payment tracking do?
- Confirmed payments come from three gateways. Dodo Payments, Razorpay and Stripe. Other gateways get Payment started and the thank-you page, not a confirmed payment or a refund.
- A payment with nothing to match it shows in the Payments log with no matching lead: for example, someone who paid with an email and phone that aren't on any of your leads, and never filled your form in that browser.
- Subscription renewals are not matched to a lead by email or phone alone, so a renewal for something else isn't counted as this page's sale.
- Instant forms. Leads from Facebook instant forms never reach your page, so there's no lead to match a payment to. Send the ad to your landing page instead.
- Ad spend. ownyourclick doesn't import it. For cost per paying customer, divide an ad's spend in Ads Manager by its paying leads in your sheet.
- Your money. Payments are made and paid out by your own gateway. ownyourclick only hears about them.
Questions
What do people ask?
Does ownyourclick need my Razorpay Key ID and Key Secret?+
No. Razorpay only needs a webhook: you type a secret of your own when you add the webhook in Razorpay, and paste the same secret on the page's Payments tab. Your Key ID and Key Secret aren't used.
Is a payment recorded if the buyer closes the tab before the thank-you page?+
Yes, with Dodo Payments, Razorpay or Stripe connected. The gateway tells ownyourclick about the payment directly, so it's matched to the lead whether or not they come back to your site.
I sell from several landing pages with one Razorpay account. Do I connect it on each page?+
No. Connect it on one page, then tick Use this gateway for every page. Every page, new ones included, reports payments through that one webhook, and each payment lands on the page the buyer filled in.
What if I use Cashfree, PayU, Instamojo or another gateway?+
A buyer leaving your page for their checkout is marked Payment started, and you can mark sales from your thank-you page's address. Confirmed payments and refunds straight from the gateway are only for Dodo Payments, Razorpay and Stripe.
Are refunds tracked?+
Yes, from the gateway, which is the only thing that can report a refund. The lead shows Refunded, and a status rule can stop its messages and move it to the status you choose.
Can Meta see these purchases?+
Yes, if the page sends Purchase on its Meta ads tab with a Conversions API access token. Each confirmed payment is sent once, with the ad click from when the buyer first landed, so Meta can credit the sale to the ad.
Does payment tracking cost extra?+
No. Every plan includes payments, along with unlimited pages, links and leads, Google Sheets and the hot %. Every account starts with 7 days of Team free, no card.
Was this page helpful?
Thanks, that helps us make this page better.
What to read next?
Meta Pixel lead tracking →
Make Meta count the leads you really got: Lead only when the form saves, once per person, pixel plus Conversions API deduped, and purchases sent too.
Lead tracking script →
Add one script tag to your landing page and collect every form fill with its source, UTM tags and hot % in your Google Sheet. No backend to build.
Facebook ads lead tracking →
See which Facebook or Instagram ad, ad set and campaign brought each lead, in your Google Sheet, and send leads and purchases back to Meta.
Google Sheets CRM →
A Google Sheets CRM that fills itself: every landing page lead as a row with its UTM source and hot %, plus a free Sheets/Excel template.
Payments, matched to the lead who paid →
Every setting on the Payments tab: the thank-you page address, the gateway webhook, and Use this gateway for every page.
Know who paid, not just who filled the form
7 days of the Team plan, free. No card needed. Then from ₹699 a month.