Knowledge Base      

How to track Hotmart sales in ClickMagick?

ClickMagick works with all affiliate networks that support tracking pixels, tracking code, Sub-IDs, server-to-server Postback URLs, and other standard tracking methods. 

Select your affiliate network below to see how to integrate it with ClickMagick …

If you want to track your ClickBank sales, as a Vendor or an Affiliate, you can either set up a Postback URL – which is generally the way to go and is what’s covered in this article – or you can use tracking pixels with their Integrated Sales Reporting system. You can read more about setting up Integrated Sales Reporting with ClickBank here:

How do I set up Integrated Sales Reporting in ClickBank?

Okay so the first thing you need to know is that ClickBank doesn’t use the term “Postback URL” like most affiliate networks so you won’t find that mentioned in any of their videos or documentation.

Instead, they call it their “Instant Notification Service” which requires setting up a “Secret Key” for added security. This article will cover how to set that up.
So let’s get started!

Step 1 – Create a ClickBank “Secret Key”

The first thing you’ll need to do set up the Instant Notification Service is to create a “Secret Key” in ClickBank that it uses to communicate with other tools like ClickMagick.

You can watch the quick video or read the steps below:
1.    Log in to your ClickBank account.
2.    Click the “Vendor Settings” tab near the upper-right corner of the page.
Note: Making the following changes in the “Vendor Settings” tab will allow you to track both Vendor sales and Affiliate sales. If you’re only an affiliate it may seem weird to have to edit “Vendor Settings,” and we agree, but this is what you need to do in ClickBank.
3.    Click “My Site” in the sub navigation menu bar.
4.   Scroll down to the “Advanced Tools” section …
5.    Click the “Edit” link in the upper-right corner.

6.    If the Secret Key is empty, you’ll need to create one. Simply enter any combination of UPPER CASE LETTERS or numbers, up to 16 characters. You will get an error if you use any lowercase letters, spaces, or symbols.

7.    If the “Instant Notification URL” section shows a red link that says “(request access)” (as shown in the screenshot above), click on that link to show a form. 

Select “Yes” for all the questions, click on the checkbox that says you agree to the Terms of Service and click on “Save Changes & Request API Access”.
8.    Finally, scroll back down to the same section and copy your Secret Key. We’ll be pasting that into ClickMagick in the next section.

Step 2 – Add the Secret Key to ClickMagick

Now that you have your Secret Key set up in ClickBank, you need to let ClickMagick know about it … 

Just head over to your Account Settings page and enter your “Secret Key” on the ClickBank tab.

If you’re following the steps outlined here, your Secret Key should be on the clipboard so just paste it into your settings and save your changes by clicking on the “Update Settings” button.

If you don’t click on the “Update Settings” button to save the changes, the Instant Notification Service will not work.
Note: If you have multiple ClickBank accounts that you want to set up with ClickMagick, just use the same secret key with each account. ClickMagick will work great with every ClickBank account you set up that uses the secret key you’ve entered in your Account Settings.

Step 3 – Add Your ClickMagick Instant Notification URL to ClickBank

1.    You’ll need to copy your unique ClickMagick Instant Notification URL and paste it into your ClickBank settings.

First, copy this link exactly as you see it:[USERID]

Note: The unique URL above is used only to link your ClickBank account with ClickMagick. It is not meant to be accessed directly in your browser, and if you do so you’ll see an error message which is totally normal.
2.    Go back to ClickBank to the Advanced Tools section where you created your Secret Key. You’ll find it in the “Vendor Settings” tab, under the “My Site” sub menu. Scroll down to “Advanced Tools”. and click “Edit”.
3.    In the first empty slot that says “Instant Notification URL:”, paste in the ClickMagick Instant Notification URL that you copied above.
4.    Make sure that version 7.0 or higher is selected in the drop-down.

5.    You MUST save your changes here before testing your setup in the next few steps, otherwise ClickBank’s system will say your URL doesn’t work. 
6.    Now that you’ve saved your changes, scroll back down to the Advanced Tools section and click “Edit” in the upper-right corner one last time …
7.    Click the “TEST IPN” link next to your URL to activate it in ClickBank’s system. You should see a “Verified” next to the version number if you followed the previous steps correctly.


Once you’ve tested your URL without error you’re done with the integration of your ClickMagick and ClickBank accounts.

Step 4 – Add the Unique ID to Your ClickBank Hoplinks

Now that you’ve integrated your ClickMagick account with Clickbank, you can use ClickMagick’s [clickid] token (for tracking links) or the [cmc_vid] token (for Campaigns) to pass a unique ID to your ClickBank hoplinks so ClickBank can track and report your sales back to ClickMagick.

