You can connect Hotmart and see sales by UTM inside Ads Editor. Step by step:

  1. In the side menu, open UTM Integrations (under the three-dot button) and click Create integration.
  2. Name the project (e.g., the product name), choose the Hotmart platform and select one or more ad accounts. Click Create.
  3. Open the project's How to integrate panel. It has three things: the tracking script, the UTM pattern for your campaigns and the webhook URL.
  4. Copy the webhook URL and register it in Hotmart: under Tools and Webhook (API and Webhooks), create a webhook, paste this URL and select the Approved purchase event (version 2.0). You can apply it to all products in your account so new products are covered automatically.
  5. Go back to Ads Editor and click Include UTMs in campaigns to apply the tracking pattern to your Meta campaigns (or copy the pattern and paste it manually into the ad's URL parameters field).
  6. If you use a sales page with a redirect, install the script on the page (through Google Tag Manager as custom HTML, or directly in the HTML) so UTMs aren't lost before checkout.

That's it: each approved sale now arrives with the campaign, ad set and ad that generated it, and shows up in the UTM Purchases and UTM Revenue columns in the manager, in reports and in the Copilot.