Skip to main content
All CollectionsTroubleshootingIntegrations Troubleshooting
BuyGoods: View Content and LP CTR % metric is not showing
BuyGoods: View Content and LP CTR % metric is not showing

Learn how to fix when BuyGoods view content events and LP CTR % metric is not showing in Cometly.

Updated this week

If you're using the BuyGoods integration and the View Content (visitors) 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.

What Are These Metrics For BuyGoods?

  • View Content (Visitors):
    Visitors that visit your BuyGoods VSL/TSL.
    ​

  • LP CTR % (Landing Page Click-Through Rate):
    This metric is calculated by dividing the total number of View Content events by the number of link clicks.

Why Are These Metrics Missing?

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

  1. The Cometly Pixel is not properly installed on your landing page.

  2. You did not add the Scripts to the BuyGoods offer as outlined in Step 3 and Step 4 of the BuyGoods integration article.

  3. Though you have placed scripts on the BuyGoods offer, the BuyGoods offer you are running does not support scripts that are added.


How to Fix It

Step 1: Check the Cometly Pixel

Ensure the Cometly Pixel is installed in the <head> section of your landing page. Without the pixel, no events will be tracked. You can retreive the Cometly Pixel for your space by visiting Space Setup > Install & Verify Cometly Pixel
​

Step 2: Verify that you have added the Cometly scripts in Step 3 and 4 of the BuyGoods integration article

You did not install the Scripts to the BuyGoods offer as outlined in Step 3 and Step 4 of the BuyGoods integration article. Please review those steps and ensure the scripts have been placed. If the scripts are there, please go to the next step.

Step 3: Scripts have been placed on the BuyGoods offer, however the BuyGoods offer you are running does not support scripts

Though you have placed scripts on the BuyGoods offer, the BuyGoods offer you are running does not support scripts that are added. Certain offers may not support scripts (they don't load the scripts), even though the scripts have been placed on the offer. Add an additional tracking code below if you have had over 30 visitors in BuyGoods since setting up Cometly and do not see any View Content events in Cometly.


Adding the Tracking Code

Go to your landing page and hover over the button URL (or clickable image URL) and get that URL.

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.

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

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

Add the updated code to your landing page, placing it before the </body> tag (commonly referred to as the "footer" area in most web page builders).

When you add the script above, any time a site visitor clicks on the button or clickable image on your landing page, a View Content event will be fired automatically. You can use the Cometly Pixel Helper to ensure the View Content event is firing properly when a button is clicked.

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

Did this answer your question?