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.
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.
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.
Make updates in your PayPal account settings
Log in to your PayPal account.
Go into Settings in the upper right corner > enter Account Settings.
Enter the Website Payments section.
Locate Website Preferences and enter Update.
Switch Auto return to “On” and enter your desired URL (the URL of the thank you page).
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.