👋 Start Here
This article will help you setup the ClickBank integration in your Cometly account. Please follow the instructions in the video below for the quickest setup and make sure you read through the important setup steps and watch all instructional videos to ensure your Cometly account is tracking correctly.
Important: Ignore the Setup section in Cometly if you want to track ClickBank sales data. ClickBank has a specific setup and uses a specific URL parameter found in this article. Follow this article step-by-step for implementation.
If you encounter any issues after completing the integration setup, refer to the ClickBank Integration Troubleshooting section at the bottom of the article for common solutions.
Step 1: Understand the metrics you will track
Please start by reading this section to understand exactly how metrics in ClickBank are displayed in Cometly.
Our ClickBank Integration will track the following metrics:
Please view the table below to understand how Cometly tracks key ClickBank metrics.
ClickBank Metrics | Cometly Metrics |
Hops → | View Content |
Order Form Impressions (OFI's) → | Initiate Checkout |
Purchase → | Purchase |
| LP CTR (Landing page click-through rate) |
View Content: In ClickBank, a "hop" refers to the action of a potential customer clicking on an affiliate link. Inside Cometly this metric is called a View Content. This link is unique to each affiliate and is used to track the source of traffic to a product's sales page. When a user clicks on this link, a "hop" is recorded, indicating that the affiliate has successfully directed traffic to the vendor's product page.
Initiate Checkout: In ClickBank, a 'Order Form Impression (OFI)' refers to the number of times the ClickBank order form has been displayed. This is an important metric for both vendors and affiliates, as it indicates how many potential customers have reached the point of possibly making a purchase. A high number of OFIs suggests effective marketing efforts leading up to the point of sale.
Upsell Purchase - the number of such transactions that are upsells during checkout
Upsell Revenue - a subset of your total sales revenue. It specifically accounts for the revenue generated from upsells in your funnel, or when they add extra items to their purchase.
Gross Revenue is the total revenue generated. Upsell Revenue is automatically included in the Gross Revenue. When you calculate your Gross Revenue, you're aggregating all income from sales, and this naturally includes the additional revenue gained from upsells. In other words, Upsell Revenue is a component that contributes to the overall Gross Revenue figure.
Cost Per Upsell - a metric that calculates the average advertising expenditure required to generate one upsell purchase. It is determined by dividing the total amount spent on ads by the number of upsell purchases achieved.
LP CTR - LP CTR or (Landing Page CTR %) is the total number of view content events divided by the number of link clicks.
Pro Tip: Now that you have an understanding of the metrics you will be using within Cometly, make sure you configure your Ads Manager to reflect the metrics above.
Step 2: Setup Webhook in ClickBank to track purchases
In this step, you will be adding a Webhook in your ClickBank account that will immediately send information to Cometly every time you receive a new purchase.
In your ClickBank account, navigate to Vendor Settings > My Site.
Scroll down on the My Site page to the Advanced Tools section and click Edit
Create a Secret Key by entering a combination of UPPER CASE LETTERS or numbers, up to 16 characters. Do not use any lowercase letters, spaces, or symbols, or you will receive an error.
Navigate to the ClickBank integration inside your Cometly space to paste & save your Secret Key inside Cometly. Follow the steps below:
In your Cometly account, navigate to the Integrations page in your Cometly space and scroll down to the Connections section.
Click Add Integration
Select ClickBank as your integration and click Next
Activate ClickBank integration
Paste your Secret Key in Cometly and click Save.
Copy the webhook inside Cometly and navigate back to ClickBank in your other tab.
Paste the webhook in the Instant URL Notification box and click Save Changes.
If the Instant Notification URL section says (request access), click request access link and select Yes for all of the questions. You will need to click on the checkbox to agree to the Terms of Service and click Save Changes & Request API Access.
After you save changes, you need to test & verify the Webhook, click Edit again to take you back to the Webhook setup.
Click TEST IPN and you should see that it is now verified.
Click Save Changes after you can confirm it has been verified like in the image below.
Step 3: Add Webhook as a tracking pixel in ClickBank to track checkouts
In this step, you will be adding a Webhook in your ClickBank account that will immediately send information to Cometly every time you a visitor views the checkout page or 'initiates a checkout'. In ClickBank this metric is called 'Order Form Impression', in Cometly the metric will be called 'Initiate Checkout'.
In your ClickBank account, navigate to Vendor Settings > My Site.
Scroll down on the My Site page to the Integrated Sales Reporting section and click Add Tracking Code
Choose Tracking Pixel and click Add
The following steps correlate to the image below to configure the Order Form tracking:
Navigate back to Cometly to the ClickBank integration page, copy the webhook, and paste the Webhook in the Tracking Pixel URL Box.
For 'Track As', choose 'Affiliate'
For 'Where to Fire', choose 'Order Form'
Click Save
By default the tracking code that you have added is Inactive. To make the tracking code Active, navigate back to Integrated Sales Reporting on My Site page and click the green play button as shown in the image below:
You can confirm the tracking code is active as the Status column will show as 'Active':
Step 4: Add code scripts to your landing page
In this step you will be adding code scripts to your landing page. It is very important that these code scripts are placed properly. Please read the instructions thoroughly.
Select the landing page builder below that you are currently using for your setup. We provide specific instructions for setting up the following landing page builders:
ClickFunnels-ClickBank Landing Page Setup Instructions:
Add Header Code
Add your Cometly base code and your Facebook pixel code to the </> HEADER CODE section:
Login to your Cometly account, and click Space Setup > Install & Verify Cometly Pixel
Copy the Cometly base code pixel
Navigate to your funnel in ClickFunnels and click Settings > Tracking Code
Add the Cometly base code pixel into the <head> section on your landing page.
Add your Meta pixel in the <head> section on your landing page
Add Footer Codes:
Add both scripts below to the </> FOOTER CODE section:
Click Settings > Tracking Code
Click Footer and add the code below:
<script src="https://app.cometly.com/j"></script>
In the top right of the page editor, click Save to save your changes
When this code is added to your landing page, dynamic URL parameters from your ads will automatically pass forward to your ClickBank offer page and will trigger a View Content event every time a ClickBank affiliate URL is clicked. The View Content event will be considered a 'Hop' that you see inside ClickBank, which is any time a visitor has seen the offer sales page.
Important: Ensure you are using an encrypted ClickBank hoplink on your buttons or linked images for the Cometly code to successfully pass the URL parameters.
Test your landing page to ensure the Ad ID will pass to ClickBank offer
How to test your landing page to make sure the URL parameters are "passing through" to the ClickBank checkout
This video will walk you through how to test your own landing page to make sure the URL parameters from Facebook are "passing through" your landing page correctly and into ClickBank:
If your URL parameters are not passing through to the ClickBank checkout, please ensure the following:
Your Cometly code is in the footer of your landing page
You have no other custom scripts on your landing page
Depending on your offer you may have to use a different URL parameter, instead of ?utm_campaign= try ?tid=
You have an encrypted hop link on your landing page with no additional parameters added to the hop link. Use the exact encrypted hop link that ClickBank provides.
Hero AI-ClickBank Landing Page Setup Instructions:
Learn how to setup Hero AI landing pages with ClickBank tracking. Applying the instructions below will set up tracking for all landing pages within the site group within Hero AI. That means any landing page that you build within the site group will automatically have the codes applied.
Important: If you want to track BuyGoods and ClickBank at the same time (or any two affiliate networks at the same time), you will have to have a different site group within Hero AI as adding the codes below will apply the codes to all landing pages within the selected Hero AI site group.
Add Meta Pixel Code
Navigate to Pixel Code and add your Meta pixel.
Header Code:
Add your Cometly base code and your Facebook pixel code to the </> HEADER CODE section:
Login to your Cometly account, and click Space Setup > Install & Verify Cometly Pixel
Copy the Cometly base code pixel
In Hero AI, click Site Settings and paste the Cometly base code pixel.
Footer Codes:
Click Footer and add the code below:
<script src="https://app.cometly.com/j"></script>
Click Save Changes
When this code is added to your landing page, dynamic URL parameters from your ads will automatically pass forward to your ClickBank offer page and will trigger a View Content event every time a ClickBank affiliate URL is clicked. The View Content event will be considered a 'Hop' that you see inside ClickBank, which is any time a visitor has seen the offer sales page.
Important: Ensure you are using an encrypted ClickBank hoplink on your buttons or linked images for the Cometly code to successfully pass the URL parameters.
Test your landing page to ensure the Ad ID will pass to ClickBank offer
How to test your landing page to make sure the URL parameters are "passing through" to the ClickBank checkout
This video will walk you through how to test your own landing page to make sure the URL parameters from Facebook are "passing through" your landing page correctly and into ClickBank:
If your URL parameters are not passing through to the ClickBank checkout, please ensure the following:
Your Cometly code is in the footer of your landing page
You have no other custom scripts on your landing page
Depending on your offer you may have to use a different URL parameter, instead of ?utm_campaign= try ?tid=
You have an encrypted hop link on your landing page with no additional parameters added to the hop link. Use the exact encrypted hop link that ClickBank provides.
Step 5: Setup URL parameters on your ads
Setup URL Parameters on your Meta Ads For ClickBank
The following URL parameter is required on every Meta Ad that you want to track with Cometly:
utm_campaign={{ad.id}}&comet_source={{site_source_name}}&comet_ad_id={{ad.id}}&comet_placement={{placement}}
After you have completed adding the parameter to your ads, you can go ahead and publish your ads.
Setup Google Ads parameters for ClickBank
To accurately track ClickBank data with your Google Ads, Cometly needs the following URL parameter code attached to the end of every Website URL in the 'Tracking Template' section of each of your Google ads:
{lpurl}?utm_campaign=g_{creative}&comet_source=google&comet_network={network}&comet_campaign={campaignid}&comet_ad_group={adgroupid}&comet_ad_id={creative}&comet_keyword={keyword}
To set these up inside the Google Ads manager, navigate to Settings > Campaign Settings and select the campaigns that you want to track with Cometly.
Then click Edit > Change tracking templates.
Then you should see a box labeled New tracking template and this is where you will need to place the URL parameters listed above.
Once those parameters have been pasted, you can click "Apply" to apply those changes. This will put your ads back into review, but will not affect the delivery of the ad once the ad is approved.
Setup TikTok Ads parameters for ClickBank
Cometly needs the following URL parameter code attached to the end of every Website URL in the 'Website URL' section of each of your TikTok ads:
?utm_source=tiktok&utm_campaign=__CID__&comet_source=tiktok&comet_ad_id=__CID__
To set this up inside the TikTok Ads manager, navigate to the ad level and select an ad that you want to track with Cometly. There should be a section titled 'Destination page' with a box for 'Website URL':
Example:
If your landing page URL is:
https://www.example.com/lander
You need to add:
?utm_source=tiktok&utm_campaign=__CID__&comet_source=tiktok&comet_ad_id=__CID__
Your final Website URL should look like this:
https://www.example.com/lander?utm_source=tiktok&utm_campaign=__CID__&comet_source=tiktok&comet_ad_id=__CID__
After you have completed adding the parameter to your ads, you can go ahead and publish your ads.
Step 6: Connect your ad platforms to Cometly
Connect Your Profile to Cometly
Connecting your personal profile allows Cometly to access the ad accounts you have permission to use. Once your profile is connected, you can link those ad accounts to your space for tracking and reporting.
Go to Integrations:
On the left side menu, click Integrations.Select an Ad Platform:
Click the icon for the ad platform you want to connect (e.g., Facebook, Google, TikTok, LinkedIn).Sync Your Profile:
Follow the prompts to sync your profile and link your accounts.
Connect Ad Accounts to Your Space
After connecting your profile, click on the ad platform icons (Facebook, TikTok, Google, LinkedIn) to see the ad accounts you have access to. These accounts are linked to your personal profile, so only you can see and manage them.
Click Connect next to the ad account you want to add to the space.
Once connected, the ad account will appear under Connected Ad Accounts and be visible to all team members in the space.
Step 7: Data Expectations After Connecting Ad Accounts
After enabling tracking by connecting your ad account, it will take up to 60 minutes for data to refresh and appear in Cometly.
During this time, active campaigns won’t show in the Cometly Ads Manager. Once the data refreshes within the 60-minute window, all active campaigns will automatically appear.
Ad and event conversion data will begin displaying from the moment tracking is enabled. Past data cannot be retrieved retroactively.
Step 8: Configure Conversion API's To Send Data To Ad Platforms
Setup Facebook Conversion API on ClickBank for Cometly
The below video will walk you step-by-step and show you how to setup the Facebook conversion API inside your ClickBank account.
Setup Google Conversion API on ClickBank for Cometly
The video below explains step-by-step how to set up the Google Conversions API inside of your Clickbank account:
Troubleshooting ClickBank Integration Setup
Below are the common issues our support team sees when Cometly users are setting up the ClickBank integration:
Missing ClickBank Purchases In Cometly
If you had a sale in the past few days and it's not showing in Cometly, please see the troubleshooting guide below to ensure you have everything set up properly.
My active ad campaigns are not showing in Cometly
After enabling tracking by connecting your ad account, it will take up to 60 minutes for data to refresh and appear in Cometly. During this time, active campaigns won’t show in the Cometly Ads Manager. Once the data refreshes within the 60-minute window, all active campaigns will automatically appear. Ad and event conversion data will begin displaying from the moment tracking is enabled
Red Dots Next To Campaigns, Ad Sets, and Ads
If you see red dots next to your campaigns after the initial data refresh, it likely indicates an issue with your ad URL parameter configuration. Make sure you’ve applied the correct URL parameters to your ads. The ClickBank integration requires specific URL parameters that differ from those listed in the Space Setup. Be sure to use the parameters outlined in this article to ensure proper tracking.
View Content and LP CTR % metric is not showing
If you're using the ClickBank integration and the View Content (hops) metric or the LP CTR % (Landing Page Click-Through Rate) is not displaying, it's likely due to an issue with the View Content tracking. This is because the LP CTR % is calculated based on the total number of View Content events.
Data in Cometly does not match Facebook
If the data in Cometly doesn’t match what you see in your Facebook Ads Manager for ClickBank campaigns, the issue is likely due to timezone differences.
Data in Cometly does not match ClickBank
If you notice differences between your ClickBank data and Cometly data, it's likely due to timezone differences as ClickBanks data is default to Pacific timezone.
ClickBank TID not passing from landing page to offer
If your ClickBank TID is not passing from your landing page to your offer, you may not have placed the Cometly ClickBank script on your landing page. To solve the issue and see other troubleshooting steps, please visit the article below.