Integrating with Teachable

Note: Be aware that adding custom code to Teachable schools might require a paid plan.

  1. On your School dashboard, go to Site > Code Snippets.

  2. Place the following JavaScript code in the ‘Head Code Snippets’ window.

    <script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
    <script type="text/javascript">
      (function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){ (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');
    
      tap('create', '((((YOUR ACCOUNT ID))))');
      tap('detect');
    </script>
    

    {{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}

  3. Hit save.

  4. Next, go to the left-hand option ‘Courses’ and select the courses which conversions you want to track (if all, repeat the following operation for each course).

  5. Go to the bottom of the page menu and click on ‘Thank you page’.

  6. On the first block, called ‘Purchase Confirmation’, hover over and the pop up button ‘Insert new block’ will appear. Click on it to see more options.

  7. Click on the option </> Add Liquid/HTML Block.

    teachable liquid

  8. Paste the following code in the box:

    <script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
    <script type="text/javascript">
      (function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){ (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');
      tap('create', '((((YOUR ACCOUNT ID))))');
      if(queryParamPresent("final_price")) {  
            var finalPrice = parseInt(getQueryString().final_price) / 100;
            tap('conversion', '{{ sale.id }}', finalPrice);
      }
    </script>
    

    {{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}

  9. Hit the save button on the top of the screen, and you are all done!

  10. Eventually, repeat steps 4 to 9 for each course.

Important

Please remember to test a conversion before starting your program. This way you can verify that tracking has been set up correctly. You can create a test conversion by following the steps described here.

Start a 14-day free trial with all our features enabled

Start now