- Conversion tracking
- Commission based on order amount
- Per category commissions
- Track affiliate coupon code conversions
- Supports lifetime commissions
- Auto-handle recurring commissions
- Auto-handle refunds and disputes
Here is a quick video of the whole process:
Embedded content: https://www.loom.com/share/2428d802432743dbba4bd63375b16ec7
- In your Cratejoy dashboard, go to design > click code next to your theme > Select the
base.html
template Add the following code just after the
<body>
tag at the top of the file<script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script> <script type="text/javascript"> (function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){ (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap'); tap('create', '((((YOUR ACCOUNT ID))))', { integration: "cratejoy" }); tap('detect'); </script>
{{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}
Hit save
Next, find the
thank_you.html
template in the customer folderOpen account info, and select the
component.html
. Tocomponent.html
, add the following code snippet:<script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script> <script type="text/javascript"> (function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){ (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap'); tap('create', '((((YOUR ACCOUNT ID))))', { integration: "cratejoy" }); {% if order.products|length == 1 %} tap('conversion', '{{ order.id }}', {{ order.total }} / 100, {}, '{{ order.products[0].id }}'); {% else %} tap('conversion', '{{ order.id }}', {{ order.total }} / 100); {% endif %} </script>
{{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}
Hit save and you are all done!
Overriding commission amounts for certain products
You can easily override the commission amount for certain products, by creating a commission type for it. The steps you will need to take for this are as follows:
- After you complete the on-boarding process, click Programs in the left hand menu > Click the settings icon next to your program > Select Commission Structure.
- Click New commission type
- As the title, choose the name of your product
- As the identifier, enter the Cratejoy product id
- Select the appropriate commission amount
- Hit save, and you are done!
Recurring commissions
If you are looking to give your affiliates recurring commissions, you will need to use the Cratejoy API in combination with our own API. Please contact support if your team needs guidance with this.
Important
Please remember to test a conversion before starting your program. This way you can verify that tracking has been set up correctly. You can create a test conversion by following the steps described here.