Warning: Invalid argument supplied for foreach() in /var/www/html/newlanding/support/wp-content/plugins/wp-knowledgebase/includes/kbe-template-functions.php on line 307

How to integrate EarlyParrot with Thinkific

EarlyParrot is a referral marketing platform that can be easily integrated within almost any sales funnel/user flow. EarlyParrot’s flexible API makes it possible to track all your Thinkific students as they sign up and when referring new students (referrals). It is also able to automatically rewarding them as they reach a particular milestone. This Knowledge Base (KB) focuses specifically on how to integrate EarlyParrot with your Thinkific account.

Why do you need a referral program for your Thinkific course?

By adding a referral program to your Thinkific course(s) you will be turning your students into active referrers, giving them the functionality and ability to invite their friends to sign-up to your courses in exchange for a reward.

From our experience, referral marketing will:

  • lower your student acquisition cost, by getting new student sign-ups through word of mouth
  • improve your conversion rates as referred students convert at a better rate
  • extend your reach / amplify your marketing by getting referrers to spread the word about your brand

How will your Thinkific referral program be structured?

Irrespective whether your Thinkific is hosted on thinkific.com or your custom domain, your referral program will be made up of the following main components:

  • Landing Page: The landing page is where all your referred students will be sent to. This can either be your homepage, your Thinkific courses page or else a custom Thinkific page. EarlyParrot will capture all your visitors, track them until they either leave your website or else convert.
  • Conversion Point: For a Thinkific course a conversion point is usually set to a new student sign-up. EarlyParrot will capture all sign-ups, check if the sign-up has been referred or not. If the sign-up has been referred, then the referrer is rewarded according to campaign settings.
  • Share Page: Through the functionality provided by this page, your students will be able to refer their friends by either: by sending direct email invites, by sharing posts on social media such as Facebook, Twitter, LinkedIn or else by sending referral links on chat apps such as WhatsApp, Facebook Messenger etc.

Now that you know the different components that will make up your referral program, let’s create a referral campaign on EarlyParrot and go on with integrating it with a Thinkific account.

Creating a referral campaign in EarlyParrot

Create a referral campaign on EarlyParrot is very easy. There are 7 steps in all, which are summarized through an easy to go through wizard. Check out How to create a campaign in EarlyParrot knowledge base article for more information.

Integrating your EarlyParrot campaign with your Thinkific course

Step 1: Install the Landing Page script

What is your referral campaign landing page? Basically, it is the page where all your referred students will be sent to. So let’s say your homepage will be your referral campaign landing page, referred students will be sent to www.yourdomain.com?rh=XXX123. The rh param will uniquely identify the referrer and the source where the student is coming from.

Installing the Landing page script in Thinkific is very easy. Log into your Thinkific account, go to Settings > Code & Analytics > Site Code Footer and place the following script. Please make sure you replace the campaignId.

<script type="text/javascript">
    var epVars = {
      adminUrl : "https://admin.earlyparrot.com",
      appUrl : "https://app.earlyparrot.com",
      campaignId : "5c792ca304feec3ac869b6d5"
    }
    //REPLACE campaignId with your campaign ID
</script>
<script type="text/javascript" async="true" src="https://s3.amazonaws.com/earlyparrot-production-scripts/ep-landing-page.js"></script>

Once you install the Landing Page you will need to tell EarlyParrot which is your landing page. In the Integrations steps, in the create/edit campaign wizard, you will get to install the landing page. Click on the configure button under the Landing Page.

Place the landing page URL in the provided input field and check your installation by clicking on Verify Installation button.

Step 2: Install the student sign-up capture script

In order for EarlyParrot to be able to tell if a new student sign-up has been referred or not, it must monitor all sign-ups. EarlyParrot uses a cookie to tag referred students.

Installing the student capture script in Thinkific is also very easy. Log into your Thinkific account, go to Settings > Code & Analytics > Signup Tracking Code and place the following script. Please make sure you replace the campaignId and the domain name (if you are running Thinkific on a custom domain).

<script language="javascript">
    (function(w,d,url){

        var campaignId = "5c792ca304feec3ac869b6d5";
       //REPLACE campaignId with your campaign ID

        var headElement=d.getElementsByTagName('head')[0];
        var scriptElement=d.createElement('script');
        scriptElement.addEventListener('load', function() {

                var ep_subscribeObj = new Object();
                ep_subscribeObj.firstName = "{{ first_name }}";
                ep_subscribeObj.lastName = "{{ last_name }}";
                ep_subscribeObj.email = "{{ email }}";
                ep_subscribeObj.rh = Cookies.get('rh');
                ep_subscribeObj.sendWelcomeImmediately = 0; 

                Cookies.set('epSubmitEmail', ep_subscribeObj.email, { domain: 'thinkific.com' });

              //REPLACE thinkific.com with your custom domain                                                                                     

epJQuery.post("https://admin.earlyparrot.com/api/campaigns/"+campaignId+"/subscribe", ep_subscribeObj)
      .then(function(data) {
           //JSON object returned by subscribe call
           var userFirstName = data.user.firstName;
           var userLastName = data.user.lastName;
           var userEmail = data.user.email;
           var sharePageURL = data.sharePage;
    
            var confirmationToken = data.user.confirmationToken;
            var domain=document.domain;
            var p=domain.split('.');
            var i=0;
            var current_domain='';

            for (var i=0;i<p.length-1;i++) { 
              current_domain = p.slice(i).join('.');
              Cookies.set('confirmToken', confirmationToken, { domain: current_domain });
            }
    
	     window.dataLayer.push({
              'userFirstName': userFirstName,
              'userLastName': userLastName,
              'userEmail': userEmail,
              'sharePageURL': sharePageURL
            });   
       });

        });
        scriptElement.async=1;
        scriptElement.src=url
        headElement.appendChild(scriptElement);
    })(window,document,'https://s3.amazonaws.com/earlyparrot-production-scripts/utilities.js');
