Skip to main content
BuyGoods Integration

Learn how to setup the BuyGoods integrations to track purchases back to the correct ads.

Updated this week

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.


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.

Important: Ignore the Getting Started section in Cometly if you want to track BuyGoods sales data. BuyGoods has a specific setup and uses specific UTM parameters found in this article. Follow this article step-by-step for implementation.


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.

Navigate to the Integrations page in Space Settings and choose BuyGoods as your integration:

Click Activate BuyGoods

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 'Getting Started' on the left and then Copy the code under "Step 1"

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 'Getting Started' on the left and then Copy the code under "Step 1"

Click Copy Code to copy your Cometly base code

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__

Google

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 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 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 UTM configuration on your ads.


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 Space Settings, click Events Manager and click "Configure 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.

Did this answer your question?