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

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

> Fix BuyGoods View Content not showing in Cometly, and the LP CTR metric that depends on it, by checking your pixel and your offer scripts.

If you use the BuyGoods integration and the **View Content** (visitors) metric or the **LP CTR** (Landing Page Click-Through) metric is not displaying, the cause is usually the View Content tracking. An event is an action Cometly records, such as a page visit or a purchase, and BuyGoods View Content not showing in Cometly means that event is not reaching Cometly from your offer.

LP CTR is calculated from the total number of View Content events, so when View Content is missing, LP CTR is missing too. Fix View Content and both metrics come back.

## What these metrics mean for BuyGoods

* **View Content (visitors):** visitors to your BuyGoods VSL/TSL.
* **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 small tracking script that records visitors) is not properly installed on your landing page.
2. You did not add the scripts to the BuyGoods offer, as described in the steps "Install the Cometly pixel in your BuyGoods offer" and "Track VSL and checkout metrics" of the [BuyGoods integration](https://docs.cometly.com/integrations/platforms/buygoods.md) guide.
3. You added the scripts to the BuyGoods offer, but the offer you are running does not support them.

## 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 scripts on your BuyGoods offer**

Review the steps "Install the Cometly pixel in your BuyGoods offer" and "Track VSL and checkout metrics" of the [BuyGoods integration](https://docs.cometly.com/integrations/platforms/buygoods.md) guide and make sure the scripts are in place on the offer. If they are, go to the next step.

**3. Check whether your BuyGoods offer supports scripts**

Certain offers do not load the scripts, even though you placed them on the offer. If you have had over 30 visitors in BuyGoods since setting up Cometly and still see no View Content events in Cometly, add the additional tracking code below.

## Add the tracking code

1. Go to your landing page, hover over the button (or clickable image) that links to the offer and note its URL.

2. Identify the **root domain** of your BuyGoods affiliate link.

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

3. 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>
   ```

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

## Confirm BuyGoods View Content is showing in Cometly

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. The Pixel Helper lists each event that fires on the page under **Events**.

Once these steps are completed, your **View Content** and **LP CTR** metrics should begin displaying in Cometly.

## Frequently asked questions

### Where do I add the View Content script in BuyGoods?

In BuyGoods, open your offer dashboard, click **Settings**, then click **Funnel pixels**. Paste the script under the Cometly pixel in the **Lander/VSL** section and click **Save**. The [BuyGoods integration](https://docs.cometly.com/integrations/platforms/buygoods.md) guide shows each screen.

### Do I need to add the Cometly scripts to every BuyGoods offer?

Yes. If you run multiple offers, add the Cometly pixel and the scripts to each one. Offers in the same Cometly space (a separate workspace in your account) use the same pixel, and an offer you run in a different space needs that space's pixel.

### Will Cometly show View Content data from before I fixed the tracking?

No. Cometly starts displaying event data from the moment tracking is in place, and past data cannot be retrieved retroactively. Your View Content and LP CTR numbers count from the point the event starts firing.

## Next steps

* [Review the full BuyGoods integration setup](https://docs.cometly.com/integrations/platforms/buygoods.md)
* [Test your pixel and events with the Cometly Pixel Helper](https://docs.cometly.com/guides/tracking/pixel-helper.md)
* [Configure your Ads Manager to show the BuyGoods metrics](https://docs.cometly.com/guides/ads-manager/overview.md)
* [Troubleshoot BuyGoods sales that do not show in Cometly](https://docs.cometly.com/support/troubleshooting/integrations/buygoods-missing-sales.md)
* [Fix double BuyGoods sales reported in Cometly](https://docs.cometly.com/support/troubleshooting/integrations/buygoods-double-sales.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.