Skip to main content
PayPal Checkout Integration
David Rolenc avatar
Written by David Rolenc
Updated over 2 months ago

This PayPal integration guide is created for websites that use PayPal as the only payment provide 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 using the instructions in the Pending Settings 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 on 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 clicks and conversions 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?