Knowledge Base      


Can I track my upsells and downsells in ClickFunnels using ClickMagick?


Yes, you can.

Similar to how you'd track button clicks to track Actions or Engagements, you can also track Sales when buttons are clicked on.

Here's how:

 
1 - Add Your Click Tracking Code To Your Sales Page

You can get your Click Tracking Code by either clicking on “Website Code” in the Campaigns welcome screen or by clicking on the icon and clicking “Website Code”.

 

 
You can also get your Click Tracking Code below:

<script>
    var clickmagick_cmc = {
        uid: '[USERID]',
        hid: '[HID]',
    }
</script>

<script src='//cdn.clkmc.com/cmc.js'></script>

  
Note: If your sales page is apart of a marketing funnel and comes after an opt-in, just add your Action Conversion Code to the page.



2 - Add Your Sales Conversion Code To Your Upsell Page.

You can get your sales conversion code below or you can navigate to the Tools Menu and select “Website Code”.

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


Update the above cmc_ref and cmc_amt to represent the product that is purchased from your sales page.
 
 
3 - Log The Button Click On The Upsell Page
 
You do this by adding a new line to your Click Tracking Code or Conversion Code. In doing so you will be able to record the “Sale” when the button on your upsell or downsell pages get clicked on.
 
To record a Sale, add both a CSS Selector ID and an amount value for the price of the upsell or downsell like this:

log_sale: 'cssSelectorID:price',
 
To get your CSS Selector ID, you can follow the steps in the article below:

 
How Do I Find The CSS Selector ID In ClickFunnels?
 
 
For example, if the upsell is $20, the new line of code would look something like:
 
log_sale: 'cssSelectorID:20',
  
With the complete code on the upsell page that sold a $10 product on the front end looking like this:

<script>
    var clickmagick_cmc = {
        uid: '[USERID]',
        hid: '[HID]',
        cmc_goal: 's',
        cmc_ref: 'main',
        cmc_amt: '10',
        log_sale: 'cssSelectorID:20',
    }
</script>
<script src='//cdn.clkmc.com/cmc.js'></script>

 
What happens in this case, is as follows:
 
A Visitor buys the front end offer and makes it to the upsell page. 
 
Once on the upsell page, the $10 sale is recorded immediately.
 
If the buyer clicks on the button to add the upsell to their order, the $20 sale is recorded.
 
If the buyer clicks on “No, thanks...” then the $20 sale isn't recorded.
 
Finally, if you have more than one upsell and downsell...

You don't need to add a sales conversion code to every single page.
 
Just use your Click Tracking Code below, being sure to modify the button to be the CSS Selector ID and the value:

<script>
    var clickmagick_cmc = {
        uid: '[USERID]',
        hid: '[HID]',
        log_sale: 'cssSelectorID:price',
    }
</script>
<script src='//cdn.clkmc.com/cmc.js'></script>

 
That's it! When people purchase your upsells and downsells, they'll be tracked instantly inside of ClickMagick.

Article 751 Last updated: 10/12/2021 6:16:28 AM
https://www.clickmagick.com/kb/?article=751