Skip to main content
All CollectionsIntegrationsClickbank
ClickBank Integration Setup
ClickBank Integration Setup

Learn how to setup the ClickBank integration.

Updated over a week ago

👋 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.


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.


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:

Login to your Cometly account

  • Navigate to Space Settings > Integrations

  • Select 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:

  1. Navigate back to Cometly to the ClickBank integration page, copy the webhook, and paste the Webhook in the Tracking Pixel URL Box.

  2. For 'Track As', choose 'Affiliate'

  3. For 'Where to Fire', choose 'Order Form'

  4. 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 'Setup'

In Step 1, copy the Cometly base code:

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:

  1. Your Cometly code is in the footer of your landing page

  2. You have no other custom scripts on your landing page

  3. Depending on your offer you may have to use a different URL parameter, instead of ?utm_campaign= try ?tid=

  4. 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 'Setup'

In Step 1, copy the Cometly base code:

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:

  1. Your Cometly code is in the footer of your landing page

  2. You have no other custom scripts on your landing page

  3. Depending on your offer you may have to use a different URL parameter, instead of ?utm_campaign= try ?tid=

  4. 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 accounts

Connect your ad accounts to Cometly and assign the ad accounts to your space.

Connecting Ad Platforms to Your Account

To setup your ad tracking, connecting your ad platforms to Cometly is a key step. Here's how you can do it:

  1. Navigate to Space Settings: First, access your Cometly dashboard and head to the Space Settings page. Click on the Ad Channels tab and choose the ad platform you want to connect ad accounts for.

  2. Manage Connections: Click on the "Manage Connections" link. This action will direct you to the profile integrations page.

  3. Connect to Ad Channels: On the profile integrations page, you’ll see various ad channels listed. To connect to an ad channel, click the blue "connect" button next to the Ad Channel you wish to link.

  4. Accept on Ad Channel Platform: After clicking "connect," you'll be redirected to the respective ad channel’s platform. Here, simply click "Accept" to authorize the connection.

  5. Return to Cometly: Once you accept, you’ll be redirected back to Cometly, where the ad channel will now be connected to your account.

Connecting Your Ad Accounts to your space

After successfully connecting your ad channels, the next step is to link specific ad accounts to your workspace.

  1. Return to Space Settings: Go back to the Space Settings page on your Cometly dashboard.

  2. Connect Ad Accounts: You'll see a list of ad accounts. Click the green "Connect" button next to the ad account you wish to link to the workspace for a specific business.

  3. Confirmation: Once clicked, the ad account will be connected to your workspace, and you're ready to start managing your ads through Cometly.

Your Cometly space is now fully set up with connected ad platforms and ad accounts.

Step 7: Import active campaigns and turn on tracking

Cometly only tracks data from NEW ad campaigns that you've created AFTER setting up your Cometly account. In order to track old campaigns, you need to toggle tracking on for those campaigns using the Import Campaigns feature in the app.

The Import Campaigns page is a tool that allows Cometly to track existing campaigns that were created before you had Cometly. Cometly cannot track retroactively, so all metrics will be tracked starting at the moment that you turn tracking “ON”.

This action only has to be done when you first connect an ad account to your Cometly space. Every campaign that you launch after you import your active campaigns will automatically track inside Cometly.

Important: After turning tracking on, it can take 30-60 minutes for your data to start appearing inside of Cometly.

Follow the steps below to find out how to turn tracking “ON” for existing campaigns:

Navigate to the Import Campaigns tab in Space Settings

Select the ad account containing the campaigns that you wish to track

Select the campaign status “ALL”

  • If you select “Tracking”, the Import Campaigns page will only populate the campaigns that you have already turned on tracking for

  • If you select “Not Tracking”, the Import Campaigns page will populate all of the campaigns that you have not turned on tracking for

Select the date range

The Import Campaigns page will pull in all of the campaigns in your selected ad account that you launched between your "start date" and your "end date."

  • The start date should be from BEFORE you launched the oldest ad you wish to track (i.e. If your oldest ad was launched 30 days ago, pick a start date of 31 days ago)

  • The end date should be today’s date

Click the “Update” button, and turn tracking “ON” for your campaigns that you wish to track with Cometly

PRO TIP: If you click the top bar where it says “Delivery”, all of your “Active” campaigns will be filtered to the top

If you see red dots next to your campaigns after the first data refresh (wait 60 minutes), you likely have an issue with your URL configuration on your ads.

Check out the following articles that outline how to troubleshoot URL parameter setup errors:

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:



Did this answer your question?