Sales platforms
Track Hotmart sales back to the ad
Create a project in UTM Integrations, install the script, add the UTMs to your campaigns and register the webhook. Every sale comes back with the campaign, ad set and ad that brought it.
Quick answer
In UTM Integrations, open New project, click Hotmart in the platform grid, give it a name, choose the Ad accounts and click Create project. The project opens on Set up tracking; follow the blocks: install the script on the sales page, click Add to campaigns (Meta) and Add to Google Ads, and paste the webhook URL into Hotmart.
Watch the walkthrough 1:10
Video page: Connect Hotmart sales with UTMs
Before you start
- Have admin access to the product on Hotmart: that is where the webhook is registered.
- To install the script, you need to edit the sales page or have access to its Google Tag Manager.
- Tracking has three parts that work together: the script keeps the click source, the UTMs say which ad it came from and the webhook tells Ads Editor about every sale.
- Selling on another platform (Kiwify, Eduzz, Braip and others)? See Track digital product sales back to the ad, with a guide for each one.
Step by step
In this example, we connect a launch sold on Hotmart to two Meta ad accounts.
- 1
Choose the platform
In the side menu, click UTM Integrations. If you already have projects, click New project. In step 1, click Hotmart in the platform grid. Brazilian platforms come first and international ones after; to find one faster, type its name in Search platform.
123- 1Search platform
- 2Hotmart
- 3International platforms
- 2
Name the project
The grid folds away and shows the chosen platform (Change platform brings the grid back). In Project name, type the product or client name and click Choose accounts.
1234- 1Chosen platform
- 2Project name
- 3Choose accounts
- 4Create project
- 3
Choose the accounts and create the project
Check the accounts that advertise this product (Meta and Google show different tags) and click Use checked accounts. Then click Create project.
12- 1Project accounts
- 2Use checked accounts
- 4
See the status and the tracking
The project shows up in My projects with the status Waiting for the first sale, and Set up tracking opens right away with the script, UTM and webhook blocks. To come back to it later, click Set up tracking on the project.
12- 1Project status
- 2Set up tracking
- 5
Install the script on the sales page
In block 1, Install the script on the sales page, click Copy. Then paste the script straight into the sales page
<head>or install it with Google Tag Manager: click Open Tag Manager, create a new tag of the Custom HTML type, paste the script, pick the All Pages trigger, save and publish the container. It keeps the click source until checkout, even if the visitor goes through another page first.
12- 1Tracking script
- 2Copy
- 6
Add the UTMs to your campaigns
In block 2, click Add to campaigns, check the Meta campaigns (up to 15 at a time) and confirm: Ads Editor writes the pattern into the URL parameters field of each ad. If you also advertise on Google, use Add to Google Ads in block 3.
12- 1Add to campaigns
- 2Add to Google Ads
- 7
Register the webhook in Hotmart
Copy the URL in block 4. In Hotmart, open Tools, then Webhook, create a configuration, paste the URL, choose version 2.0 and check the Purchase approved event for all products. The Register the Webhook in Hotmart button opens the right page.
12- 1Project webhook URL
- 2Register the Webhook in Hotmart
- 8
Check that it worked
The last block, Check that it worked, tells you whether a sale has come in through the webhook. Make a test purchase or use the Hotmart test send and click Check now. With the first sale, the project moves to Receiving sales and shows the time of the latest one.
12- 1Sales status
- 2Check now
Ads that already have their own UTMs
Add to campaigns replaces URL parameters that differ from the project pattern. If you use UTMs from another tool, check which campaigns to select first. Ads already using the pattern are skipped.
How to tell it worked
- Make a test purchase. The project moves to Receiving sales, the Check that it worked block shows the time of the latest sale and it shows up in Latest received events.
- In Meta Ads, open the column picker: UTM Purchases, UTM Revenue and Profit are now available.
- Reports and the Copilot start using the attributed sales instead of the purchases reported by the pixel.
If something goes wrong
| Symptom | Likely cause | What to do |
|---|---|---|
| No sale shows up in Latest received events | The webhook was not registered, or was registered with another event or version | Check Hotmart: the URL from block 4, version 2.0 and the Purchase approved event |
| The sale arrives without a campaign | The ad has no UTM or the page drops the parameters along the way | Use Add to campaigns and install the script on the sales page |
| The UTM columns do not show up in Meta Ads | The account is not in any project | Add the account to the project with Add account |
| My platform is not on the list | There is no integration with it yet | Click Can’t find your platform? Request an integration |
Frequently asked questions
How do I integrate to track the UTMs of my Hotmart sales?
You can connect Hotmart and see sales by UTM inside Ads Editor. Step by step:
- In the side menu, click UTM Integrations. In New project, click Hotmart in the platform grid, name it (for example, the product name) and select one or more ad accounts.
- Click Create project.
- In the project, open Set up tracking. It has the script (block 1), the Meta UTM pattern (block 2), the Google pattern (block 3) and the webhook URL (block 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.
- In block 2, click Add to campaigns. The modal is called Include UTMs in campaigns. You can also copy the pattern and paste it into the ad's URL parameters field.
- If you use a sales page with a redirect, install the script from block 1: click Open Tag Manager and create a custom HTML tag, or paste the code straight into 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.
What is the tracking script and where do I install it?
It's a tracking script that you install on your sales page (the page that receives traffic from your ads). It captures the UTM parameters that arrive with the ad click and automatically passes them to your checkout links, so the sale reaches the platform with the correct source. It also captures Google Ads click IDs (gclid), so it works for both Meta and Google traffic. You can install it in two ways: in Set up tracking, block 1, click Open Tag Manager, create a custom HTML tag and paste the script, or paste the code directly into the page's HTML. Without the script, clicks that pass through intermediate pages can lose their UTMs before checkout.
Where do I find the webhook URL and where should I paste it on my sales platform?
Open the UTM Integrations page, find your project under My projects and open Set up tracking. Block 4, Paste the webhook into the sales platform, shows your project's unique URL with a copy button, and the instructions change depending on the platform. Examples: in Hotmart, paste it in the approved purchase webhook field (version 2.0) for all products in the account; in Kirvano, go to Apps, then Webhooks, and select the sales events; in Cakto, go to Integrations and Webhooks; in Ticto, go to Tools and Webhooks using JSON format, version 2.0; in Monetizze, go to Tools and Postback; in Perfect Pay and Lastlink, setup is per product. Always select the approved sale, refund and chargeback events so your numbers are correct. Many platforms have a shortcut button in the Ads Editor panel that opens the right page.
How do I apply UTMs to my Meta campaigns automatically?
In your project, open Set up tracking and, in the step Add the UTMs to your Meta ads, click Add to campaigns. The Include UTMs in campaigns modal opens, listing campaigns that are active or have spent in the last 30 days, with a search box and the Select all and Unselect all buttons. Select the campaigns (up to 15 at a time, to stay within Meta's API limit) and click Apply UTMs. The system goes through the ads and applies the tracking pattern: ads that already have the correct pattern are skipped, and ads with different parameters are replaced. At the end a summary shows how many were updated, how many were skipped and any errors. If you use UTMs from another tool, check which campaigns you select first.
Which sales platforms does Ads Editor integrate with?
The UTM Integrations platform grid has 33 platforms. From Brazil: Hotmart, Braip, Kiwify, Eduzz, Guru, Hubla, Kirvano, Cakto, Ticto, Perfect Pay, Monetizze, Greenn, Pepper, Lastlink, Payt, CartPanda, XPag, Yampi, Nuvemshop, Vega and Appmax. International: ClickBank, Digistore24, BuyGoods, MaxWeb, Shopify, WooCommerce, Stripe, CheckoutChamp, Sticky.io, ThriveCart, SamCart and Whop. Click yours in the New project box, or type its name in Search platform. If yours isn't on the list, click Can't find your platform? Request an integration on the same page and tell us which platform you use: the team decides what to add based on requests.
What sales columns appear in Meta Ads after I connect an integration?
With at least one integration connected to the account, the manager's column selector unlocks extra columns: UTM Purchases (the number of approved sales attributed to that campaign, ad set, or ad), UTM Revenue (revenue from those sales), Profit (UTM Revenue minus the campaign's spend), Total Sales (all approved sales in the period, even without attribution), Total Revenue, and Total Profit. You can also add the same metrics to the summary cards at the top of the manager. To turn them on, open the manager's column selector and select the ones you want. If you don't see these columns, no integration project is connected.
See also
Track digital product sales back to the adApply UTMs to your campaignsA sale that does not show up