Add Tracking Scripts to Checkout Pages

Add the base script and event tracking script

Add your base tracking script and the event tracking script directly to the All Pages: Paste tracking code to add to all of this product's pages section.

Add Funnelytics event scripts to the other product purchase fields in Thrivecart

Here's their documentation on adding scripts to their checkout pages:

https://support.thrivecart.com/help/adding-scripts-to-your-checkout-pages/

Thrivecart has fields that allow you to trigger scripts for each product on the thank you page. This does require you to be using their hosted thank you pages and not a custom thank you page. 

Add event tracking script

In the field for tracking all pages, add the following event tracking script

<script src="https://cdn.jsdelivr.net/gh/Stockotaco/clickfunnels-tracking@v1.1.0/helper_function.min.js"></script>

version # last updated on 4/16/2020

Add individual even scripts to each product

This is what the generic Funnelytics event will look like for Thrivecart:

<script>
flEvent('event-name', {
// add properties here
})
</script>

We'll modify that to trigger a purchase event for the main product:

Let's change the event-name to purchase and add a property of product with a value of main.


<script>
flEvent('purchase', {
product: 'main'
})
</script>

The main product will have the individual product script.

You can repeat that process for each product individually. For example, we could use the following script to track the bump product:

<script>
flEvent('purchase', {
product: 'bump'
})
</script>

How to Map Thrivecart Purchases in Funnelytics

Because the event scripts are only triggered on the thank you page, we need to have our advanced purchase actions connected to the final thank you page.

Make sure the thank you page has the * wildcard character to account for the dynamic portion of the URL. 

The action should be set up as advanced and have the same properties we put in Thrivecart:

If you have any questions or need further clarification with installing your script, remember to reach out to our support team anytime by clicking the support icon in the bottom-right corner of your dashboard, or emailing us at support@funnelytics.io we are always ready to assist you!

Did this answer your question?