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

# ThriveCart integration

> Set up the ThriveCart Cometly integration to send every ThriveCart order to Cometly, so you can see which ad or channel produced each sale.

The ThriveCart Cometly integration sends each new order from your ThriveCart checkout to Cometly as an event (a recorded action, such as a purchase). You add a Cometly webhook URL in ThriveCart, then install the Cometly pixel (the tracking script that records visits) on your ThriveCart pages.

With both in place, Cometly can match each ThriveCart order to the visitor who placed it and to the ad or channel that brought them. You see which campaigns produce sales and revenue, not only clicks.

## Step 1: Add the Cometly webhook URL in ThriveCart

1. In Cometly, click **Integrations** in the sidebar.

   ![Cometly Apps and Integrations page with ThriveCart typed in the search box and an arrow pointing to the Connect button on the ThriveCart card](https://mintcdn.com/cometly/alvP4_0ekdK-CBm_/images/integrations/platforms/thrivecart/01.webp?fit=max\&auto=format\&n=alvP4_0ekdK-CBm_\&q=85\&s=10707f8a6738f269655938866b3948df)

2. Search for **ThriveCart** and click **Connect** on the ThriveCart card.

3. Click **Activate ThriveCart**, then click **Copy** next to the webhook URL.

4. Under **Map ThriveCart events to Cometly**, choose which Cometly event ThriveCart orders should be mapped to, then click **Save**.

5. In your ThriveCart account, go to **Settings** and click **API & webhooks**.

6. Click **View settings** in the **Webhooks & notifications** section.

7. Configure your webhook URL in ThriveCart:

   * Name the webhook "Cometly".
   * In the **Webhook URL** box, paste the Cometly webhook URL.
   * Check **Receive results as JSON**. This has to be checked or the webhook will not send.
   * Click **Save this webhook**.

   ![ThriveCart webhook form with the name Cometly, the Cometly webhook URL and Receive results as JSON checked](https://mintcdn.com/cometly/alvP4_0ekdK-CBm_/images/integrations/platforms/thrivecart/06.webp?fit=max\&auto=format\&n=alvP4_0ekdK-CBm_\&q=85\&s=9dc996e4fdecd4a5424dbcd5f3a95d39)

## Step 2: Install the Cometly pixel on your ThriveCart pages

Copy the Cometly pixel from **Setup** > **Install the Cometly pixel** in your Cometly space (see [Install the pixel](https://docs.cometly.com/getting-started/install-pixel.md)), so you can add it to your ThriveCart pages.

> [!WARNING]
>
> The Cometly pixel has to be installed on every product and upsell in ThriveCart.

1. On your product in ThriveCart, click **Checkout**, then click **Tracking**.

2. Scroll down to **Custom tracking code** and paste the Cometly pixel into **All pages: Paste tracking code to add to all of this product's pages**.

3. Add the initiate checkout event to **Checkout page: Paste tracking code to add only on your checkout page**:

   ```html theme={null}
   <script>
   comet('initiate_checkout');
   </script>
   ```

4. Make sure the checkbox **Only run this code the first time the customer gets to the success page** is unchecked.

## Check it worked

In Cometly, the ThriveCart page shows **ThriveCart activated**. After the next live order in ThriveCart, click **Events Manager** in the sidebar and open the **Events Log** tab: the order appears there with the event you chose under **Map ThriveCart events to Cometly**.

## Frequently asked questions

### Why do ThriveCart test orders not show in Cometly?

Cometly only records successful orders placed in ThriveCart's live mode. Orders placed in test mode are ignored, so they never appear in the **Events Log**. To check the integration end to end, place a real order on a live product.

### Does Cometly track ThriveCart bumps and upsells?

Yes. A bump is added to the main order, so the order and its bump arrive in Cometly as one purchase with the combined amount. An upsell is recorded separately from the main order and marked as an upsell.

### What happens if my ThriveCart checkout uses a different currency than my Cometly space?

Cometly converts the order amount from the currency ThriveCart reports into the currency of your space (the workspace that holds one business's tracking data). Your revenue figures stay in one currency, whatever currency the customer paid in.

## Next steps

* [Set up Add to Cart and Initiate Checkout events](https://docs.cometly.com/guides/events/add-to-cart-and-initiate-checkout.md)
* [Use the Events Log to inspect incoming ThriveCart orders](https://docs.cometly.com/support/troubleshooting/general/event-log.md)
* [Send your ThriveCart purchases to the ad platforms with the Conversion API](https://docs.cometly.com/guides/conversion-api/overview.md)
* [Configure your Ads Manager to show purchases and revenue](https://docs.cometly.com/guides/ads-manager/overview.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.