</script>

Step 3: Install the share page script

The share page is a very important part of any referral campaign. The share page is accessible by all your referrers and will be served from your domain but hosted by EarlyParrot. The share page has four different tabs:

Share Tab

The share tab provides the following functionality:

  • provides referrers with a way how to post & share your campaign on social media with a click of a button
  • provides referrers with an easy way how to send email invites to their friends
  • generates unique referral links for referrers to copy and paste wherever they deem necessary

Rewards Tab

The rewards tab showcases all the rewards and their associated milestone that a referrer can get.

Activity Tab

The activity tab gives a brief overview of the activity of a particular referrer in a given campaign.

Inbox Tab

The Inbox tab is where the referrer can view, read and reply to Inbox messages sent by you. When sending an Inbox Message via the EarlyParrot Inbox feature, subscribers will land on the share page on the Inbox tab. Such messages will help to get your referrers engaged and share your campaign more.

The share page can be installed on a page of your choice. In this knowledge base (KB) we will place the share page on a new custom Thinkific page named /invite/.

To create a new custom Thinkific page go to Design your site > Site Builder.

In the Site builder, go to Custom pages.

Add a new custom page and call it /invite/. The name of the page is up to you. In this KB we will call it /invite/.

After creating the page, click on the page to edit it. Create a new Text & Media Section.

Edit the new Text & Media section by switching to code view.

Paste the following code, save the page and publish it.

<script type="text/javascript" src="https://s3.amazonaws.com/earlyparrot-production-scripts/ep-share-page.js"></script>
<style>
	@media (min-width: 576px) {
		.epWrapper {
			height: 800px
			/* 16:9 */
		}
	}
	
	@media (max-width: 577px) {
		.epWrapper {
			height: 800px;
		}
	}
	
	.epWrapper {
		position: relative;
	}
	
	.epWrapper iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border: 0px;
	}

</style>
<div class="epWrapper">
	<iframe id="epShare" allowfullscreen="" src=""></iframe>
</div>

Once you install the Share Page you will have to set it up in EarlyParrot campaign. In the Integrations steps, in the create/edit campaign wizard, you will get to install the share page. Click on the configure button under the Share Page.

Place the share page URL in the provided input field and check your installation by clicking on Verify Installation button. EarlyParrot will verify your share page installation and will guide you accordingly.

Once installed your referral campaign share page will look similar to this: https://earlyparrot-school-1433.thinkific.com/pages/invite

Promote your campaign

You can promote your referral campaign in various ways. The more you promote your referral program, the more engaged referrers you get and in return the more referrals they will get for your course. The following are the most common ways how we recommend Thinkific users to promote their campaign.

Link to the share page in your email sequence

Just like having an unsubscribe link in all emails you sent out, you should also have a link to your share page. The more subscribers you manage to send to your share page the more engagement you will get. There are two options to link to a particular subscriber’s share page:

Linking to the share page from your autoresponder is easy. Let’s say your share page url is https://www.yourdomain.com/invite/. To link to a particular subscriber share page you have to use the following URL format:

https://www.yourdomain.com/invite/[email protected]

Use your an email sender provider merge tag in order to replace [email protected] with the subscriber email. By providing a subscribeEmail param, you will be personalising your share page for individual referrers.

Send a dedicated email about your referral program

After from including a Click Through Action (CTA) in every email sequence you send out, we also recommend you send at least one dedicated email specifically about referral program, highlighting your rewards and how your subscribers can easily share the referral program with their friends.

EarlyParrot <> Zapier <> Thinkific

Up until now, we have seen how EarlyParrot can be integrated with Thinkific. But, what if you want to:

react to an event in your referral program?

give instant access to a course, on referring a student?

tag a Thinkific student to trigger off an email sequence?

You can do all this and more through the EarlyParrot <> Zapier <> Thinkific Integration.

Do you have any further questions?

We understand that every Thinkific referral campaign is different than the other. That is why we offer strategy calls & one to one consultations. Schedule a call with our founder Gaetano: https://calendly.com/gaetano-earlyparrot/1-to-1-earlyparrot/