> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cometly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ClickBank: View Content and LP CTR metrics are not showing

> Fix ClickBank View Content not showing in Cometly: check the pixel, the ClickBank script and your HopLink so hops and LP CTR appear again.

If you use the ClickBank integration and the **View Content** (hops) metric or the **LP CTR** (Landing Page Click-Through) metric is not displaying, the cause is usually the View Content tracking. LP CTR is calculated from the total number of View Content events, so when View Content is missing, LP CTR is missing too.

When ClickBank View Content is not showing in Cometly, you cannot see how many of the visitors an ad sent went on to click through to the offer. The checks below restore both metrics.

## What these metrics mean

* **View Content (hops):** in ClickBank, a "hop" is a click on an affiliate link that takes the visitor to a product's sales page. In Cometly, this is recorded as a **View Content** event (an event is an action Cometly records, such as a purchase). It is tracked automatically when your landing page uses a **ClickBank encrypted HopLink**.
* **LP CTR (Landing Page Click-Through):** the total number of View Content events divided by the number of link clicks.

## Why these metrics are missing

If View Content events are not being tracked, it is due to one of the following:

1. The Cometly pixel (the script on your site that tracks where your visitors come from) is not properly installed on your landing page.
2. The Cometly ClickBank script is not on your landing page.
3. You are not using a ClickBank encrypted HopLink on your landing page.

## How to fix it

**1. Check the Cometly pixel**

Make sure the Cometly pixel is installed in the `<head>` section of your landing page. Without the pixel, no events are tracked.

To get the pixel for your space, go to **Setup** > **Install the Cometly pixel** and click **Copy Code** under **Install the pixel**. See [Install and verify the Cometly pixel](https://docs.cometly.com/getting-started/install-pixel.md).

**2. Check the Cometly ClickBank script**

Make sure the Cometly ClickBank script is on your landing page, just above the `</body>` tag. It is this script that fires a View Content event when a visitor clicks a link to `clickbank.net`.

```html theme={null}
<script src="https://app.cometly.com/j"></script>
```

See the landing page tracking step of the [ClickBank integration](https://docs.cometly.com/integrations/platforms/clickbank.md) guide.

**3. Verify your ClickBank encrypted HopLink**

* If you use a ClickBank encrypted HopLink, Cometly tracks View Content events automatically. If you use one and still do not see View Content events firing, [contact support](https://docs.cometly.com/support/contact.md).
* If you do **not** use a ClickBank encrypted HopLink, add the tracking code below to your landing page.

## Add the tracking code

If your button or clickable image uses a custom link instead of a ClickBank encrypted HopLink, follow these steps:

1. Identify the **root domain** of your ClickBank affiliate link.

   Example: if your affiliate link is `https://mitolyn.com?aff=1&tid=`, the root domain is `https://mitolyn.com`.

2. Update the code below by replacing `https://mitolyn.com` with your root domain.

   ```html theme={null}
   <script>
       document.addEventListener('DOMContentLoaded', function() {
           var links = document.querySelectorAll('a[href*="https://mitolyn.com"]');
           links.forEach(function(link) {
               link.addEventListener('click', function() {
                   comet('view_content');
               });
           });
       });
   </script>
   ```

3. Add the updated code to your landing page, just before the `</body>` tag (commonly called the "footer" area in most web page builders).

With this script in place, a View Content event fires each time a visitor clicks the button or clickable image on your landing page. Use the [Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.md) to check that the View Content event fires when the button is clicked.

## Final checklist

* **Cometly pixel:** installed in the `<head>` section of your page.
* **Cometly ClickBank script:** installed just above the `</body>` tag.
* **ClickBank encrypted HopLink:** used on your page. If not, add the tracking code above.

## Confirm ClickBank View Content and LP CTR are showing

Open your landing page with the [Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.md) and click the button that links to your offer: a View Content event should fire. Once these steps are completed, your **View Content** and **LP CTR** metrics should begin displaying in Cometly, against your ads in the Ads Manager.

## Frequently asked questions

### What does the Cometly ClickBank script do on my landing page?

It does two things. It passes the dynamic UTM parameters from your ads forward to your ClickBank offer page, and it fires a View Content event every time a visitor clicks a ClickBank affiliate link. Both rely on an encrypted ClickBank HopLink on your buttons or linked images.

### Which ClickBank metrics does Cometly track?

ClickBank hops appear in Cometly as View Content, Order Form Impressions (OFIs) appear as Initiate Checkout, and purchases appear as Purchase. Cometly also calculates LP CTR from your View Content events and link clicks.

## Next steps

* [Set up the ClickBank integration](https://docs.cometly.com/integrations/platforms/clickbank.md)
* [Test your events with the Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.md)
* [Install and verify the Cometly pixel](https://docs.cometly.com/getting-started/install-pixel.md)
* [Fix ClickBank purchases missing in Cometly](https://docs.cometly.com/support/troubleshooting/integrations/clickbank-missing-purchases.md)
* [Fix the ClickBank TID not passing](https://docs.cometly.com/support/troubleshooting/integrations/clickbank-tid-not-passing.md)

Still have questions or need a hand? We're happy to help. Reach our team at [support@cometly.com](mailto:support@cometly.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.