Connect Hotmart
Send your Hotmart sales, renewals, refunds and chargebacks to Clakta over a webhook, and credit each sale to the visitor who made it.
Hotmart sends your sales, renewals, refunds and chargebacks to Clakta through one webhook, set up in three steps.
Connect
1. In Clakta: create the connection
Go to Project settings → Sales platforms, choose Hotmart, give the connection a name, and click Create connection. Clakta generates a webhook URL. Copy it.
2. In Hotmart: create the webhook
Open Tools in the left menu, click View all, then search for Webhook and open it. Click Add webhook at the top of the page and fill in:
- Name: anything you like. It is only a label to help you recognise it.
- Products: select all of them.
- URL: paste the URL you copied from Clakta.
- Version: leave it on 2.0.0, the recommended option.
- Events: select all of them.
Save.
Version 1.0.0 sends a completely different format that Clakta cannot read, and every delivery will fail. If you already have a webhook on 1.0.0, create a new one on 2.0.0 instead of editing it.
3. Back in Clakta: paste your hottok
Still on Hotmart's Webhook page, open the Authentication tab and copy your hottok. Paste it into Clakta and click Finish.
The card reads Added once the hottok is saved.
Events
Selecting all of them is the simplest thing to do, and it is safe: anything Clakta does not handle is accepted and ignored. These four are the ones that change what you see:
| Event (in Hotmart) | What it does in Clakta |
|---|---|
| Purchase approved | Records the sale, and each renewal as its own sale. |
| Purchase refunded | Marks the order refunded. |
| Chargeback | Marks the order refunded. |
| Purchase canceled | Marks the order canceled. |
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 Hotmart 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 server-side redirect, decorate the URL yourself:
If your checkout runs on a domain of your own, add sck yourself with
clakta.getSessionId().
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.