PayPal Checkout Integration
David Rolenc avatar
Written by David Rolenc
Updated over a week ago

This Paypal integration guide is created for websites that use PayPal as the only payment provider. And applies to cases of non-recurring payments.

In order to successfully integrate tracking of your PayPal payment provider you will need to set up your system by instructions in the Quick setup section in the system and then by tracking for clicks and conversions by following the guide below.

  1. Add a click script to your landing pages. Click tracking code needs to be placed on every page of your website. Make sure that it is placed in the <head> tag, ideally as high as possible.

    <!-- Trackdesk tracker begin -->
    <script async src="//cdn.trackdesk.com/tracking.js"></script> <script>
    (function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments)}})(window,"trackdesk","TrackdeskObject");

    trackdesk('YOUR TENANT ID', 'click');
    </script>
    <!-- Trackdesk tracker end -->

    Make sure to replace YOUR TENANT ID with your actual tenant id.

  2. Next, you will paste the following code to your thank you page in order to track conversions.

    <!-- Trackdesk tracker begin -->
    <script async src="//cdn.trackdesk.com/tracking.js"></script>
    <script>
    (function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments)}})(window,"trackdesk","TrackdeskObject");

    trackdesk('YOUR TENANT ID', 'conversion', {
    conversionType: 'YOUR SELECTED CONVERSION TYPE',
    externalId: {queryParam: "tx"},
    amount: {
    value: {queryParam: "amt"}
    }
    });
    </script>
    <!-- Trackdesk tracker end -->

    Make sure to replace YOUR TENANT ID with your actual tenant id.

    Make sure to replace YOUR SELECTED CONVERSION TYPE with the conversion type you want to use for tracking.

  3. Make updates in your PayPal account settings

    1. Log in to your PayPal account.

    2. Go into Settings in the upper right corner > enter Account settings.

    3. Enter the Website Payments section.

    4. Locate Website Preferences and enter Update.

    5. Switch Auto return to “On” and enter your desired URL (the URL of the thank you page).

    6. Switch Payment data transfer to “On”.

Testing Your Integration

Please remember to test the creation of click and conversion before starting your program. This way you can verify that tracking has been set up correctly. You can create a test click and conversion by following the steps described here.

Did this answer your question?