Integrating with Cratejoy

  1. In your Cratejoy dashboard, go to design > click code next to your theme > Select the base.html template
  2. 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))))');
        tap('detect');
    </script>
    

    {{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}

  3. Hit save

  4. Next, find the thank_you.html template in the customer folder

  5. Open account info, and select the component.html. To component.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))))');
        {% 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}}}}

  6. 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:

  1. 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.
  2. Click New commission type
  3. As the title, choose the name of your product
  4. As the identifier, enter the Cratejoy product id
  5. Select the appropriate commission amount
  6. 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.

Start a 14-day free trial with all our features enabled

Start now