For example, here’s a standard ClickBank hoplink:

So if you’re an affiliate or vendor promoting a “hoplink” using tracking links, your link would look like this:[clickid] (Affiliate Links)[clickid] (Vendor Payment Links)

If you’re using Campaigns, the links on your pages would look like this:[cmc_vid] (Affiliate Links)[cmc_vid] (Vendor Payment Links)

When you do this, each time someone clicks on your ClickMagick tracking link or a link on your landing page, the system will automatically replace the [clickid] or [cmc_vid] token in your link with actual unique ID of the click being processed.

This will allow the ClickBank system to report sales back to the proper link in your ClickMagick account whenever a sale is made.

Note: We support all ClickBank transaction types including standard sales, re-bills, JV sales, JV re-bills, refunds, and chargebacks. When ClickMagick gets a refund or chargeback, the previously attributed conversion will simply be removed from your ClickMagick account as if it never happened.

The only way to track sales with MaxBounty is by setting up a Postback URL.

The key to understanding this setup is that you need to pass a unique “ID” from your tracking link to your MaxBounty offer, and that MaxBounty needs to send that ID back to ClickMagick.

You can do that in two simple steps.

Step 1 – Add a Click ID to Your Affiliate Link

The first step is to pass a unique ID generated by ClickMagick to MaxBounty via your affiliate link.
1.    When you’re creating your tracking link, insert your MaxBounty affiliate link into the Primary URL, then click on the menu and choose the option to add the Click ID. That will automatically add the correct Postback URL tracking code to the end of your MaxBounty affiliate link:


This won’t change how your affiliate link works in any way. It simply sends some additional information to your affiliate network that allows ClickMagick to track your sales.

Step 2 – Add Your Postback URL to MaxBounty
The next step is to go to the Postback URL Tool which you can find in the Campaigns or Tracking Links Tools menu under the subheading “Postback URLs”. Click on the Copy button next to the MaxBounty entry:


Your MaxBounty Postback URL will be different from what you see in the screenshot, so copy the URL that you see listed in your account after going to the Postback URL Tool.

Every affiliate network is a bit different in terms of how and where you add your Postback URL, but with MaxBounty you would add it one time by clicking on the User Icon, then select Global Postback and it will be used for all your offers:



With other networks you may need to add the Postback URL to each specific offer.

If you have the choice of adding the Postback URL just once in a global setting, we strongly recommend doing that so you can set it once and forget about it.

Also, when you add your Postback URL you may have to select a “type” to go with it (as shown in the MaxBounty example). Each affiliate network is a bit different, but always choose the option that says something like URL, Postback URL, etc. and never select pixel, iframe, HTML, etc.

If you can’t figure out where to add your Postback URL in your affiliate account to track your sales, just ask your affiliate manager or contact their customer support and they can tell you.
Troubleshooting your MaxBounty Postback URL Integration

If you run in to any problems, we built the ClickMagick Postback Log just for you!

You’ll find it in the Tools menu and it will provide you with all the info you need to figure out the problem.

If you still can’t figure out what’s wrong after using the Postback Log, please submit a ticket to our Helpdesk with all the relevant details and we’ll be happy to take a look.

Please be sure to explain exactly what you’ve done based on the three steps in this tutorial (with screenshots if possible) and what’s not working as expected.

Remember, the more details you provide, the better we’ll be able to help.

CJ Affiliate (formerly known as Commission Junction) supports both Postback URLs (aka server to server tracking) and Tracking Pixels. We recommend using a Postback URL, as it is the most accurate method.

To track your CJ Affiliate sales using a Postback URL, simply create your tracking link and insert your Commission Junction affiliate link into the Primary URL.

Next, click on the menu and choose the option to add the Click ID to your affiliate link. That will automatically add the correct Postback URL tracking code to the end of your Commission Junction affiliate link:

CJ Affiliate needs to manually “approve” your account on their end in order to use Postback URLs, so you’ll need to contact them and let them know you want to set up a Postback URL.

They will ask you for your Postback URL, at which time you simply give them the custom Postback URL that you can find by going to the Postback URL Tool. You can always find the Postback URL Tools in the Campaigns or Tracking Links Tools menu under the subheading “Postback URLs”.

Click on the Copy button next to the Commission Junction entry:

They’ll also ask you which variables you want passed to your Postback URL.

These are shown in the Postback URL you give them, but you can confirm that you want the Sub-ID passed in the {url(sid)} location, and you want your commission amount passed in the {commission} location of the URL.

Once they set you up on their end, you should start seeing your CJ Affiliate sales in ClickMagick!

