Integrating with Paypal

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

    <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;
        };
    
        (function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){
        (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');
    
        var params = getQueryParams();
    
        tap('create', '((((YOUR ACCOUNT ID))))');
    
        if (params.st == 'Completed') {
          var amt = params.amt || 1;
          var tx = params.tx || null;
          tap('conversion', tx,  amt);
        } else {
          tap('detect');
        }
    </script>
    

    {{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}
    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. If you use the old paypal version: click profile in the grey, horizontal navigation bar. if you use the new version you can click the icon of the little guy in the top right corner and select Profile and settings
    3. Select My Selling Tools from the navigation column on the left>
    4. Locate website preferences and click update
    5. Switch Auto Return to on
    6. Enter your desired Return Url
    7. Switch payment data transfer to on
    8. Save

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