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.
Cakto sends your sales, renewals, refunds and chargebacks to Clakta through one webhook: Clakta gives you a URL and a secret, and you paste both into 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.
Turn on the Clakta script
To credit each sale to the visit that brought it, install the Clakta script on the pages that link to your Cakto checkout. The script adds the visitor's session to the checkout on its own, so there is nothing else to set up. Projects in privacy-friendly mode don't send this session.
If you build the checkout in your own code
For a checkout the script can't see, such as a redirect from your server, add the session to the link yourself:
clakta.decorateCaktoUrl(url) does the same job.
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 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.
Connect Dodo Payments
Point Dodo Payments at Clakta with a webhook so your payments, refunds and chargebacks arrive automatically, and each sale is matched to the visitor who made it.