ReferralCandy is a powerful tool for harnessing the social networks of your customers to endorse your courses among their acquaintances.
Referral marketing is a great way to leverage your users' networks to promote your courses to their friends, family, and colleagues. When satisfied customers recommend your offerings to their friends, family, and colleagues, they effectively become ambassadors for your brand. By adding incentives for referrals, you amplify this effect, creating a network effect where each recommendation can lead to multiple new customers.
In this article, we will learn how to set up ReferralCandy and connect it with your LearnWorlds school.
1. Use this link to sign up for ReferralCandy. LearnWorlds users get a double free trial period. ReferralCandy gives LearnWorlds users $50 credit, which counts towards their first payment.
2. Navigate to Profile → My Profile → Plugin tokens.
3. Copy your App ID and Secret Key (not the API Access ID and API Secret Key).
4. Paste the App ID and Secret Key in your LearnWorlds school under Settings → Integrations → Affiliates → ReferralCandy, and click on Save.
5. Navigate to your site builder and add the below code under the Site custom code → Includes after purchase (html) page,
<div id="refcandy-mint"> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.js"></script> <script> function createReferralCandySignature( email, firstName, invoiceAmount, timestamp, accountSecret) { const data = email + ',' + firstName + ',' + invoiceAmount + ',' + timestamp + ',' + accountSecret; return CryptoJS.MD5(data).toString(); } // Example usage const email = "{{USER.EMAIL}}"; const firstName = "{{USER.NAME}}"; const invoiceAmount = "{{PRODUCT_PRICE}}"; const timestamp = Math.floor(Date.now() / 1000); const accountSecret = "HERE_YOUR_ACCOUNT_SECRET"; const currency = "{{CURRENCY}}" // Generate signature const signature = createReferralCandySignature( email, firstName, invoiceAmount, timestamp, accountSecret); // Add values to the div const referralDiv = document.getElementById('refcandy-mint'); referralDiv.setAttribute("data-email", email); referralDiv.setAttribute("data-fname", firstName); referralDiv.setAttribute("data-amount", invoiceAmount); referralDiv.setAttribute("data-timestamp", timestamp); referralDiv.setAttribute("data-lname", firstName); referralDiv.setAttribute("data-signature", signature); referralDiv.setAttribute("data-app-id", 'YOUR_APP_ID'); referralDiv.setAttribute("data-currency", currency); </script> <script>(function(e){var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v;z="script";l="refcandy-purchase-js"
6. Navigate back to your Referral Candy account, click Profile and copy the API keys from here,
7. Back to your school, you need to paste the information from the previous step accordingly in line 34 and 54 as shown below,
- in line 34, "const accountSecret = "HERE_YOUR_ACCOUNT_SECRET";" add your API Secret Key and
- in line 54, "referralDiv.setAttribute("data-app-id", 'YOUR_APP_ID');" add the API Access ID.
- The ReferralCandy account will be activated (connected) to LearnWorlds after the first purchase.
- Make sure you have inserted your LearnWorlds school in your ReferralCandy account under My Store → Store Settings → Store URL.
Here is a quick list to get your referral program ready and running:
- Prepare your referral program & rewards.
- Edit the landing pages of your referral program.
- Share your referral sign-up with your users, friends, and partners.
- Keep track of it, promote it, and send exclusive material to your referrals.
- Remember that sign-ups refer to courses and bundles and not to subscriptions.