Knowledge Base      


How do I track sales in ThriveCart?


ThriveCart gives Vendors the ability to add tracking pixels to their order form pages and order summary pages.

To get started with tracking your sales in ClickMagick, follow the steps below.



1. Add Your Engagement and Sales Conversion Code Into ThriveCart

To add your sales conversion code in ThriveCart, just navigate to “Checkout” then select “Tracking” and check “Custom tracking code.”

In the “Checkout page” section you will add an Engagement Conversion Code, and in the Main Product section you will add your Sales Conversion Code.
 

 
Here is your Engagement Conversion Code for your accout:

 
<script>
    window.clickmagick_cmc = {
        uid: '[USERID]',
        hid: '[HID]',
        cmc_goal: 'e',
        cmc_ref: '',
    }
</script>
<script src='//cdn.clkmc.com/cmc.js'></script>



Here is your Sales Conversion Code for your account:

<script>
    window.clickmagick_cmc = {
        uid: '[USERID]',
        hid: '[HID]',
        cmc_goal: 's',
        cmc_ref: '',
        cmc_amt: _thrive_order.order.total_readable,
    }
</script>
<script src='//cdn.clkmc.com/cmc.js'></script>




2. Include ?cmc_vid=[cmc_vid] at the end of your checkout page link.

So for example, if your ThriveCart checkout page URL is:

https://[USERNAME].thrivecart.com/offer

Then you add ?cmc_vid=[cmc_vid], it should look like this:

https://[USERNAME].thrivecart.com/offer?cmc_vid=[cmc_vid]

Another way to create the link is by using the Campaign URL Builder to create your URL:
 




To track your sales when using tracking links, you will follow the steps below:

1. Add Your Sales Pixel Code to ThriveCart

To add your sales conversion code in ThriveCart, just navigate to “Checkout” then select “Tracking” and check “Custom tracking code.”

In the “Checkout page” section you will add Sales Pixel Code to the Main Product section.
 


Here is the Sales Pixel code for your account:

<script>
(function() {
var img = new Image();
img.width = 1;
img.height = 1;
img.src = '//www.clkmg.com/api/s/pixel/?uid=[USERID]&att=2&amt=' + (_thrive_order.order.total_readable) +
'&ref=';
document.body.appendChild(img);
})();
</script>


Article 596 Last updated: 06/24/2021 8:14:51 AM
https://www.clickmagick.com/kb/?article=596