Integrating with Recurly

Out-of-the-box features:
  • Conversion tracking
  • Commission based on order amount
  • Track affiliate coupon code conversions
  • Supports lifetime commissions
  • Auto-handle recurring commissions
  • Auto-handle refunds and disputes

Note: This guide is geared towards cases in which you are redirecting users to a final thank-you/success page after the order is processed using Recurly. It supports all payment gateways you might have connected to Recurly.

If you want to award your affiliates with a recurring commissions you can do so with Zapier. This guide assumes that you have a Zapier account.

  1. Append the following to your redirect URL in Recurly: ?acc={{account_code}} so it will look something like this: http://yourdomain.com/signup/success?acc={{account_code}}

  2. Place the code in the head of every page of your website - between the <head> and </head> tags:

    <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. Save changes.

  4. Paste the the following code on your confirmation page:

    <script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
    <script type="text/javascript">
        function getQueryParams(){var assoc={};var decode=function(s){return decodeURIComponent(s.replace(/\+/g," "))};var queryString=location.search.substring(1);var keyValues=queryString.split('&');for(var i in keyValues){var key=keyValues[i].toString().split('=');if(key.length>1){assoc[decode(key[0])]=decode(key[1])}}return assoc}
    
        window['TapfiliateObject'] = i = 'tap';
        window[i] = window[i] || function () {
            (window[i].q = window[i].q || []).push(arguments);
        };
    
        tap('create', '((((YOUR ACCOUNT ID))))');
        var params = getQueryParams();
        if (params.acc) {
            tap('trial', params.acc);
        }
    </script>
    

    {{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}

  5. Save again, and you’re all done!

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