Start Here 👋
This article will help you setup the BuyGoods integration with Cometly. 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 Cometly is tracking correctly.
Important: Ignore the Setup section in Cometly if you want to track BuyGoods sales data. BuyGoods 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 BuyGoods Integration Troubleshooting section at the bottom of the article for common solutions.
Understand the metrics you will track
Our BuyGoods Integration will track the following metrics:
Please view the table below to understand how Cometly tracks key BuyGoods metrics.
BuyGoods Metrics | Cometly Metrics |
Visitors → | View Content |
Checkouts → | Initiate Checkout |
Purchase → | Purchase |
| LP CTR (Landing page click-through rate) |
View Content - visitors that visit your BuyGoods VSL/TSL
Initiate Checkout - visitors that reach your BuyGoods checkout
Purchase - visitors who purchased and your commission amount
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 these metrics.
Step 1: Add the Cometly Postback URL to BuyGoods
In this step you are going to retrieve the BuyGoods Postback URL from within your Cometly account and add to your BuyGoods account.
In your Cometly account, navigate to the Integrations page in your Cometly space and scroll down to the Connections section.
Click Add Integration
Select BuyGoods as your integration and click Next
Activate BuyGoods integration
Copy the Postback URL
Login to your BuyGoods account and navigate to your "AffOverview" page. You can navigate here by clicking the below link:
Once you are on that page, in the top right corner, click your name and then click "Postback Pixels"
On the postback Pixels page, click 'Add new'
Paste in the Cometly Postback URL, make sure the Status is "Active" and the Event is "Purchase" and then click "Save"
⚠️ Warning ⚠️
DO NOT set up a "postback" pixel on the specific OFFER settings or else purchases will fire TWICE. Only put it on the main "AffOverview" page as we mention above.
Step 2: Add scripts to your landing page
You need to add the scripts below to your landing page. You can add the scripts to any landing page builder as long as they have the option to add scripts to the <head> and <footer> or <body> of the landing page. You will also edit your offer URL to setup the BuyGoods conversion API in this step.
If you are using ClickFunnels for your landing page, while in the editor for the funnel step, click 'Settings' > 'Tracking Code'.
Header Codes:
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
Install the Cometly base code pixel into the <head> section on your landing page.
Footer Codes:
Add both scripts below to the </> FOOTER CODE section:
<script src="https://app.cometly.com/affiliate/buygoods"></script>
<script type="text/javascript" src="https://buygoods.com/js/facebook_link_manager.js"></script>
Set Up Conversion API Parameter to send the fbclid (facebook click id)
For us to send the data back to Facebook, please add the following code onto the end of any offer URL that is on your landing page:
&fb=1
Here is an example:
Install Meta pixel in the <head> code of your landing page
Ensure you have installed the Meta pixel to the <head> code in your landing page. The Meta pixel should be ABOVE the Cometly base code pixel.
Step 3: Install Cometly base code pixel in the code section of your BuyGoods offer
If you are running multiple offers, you will need to complete this setup for each offer.
Important: Each Cometly space has a unique Cometly pixel associated to the space. If you're running multiple offers in the same Cometly space, you can use the same Cometly pixel for the setup. If you're using different spaces in Cometly for your BuyGoods offers, then each space will have a unique pixel that you will need to setup for the corresponding offer you are running in that space.
Login to your Cometly account, and click Space Setup > Install & Verify Cometly Pixel
Copy the Cometly base code pixel
In BuyGoods, open up your offer dashboard and click Settings
Click Funnel Pixels
Paste the Cometly Base Code in the Lander/VSL section and the Checkout section
Step 4: Track VSL and Checkout metrics
To track how many people reach your VSL (Sometimes known as a 'Hop') or to track how many people reach your Checkout (Sometimes known as an "OFI" or 'Order form impression) please follow the below:
Paste the following additional scripts under the Cometly Base Code:
Lander/VSL - will send trigger the View Content event when a visitor lands on the VSL page
<script>
comet('view_content');
</script>
Checkout - will send trigger the Initiate Checkout event when a visitor lands on the checkout page
<script>
comet('initiate_checkout');
</script>
Step 5: Add URL parameters to your ads for traffic going to BuyGoods offers
BuyGoods has a specific setup and uses specific UTM parameters found in this article. Follow this article step-by-step for implementation.
The following URL parameters are required for tracking BuyGoods purchases with Cometly:
Meta
Copy/paste the below URL parameters to your Meta ads in the "URL Parameter" section on your Meta ads:
subid={{ad.id}}&c_ad_id={{ad.id}}&c_source=facebook&comet_source={{site_source_name}}&comet_ad_id={{ad.id}}&comet_placement={{placement}}
TikTok
Add the following URL parameters to your Website URL:
subid=__CID__&c_ad_id=__CID__&c_source=tiktok&comet_source=tiktok&comet_ad_id=__CID__
Cometly needs the following URL parameter code attached to the end of every Website URL in the 'Tracking Template' section of each of your regular Google ad campaigns that are not Smart Campaigns:
{lpurl}?subid={{ad.id}}&c_source=google&c_ad_id={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 UTM parameters listed above.
Once those parameters have been pasted, you can click "Apply" to apply those changes.
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 Purchase data to the ad platforms
Turning on the conversion API in your Cometly space will automatically send event data back to Meta.
Setup Cometly Conversion API
In your Cometly account, navigate to Events Manager, click Conversion API.
Select "Send only attributed events" and then click "Save"
Setup BuyGoods Conversion API
Please follow the steps on BuyGoods help article to further set up the conversion API inside BuyGoods. This must be setup to send enhanced Purchase conversions to Meta and Google.
Troubleshooting BuyGoods Integration Setup
Below are the common issues our support team sees when Cometly users are setting up the BuyGoods integration:
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 BuyGoods 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 BuyGoods 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. The article below addresses why the View Content and LP CTR % metrics might not display when using the BuyGoods integration. It provides steps to verify the Cometly Pixel installation and instructions for adding a custom tracking script to your landing page to ensure these metrics are recorded correctly. Following the guide ensures accurate tracking of user interactions and metrics.
Data in Cometly does not match Facebook
If the data in Cometly doesn’t match what you see in your Facebook Ads Manager for BuyGoods campaigns, the issue is likely due to timezone differences.
BuyGoods Reporting Sales, No Sales In Cometly
Learn how to troubleshoot when BuyGoods is reporting sales but there are no sales reporting in Cometly. It's important to note there is a small data delay as Cometly takes between 15-30 minutes in some cases to display BuyGoods sales. If it has been more than 30 minutes and there is an ad.id
for the sale in the BuyGoods dashboard, you have missed a critical setup step that is causing Cometly not to track. Cometly currently does not display sales from BuyGoods that do not have an ad.id
.
Double BuyGoods Sales Reported In Cometly
If you are seeing double sales in Cometly, you have likely added the BuyGoods Cometly Webhook twice in your BuyGoods account (added both in the AffOverview page and the individual offer area). In Step 1, we specifically instruct to only add the BuyGoods Cometly Postback URL to the account wide in the AffOverview. Use the article below to learn how to troubleshoot.