Integrating with Paypal

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 integration is meant for custom-made websites (no platform) that use Paypal as the sole payment provider. If you’re using WordPress and PayPal together, please follow the WordPress guide with the PayPal-specific steps located at the end of the guide.

  1. Add the following code just after the <body> tag of every page of your website:

    <script src="" type="text/javascript" async></script>
    <script type="text/javascript">
        function tapGetQueryParams(){var r={},t=function(r){return decodeURIComponent(r.replace(/\+/g," "))},"&");for(var e in n){var a=n[e].toString().split("=");a.length>1&&(r[t(a[0])]=t(a[1]))}return r}
        var params = tapGetQueryParams();
        tap('create', '((((YOUR ACCOUNT ID))))', { integration: "paypal" });
        if ( == 'Completed') {
          var amt = params.amt || 1;
          var tx = params.tx || null;
          tap('conversion', tx,  amt);
        } else {

    This code has to be added to both your landing page, as your thank you page.

  2. Next you will have to configure Paypal:

    1. Login to your paypal account.
    2. Click on the Settings gear on the upper right > Account Settings.
    3. On the left-side navigation column, select Website Payments.
    4. Locate Website Prefernces and click on Update.
    5. Switch Auto return “On” and enter your desired Return url.
    6. Switch Payment data transfer “On”.


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