November 9, 2026
Integrating Tapfiliate with Teachable lets you track the course sales your affiliates refer, including the coupon code used at checkout. The setup takes two code snippets: one in your school’s Head Code Snippets, and one on the Thank you page of each course you want to track.
Note: Be aware that adding custom code into Teachable schools might require a subscription plan.
Step 1: Add the tracking code to every page
- On your School dashboard, go to Site > Code Snippets.
- Paste the following code into the Head Code Snippets window:
- Click Save.
Step 2: Add the conversion code to the Thank you page
Repeat these steps for each course whose sales you want to track.- In the left-hand menu, go to Courses and open the course.
- At the bottom of the page menu, click Thank you page.
- Hover over the first block, Purchase Confirmation, and click Insert new block.
- Choose </> Add Liquid/HTML Block and paste the following code into the box:
- Click Save at the top of the screen.
# in front of each {{ … }}. If your code has it, replace it with the code above. Sales tracked with the old code have a # in front of their ID and of the customer’s email, so Tapfiliate doesn’t match them with what the new code sends: it doesn’t recognize these customers as returning customers, and if the Thank you page of an old sale is opened again, that sale can be tracked a second time.
It’s important to ensure the accuracy of your tracking setup before launching your program. To do this, perform a test conversion using the instructions described here.