All Collections
Integrations
Integrating with Recurly
Integrating with Recurly

Learn how to integrate Tapfiliate with Recurly.

Tetiana avatar
Written by Tetiana
Updated over a week ago

Integrating Tapfiliate with Recurly allows you to track conversions and commissions based on order amounts for subscription-based businesses.

Please note that this guide is intended for situations where you're redirecting users to a final thank-you or success page after processing their order through Recurly.
It's compatible with all the payment gateways linked to your Recurly account.

1. To implement this, add the following to the end of your redirect URL in Recurly: ?acc={{account_code}}. As a result, your URL will resemble this format: http://yourdomain.com/signup/success?acc={{account_code}}

2. Next, insert the provided code snippet in the head of every page of your website - between the <head> and </head> tags and hit Save

<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>

Ensure that you replace 'YOUR ACCOUNT ID' with your actual account ID.

3. Now, paste the following code on your confirmation page and Save the changes

<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>

Again, make sure to substitute 'YOUR ACCOUNT ID' with your actual account ID.

Also, you can check out our Recurly integration guide here.

Before launching your program, it's essential to test your integration to verify that your setup is accurate and ready to go.

Can I set up recurring commissions?

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

Did this answer your question?