All Collections
Integrations
BuyGoods
How To Setup BuyGoods Integration
How To Setup BuyGoods Integration

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

Updated over a week ago

Important:

  1. Space Type: You need to use a Comet Events space type in order to use the BuyGoods integration. You may need to create a new space outlined in the instructions below.

  2. Connected Ad Account: If you want to use an ad account connected to another space, you will have to disconnect the ad account from the space and connect to your new Events space.

Step 1: Add the Cometly BuyGoods script to your landing page

First, you need to insert the script below in your landing page. Make sure to place it just before the </body> tag to ensure that it gets loaded properly.

If you are using ClickFunnels for your landing page, while in the editor for the funnel step, click 'Settings' > 'Tracking Code'.

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>

Step 2: Add the BuyGoods offer URL to your landing page

You can link any buttons or images on your landing page

Setup Steps:

  1. Get your BuyGoods offer URL from your BuyGoods account.

  2. Add your unique offer URL to any buttons on your landing page.

* the example below shows the BuyGoods offer URL on the button and the image.

Set Up Conversion API Parameter to send the fbclid (facebook click id)

To set up the conversion API, you need to add &fb=1 to you offer URL:

Here is an example:

https://glucofortnow.com/g-gluco/index.php?aff_id=XXXXX&fb=1

Please follow the steps on BuyGoods help article to further set up the conversion API

Step 3: 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.

Instructions

Important:

  1. You need to use a Comet Events space type in order to use the BuyGoods integration. You may need to create a new space outlined in the instructions below.

  2. If you want to use an ad account connected to another space, you will have to disconnect the ad account from the space and connect to your new Events space.

  1. Login to your Cometly account and navigate to your Events space. If you do not have an Events space, please create a new space:

  2. If you already have an Events space already you can skip this step. If you do not have an Events space, after you click 'Create Space', configure your timezone and currency, and choose 'Comet Events' for your space type:

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

  4. Click Activate BuyGoods

  5. Copy the Postback URL

  6. Login to your BuyGoods account and click your profile in the top right, then click 'Postback Pixels'.

  7. On the postback Pixels page, click 'Add new' and paste the the Postback URL, click 'Save'.

Step 4: Add UTM parameters to your ads

The following UTM parameters are required for tracking BuyGoods purchases with Cometly:

Meta

Add the following UTM parameters to your Website URL:

c_ad_id={{ad.id}}&c_source=facebook

Your Website URL in Meta should look like this:

https://www.yoursite.com/lander?c_ad_id={{ad.id}}&c_source=facebook

TikTok

Add the following UTM parameters to your Website URL:

c_ad_id=__CID__&c_source=tiktok

Your Website URL in TikTok should look like this:

https://www.yoursite.com/lander?c_ad_id=__CID__&c_source=tiktok

Google

Cometly needs the following UTM 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}?c_source=google&c_ad_id={creative}

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.

Change Tracking Template In Google Ads

Then you should see a box labeled New tracking template and this is where you will need to place the UTM parameters listed above.

New Tracking Template In Google Ads

Once those parameters have been pasted, you can click "Apply" to apply those changes.

Did this answer your question?