CourseCraft

CourseCraft provides everything you need to build superbly designed self-paced online courses. Share your passion, make money, and help people level up their lives today.

The integration uses advanced option in CourseCraft course's dashboard to enter tracking codes to your courses.

1.

Add click tracking code

After you login to your CourseCraft admin panel navigate to Dashboard and then edit one of your courses you want to integrate. In edit section navigate to advanced sub-menu and then to Custom Scripts & Styles. Choose All pages and add the click tracking code to Content for the end of the page text area.

2.

Add sale tracking code

While in the same section navigate to Thanks Page tab and add the following code to Content for the end of the page text area:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
var total = window.PARTICIPANT.total_paid;
total.replace(/[^0-9.]/g, '');

sale.setTotalCost(total);
sale.setOrderID(window.PARTICIPANT.id);
sale.setProductID(window.PARTICIPANT.product.id);
sale.setData1(window.PARTICIPANT.email);
sale.setData2(window.PARTICIPANT.product.title);
if (typeof window.PARTICIPANT.promo_code !== 'undefined) {
  sale.setCoupon(window.PARTICIPANT.promo_code);
}
PostAffTracker.register();
</script>