Connect Cakto
Send your Cakto sales, renewals, refunds and chargebacks to Clakta over a webhook, and credit each sale to the visitor who made it.
Connecting Cakto sends every approved sale, renewal, refund and chargeback to Clakta as it happens. It takes one webhook: Clakta gives you a URL and a secret, and you paste both into a new webhook in Cakto.
Connect
- Go to Project settings → Sales platforms.
- Choose Cakto, name the connection, and click Create connection. Clakta generates a webhook URL and a secret — copy both.
- In Cakto, create a new webhook. Paste the URL into its URL field and the secret into its Secret field.
- Select every product you sell, and enable the six events below.
- Save the webhook in Cakto, then click Finish in Clakta.
The connection is usable the moment it is created — the card reads Added straight away — and sales start arriving once the webhook is saved on Cakto's side.
It is stored encrypted and cannot be read back, so copy it before you close the dialog. If you lose it, reopen the connection and choose Generate new secret — then paste the new value into the webhook in Cakto, because the old secret stops being accepted the moment you generate a replacement.
Events to select
| Event | What it does in Clakta |
|---|---|
| Compra aprovada | Records the sale. |
| Compra recusada | Records a declined purchase. |
| Reembolso | Marks the order refunded. |
| Chargeback | Marks the order refunded. |
| Assinatura renovada | Records each renewal as its own sale. |
| Renovação de assinatura recusada | Records a renewal that failed. |
Extra events are harmless — anything Clakta does not handle is acknowledged and ignored. But leave Assinatura renovada out and you only ever see the first payment of a subscription, because a renewal never fires Compra aprovada.
Cover all your products with a single webhook rather than one per product. If you do need several, point them all at the same URL and give them the same secret — Clakta recognises a purchase it has already recorded and will not count it twice.
Attribute sales to visitors
A Cakto checkout link has one free field, sck, and Clakta reads the visitor's
session from it. Build the link with the session id of the page the visitor is
already on:
That needs the
tracking script on the
page — and with it in place, a visitor clicking a Cakto link on your site gets
sck appended automatically. You only need to build the URL yourself for a
checkout the script can't see, such as a server-side redirect, where
clakta.decorateCaktoUrl(url) does the same job.
Sales still arrive without it; they are just recorded as unattributed, so you see the revenue but not the traffic behind it. Projects in privacy-friendly mode have no session id to send, and record no buyer name or email either.
What gets recorded
Revenue in reais (Cakto settles only in BRL), the buyer's name and email, the
product and its offer, the payment method, the approval date, and the
attribution from sck and any UTMs on the link. Pix, boleto and cards are
recorded by name; PicPay and Open Finance read Other.
Cakto delivers a whole checkout as a single event, so a purchase sold with order bumps arrives as the main product plus each bump beside it. Clakta records each one as its own order, which is how Cakto treats them too — a bump can be refunded on its own without touching the rest of the purchase. They share a buyer and a session, so attribution credits the same visit for all of them, and each counts towards your plan's monthly orders.
Refunds and chargebacks
Both mark the order refunded and record the date the money moved. A refund for a sale that predates the connection is ignored rather than invented — Clakta never saw the original order, and creating one on the refund date would report revenue on a day it never happened.
Disconnect
Remove the connection from Project settings → Sales platforms. Deliveries stop being accepted immediately, and orders already recorded stay where they are. Delete the webhook in Cakto too, so it stops retrying against an endpoint that no longer exists.
Troubleshooting
Related articles
Connect Shopify
Install the Clakta app on your Shopify store. It sets up checkout tracking, imports your recent orders and matches each sale to the ad that produced it.
Connect Stripe
Link your Stripe account in one click so every payment, refund and dispute reaches Clakta — and each sale is matched to the visitor who made it.
Connect Lemon Squeezy
Send your Lemon Squeezy orders, renewals and refunds to Clakta over a webhook, and credit each sale to the visitor who made it.