JVZoo doesn’t yet support industry-standard Tracking Pixels or Postback URLs so tracking conversions with JVZoo requires that you use Sub-IDs. This walkthrough will explain exactly how to set up a JVZoo product offer using Sub-IDs.

For example, let’s assume that you’re promoting an offer through JVZoo and your link looks like this:

To track conversions, you need to pass a unique Sub-ID to your JVZoo affiliate link by adding ClickMagick’s [clickid] token to the end of the URL like this:[clickid]

You would use this modified JVZoo link as your Primary URL when creating a ClickMagick tracking link for a particular affiliate offer.

Once you’ve added ?tid=[clickid] to the end of your affiliate link, ClickMagick will replace the [clickid] token with a unique number every time someone clicks on your tracking link. When JVZoo gets the click, it will record the value of the click ID in the tid column of your JVZoo stats along with your clicks and sales.

Syncing ClickMagick with JVZoo

To sync ClickMagick with JVZoo, you’ll need to manually download your conversion report from JVZoo occasionally and import it into your ClickMagick account.

Just follow these steps:
1.    The first thing you’ll need to do is export your transaction information from JVZoo. To do that, simply go the Affiliates menu at the top of the screen and select Transactions. From there, click on the Export button shown here on the lower right side of this screenshot:


Save the file where you can easily find it.
2.    Before you can import the data file into ClickMagick, you’ll need to edit the file slightly using a spreadsheet program like Microsoft Excel, Google Sheets, or Apple Numbers.

Specifically, you’ll need to rearrange the columns so that the first three columns are in this order: tid, payout, and completed (which holds date/time values). Delete all other columns and be sure to save the file in CSV format. If you save the file in Excel, Sheets, or Numbers format, it will NOT import into ClickMagick.
Tip: If you have any trouble rearranging the columns in your spreadsheet program, search the help documents for your spreadsheet—it’s usually quite simple to rearrange columns once you know how. If you still have trouble, contact us at our Helpdesk which you can find in the Help menu at the top of every page. Be sure to attach the file you exported from JVZoo so we can edit it for you.
Note: The JVZoo export feature sometimes leaves the tid value empty for sales that have been made even though those same sales show a tid value in your JVZoo transaction report. If you see a blank entry in the tid column for a particular sale, simply look at your JVZoo transaction report and manually copy the value to the spreadsheet. You might also want to mention the problem to the JVZoo support desk to alert them that this problem still exists.
The next step is to import your data into ClickMagick. Do this by going to the tracking link you want to update, then click on the Tools menu and select “Offline Conversions”.

4.    From the Offline Conversions page, you can upload a single conversion or select your “Bulk Upload” to upload a file and click the Record Sale button. If you edited your file correctly and saved it in CSV format, your data should be imported and all of your stats should show accurately.


Caution: It’s important to remember that the sales and revenue-related stats you see in ClickMagick will only be accurate when you select a date range that exactly matches the date range of the conversion reports you’ve uploaded.
If you follow these steps, you should have no trouble importing your JVZoo data into ClickMagick.

That said, this entire process could be fully automated if JVZoo were to support industry-standard pixels and Postback URLs. If you’re interested in having this process fully automated, kindly asked your JVZoo representative to have pixel and Postback URLs supported by their system.

To begin tracking Hotmart sales in ClickMagick, just follow the steps below:

Step 1 - Add Your Postback URL to HotMart

Head to the Postback URL Tool which you can find in the Campaigns or Tracking Links Tools Menu under the Postback URLs sub-menu. Click on the "Copy URL" button next to HotMart"


In Hotmart, head to the Tools page and click on "Webhook" then click on the plus icon to add your Postback URL:


Step 2 - Add a Click ID or Visitor ID to Your Affiliate Links

If you are using Tracking Links, paste your Hotmart affiliate link in the Primary URL Field then click on the menu and select Hotmart to automatically add the correct affiliate ID parameter.


If you are using Campaigns, then you'll head to the Affiliate Link Builder, select Hotmart, set type to Campaigns, enter your affiliate link and click update:


The updated affiliate link is what you'd use on your landing pages with Campaigns.

That's it! Once you start sending traffic to your Hotmart links, ClickMagick will automatically record the sales made.

If your network isn’t listed here, that means your network follows the standard setup using Postback URLs. To set up a standard Postback URL to track affiliate sales, follow the instructions in this article: 

How do I track sales using Postback URLs?

While generally not recommended, you can also track affiliate sales using tracking pixels if your affiliate network supports it. Postback URLs are more accurate, but if you ever need to use tracking pixels you can learn more in the articles below:

How do I track conversions with Tracking Links and Tracking Pixels?

How do I track Campaigns conversions with a standard image pixel?

Article 749 Last updated: 09/20/2022 11:01:16 AM