Affiliate tracking for Thinkific
This guide provides detailed instructions on how to integrate Partnero affiliate program into Thinkific for straightforward signup and order tracking.
Please note that before proceeding with the integration, you should already have an affiliate program created on Partnero. If you haven't created a program yet, refer to our guide on creating an affiliate program.
Visitors tracking
Visitor tracking enables the identification of referral visits to your website.
For accurate tracking and attribution of referral visits and signups to the appropriate partners, you need to install the Partnero Universal script on your website as custom code.
To find the snippet, please follow these steps:
- Log in to Partnero
- Go to Programs
- Choose your Program if there is more than one
- On the left sidebar, go to Integration under Program
- Copy the Partnero Universal snippet
After copying your unique Partnero Universal JavaScript snippet, follow these steps to log into your Thinkific account:
- Log in to your Thinkific account
- Proceed to Settings and choose Code & analytics
Insert the Partnero Universal Script into the Site footer code section.
Example of Partnero Universal
<!-- Partnero Universal -->
<script>
(function(p,t,n,e,r,o){ p['__partnerObject']=r;function f(){
var c={ a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);}
f.q=f.q||[];p[r]=p[r]||f.bind(f.q);p[r].q=p[r].q||f.q;o=t.createElement(n);
var _=t.getElementsByTagName(n)[0];o.async=1;o.src=e+'?v'+(~~(new Date().getTime()/1e6));
_.parentNode.insertBefore(o,_);})(window, document, 'script', 'https://app.partnero.com/js/universal.js', 'po');
po('settings', 'assets_host', 'https://assets.partnero.com');
po('program', 'PUBLIC_PROGRAM_ID', 'load');
</script>
<!-- End Partnero Universal -->
Sign-ups tracking
On the same page, find a section named Signup tracking code.
Paste the following script into the area:
<script>
window.onload = function() {
po('customers', 'signup', {
data: {
key: '{{email}}',
name: '{{first_name}}',
email: '{{email}}'
}
});
};
</script>
Orders tracking
On the same page, find a section named Order tracking code.
Paste the following script into the area:
<script>
window.onload = function() {
po('transactions', 'create', {
data: {
key: '{{product_id}}',
amount: {{total_price}},
customer: {
key: '{{billing_email}}'
}
}
});
};
</script>