If you have the Thinkific online website system and you are looking to setup your own affiliate program, this can be easily done with OSI Affiliate Software.


One-time fee courses

If you're offering courses that have one-time fee. Follow the steps below.


Step 1. Login to your OSI Affiliate Software admin panel and click on Set Up Software.


Step 2. Click on Link Software toMy Store.


Step 3. Select General from the drop-down list. Before copying the code, replace 15 (right next to amount:) and B (right next to transaction:) with {{total_price}} and {{order_number}} respectively.

Example:

<script async>

    function hideIF() {    

        document.getElementById('IF').style.visibility = '';

    }

    function getSaleInfo() {

        document.getElementById('st_code').style.visibility = 'hidden';

        document.getElementById('st_code').innerHTML='<iframe src="https://jeffreydemo.ositracker.com/sales/salejs/amount:{{total_price}}/transaction:{{order_number}}" alt="" id=IF width=50 height=50 border="0" frameborder="0" onload="hideIF()">';

   } 

   window.onload = getSaleInfo;

</script>

<div id="st_code"></div>


Step 4. Login to your Thinkific Admin Control panel and click on Settings. Select Code & analytics.


Step 5. Under Order tracking code, paste the copied code from OSI Affiliate Software to the field provided. Click Save.


Ongoing fee courses and/or  with one-time fee courses

If you're selling courses that have ongoing fees, like monthly fee, follow the steps below.


Step 1. Login to your OSI Affiliate Software admin panel and get your API User Token by clicking on your profile name found at the upper right and select View ProfileTake note of your API User Token or generate one if the field is blank.



Step 2. Click on Set Up Software and Link Software to My Store.


Step 3. Select Recurring Commission using email match and web hook from the drop-down list. Before copying the code, replace AmountVariableHere (right next to amount:), TransactionIDVariable (right next to transaction:), and CustomerEmailVariable (right next to customer_email:) with {{total_price}}, {{order_number}}, and {{billing_email}} respectively.

Example:

<script async>

    function hideIF() {    

        document.getElementById('IF').style.visibility = '';

    }

    function getSaleInfo() {

        document.getElementById('st_code').style.visibility = 'hidden';

        document.getElementById('st_code').innerHTML='<iframe src="https://jeffreydemo.ositracker.com/sales/salejs/amount:{{total_price}}/transaction:{{order_number}}/customer_email:{{billing_email}}" alt="" id=IF width=50 height=50 border="0" frameborder="0" onload="hideIF()">';

   } 

   window.onload = getSaleInfo;

</script>

<div id="st_code"></div>



Step 4. Login to your Thinkific Admin Control panel and click on Settings. Select Code & analytics.

 


Step 5. Under Order tracking code, paste the copied code from OSI Affiliate Software to the field provided. Click Save.


Step 6. Format the Web Hook Recurring URL.

To have all recurring charges passed to our system from sales that were referred by any of your affiliates you will need to format the web hook URL shown below.  This url will need to be automatically called by Thinkific whenever a customer is charged on a recurring basis. 


For example, if you have a customer that was referred by an affiliate and you charge monthly when this customer is charged, the webhook URL shown here will need to be called:


http://yourcompany.ositracker.com/sales/send_recurring?key=aa383695cafbc2beaf481576319ae78d&customer_email={{billing_email}}&amount={{total_price}}&transaction={{order_number}}


Note: In the code shown above before you add it to Thinkific, you will need to make the changes shown here:

1. Where it says "your company" this should be the name of your account location.

2. Where it says "key=aa... " you will need to plugin your API token that you got from Step 1. 



Step 7. Go back to you Thinkific Admin Control panel and click on Settings. Select Code & analytics.


Step 8. In the Webhooks block, select Webhooks to view the Webhooks settings page. Click New Webhook on the top right. Input Model, Topic and Target URL from Step . Click Save.


Step 9. Make sure that your referral program is set correctly. Go to OSI Affiliate admin panel and click on Referral Programs.


Step 10. Click on Manage then +Add button to create or the blue pencil icon to modify an existing referral program. 


Step 11. After you fill in the required fields, click the Show Advanced Settings link.


Step 12. Select "Yes" for Do you want to setup recurring commission. Set the commission amount and select Match Email. Click on Continue button and finish the setup.