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.

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 approvedRecords the sale, and each renewal as its own sale.
Purchase refundedMarks the order refunded.
ChargebackMarks the order refunded.
Purchase canceledMarks 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