Skip to main content

Tracking conversions with Hotmart

Hotmart is a built-in checkout in AtomicPlayer revenue tracking. The player adds a click key to Hotmart buy links. Hotmart sends the sale back to a webhook, and AtomicPlayer ties the approved sale to the video the viewer clicked. Revenue tracking is available on Standard and Scale.

Connect Hotmart​

  1. Open Integrations & APIs → Revenue.
  2. In Checkout, choose Hotmart.
  3. Keep Parameter on src. This is the parameter Hotmart returns.
  4. Select Connect. A card for Hotmart appears with its webhook URL.
  5. Copy the webhook URL. It contains a secret token. Treat it like a password.

Revenue → Checkout

Set up the webhook in Hotmart​

  1. In Hotmart, open Tools → Webhook (API and notifications) and register the webhook URL.
  2. Select Purchase approved, Purchase refunded, and Chargeback.

Hotmart returns src as purchase.origin.src. A refund request is not a refund. AtomicPlayer waits for PURCHASE_REFUNDED.

The player recognizes links to pay.hotmart.com and checkout.hotmart.com, including their subdomains. When a viewer clicks one, the player writes a click key into src and then opens the checkout. This works for buttons inside the player. With the JavaScript embed, it also works for buy links on the page around the player. A link that already carries a click key keeps it. A click key stays valid for 30 days.

Test and check the connection​

Select Send test sale on the Hotmart card. A test order of 97.00 in your reporting currency appears under Recent orders with a Test label. Select Remove test to delete it.

The card status starts as Waiting for first sale. It changes to Live when webhooks arrive. Needs attention means the last webhook failed, and the card shows Last webhook with the reason. An approved sale without a click key is listed but left out of revenue. Select Remove to disconnect Hotmart.

CTA click webhooks​

The conversion.fired event in Integrations & APIs → Webhooks is a different signal. It fires when a viewer clicks a player CTA and carries button metadata only, with no amount. Use revenue tracking for sales.

Frequently asked questions​

Does AtomicPlayer record Hotmart sales as revenue?

Yes. Connect Hotmart under Integrations & APIs → Revenue and add the webhook URL in Hotmart. Approved sales are tied to the last video click and appear in Analytics → Revenue.

Which plan do I need?

Revenue tracking is available on Standard and Scale.

Why is a sale not tied to a video?

Hotmart did not return the click key in src, or the click is older than 30 days. Check that the buy link points at a Hotmart domain and that the parameter is kept.

How do I test the setup?

Select Send test sale on the card. Remove the test order afterwards with Remove test.