Docs / Integration Tutorials /  

Thrivecart

Thrivecart Conversion Tracking And Attribution – How To Set Up

Attribute Thrivecart purchases to original customer sources to report marketing sources of all purchases, as well as to understand individual customer journeys.

Contents

Track Page Views and Purchases

Attribute Thrivecart purchases to original customer sources to report marketing sources of all purchases, as well as to understand individual customer journeys.

Thrivecart supports adding custom tracking scripts to checkout pages, which allows Able CDP to record visitor sources and track purchases. By installing the Able tracking code on Thrivecart checkout pages, Able associates each visitor's journey with the email and purchase details entered during checkout. This enables reliable attribution of conversions to the original customer source.

Track page views on checkout pages

To track visitor sources on your Thrivecart checkout pages, add the Able CDP tracking code to the "All Pages" script section:

  1. In your Thrivecart dashboard, navigate to your product's settings.
  2. Go to the Checkout tab and scroll down to the Tracking section (see Thrivecart documentation for details).
  3. In the Header/Tracking Code area, select the All Pages option.
  4. Paste your Able CDP tracking code, which you can find in the Get Code section of your Able Dashboard.
  5. Save the changes.

This ensures that Able CDP records the visitor's source and journey on all checkout pages, including the main checkout page, upsell pages, and the success page.

Track purchases

To track completed purchases and send order details to Able CDP, add a purchase tracking script to the success page:

  1. In the same Tracking section of your Thrivecart product settings, select the Main Product/Bump Offer Success option.
  2. Paste the following code (Note: %%FUNNEL_MARK%% must be replaced with the Able CDP identifier of your funnel, which you can find on the Get Code page of the Able Dashboard):
<script src="https://app.ablecdp.com/ue.js"></script>
<script>
window.addEventListener('DOMContentLoaded', function () {
  uipe('init', '%%FUNNEL_MARK%%');
  uipe('track', 'Purchase', {
    keys: { email: _thrive_order.customer.email },
    lead: { firstName: _thrive_order.customer.name },
    order_id: _thrive_order.order.id,
    deal_value: _thrive_order.order.total / 100,
    deal_currency: _thrive_order.order.currency
  });
});
</script>
  1. Save the changes.

This code fires on the success page after a purchase is completed. It uses Thrivecart's built-in _thrive_order object to capture the customer's email, name, order ID, total, and currency, and sends them to Able CDP as a Purchase event.

Next Steps

After Thrivecart purchases begin to appear in Able CDP under Customers — Purchases tab, set up one or a few of the supported outbound Purchase conversion integrations listed below. If you're currently sending Purchase events to the same service using another integration or tracking code, it's recommended to disable sending Purchase conversions with it and only send Purchase conversions using Able CDP Conversions API integration to prevent duplicates.


Thrivecart conversion tracking is commonly used with

References


This page has been written by the Able CDP Customer Success Team, formed of digital marketing practitioners and seasoned marketing data experts.
If you have any questions or suggestions, please contact us using the contact form.