How Can I Track PayPal Payments in Unbounce?


Have you thought of tracking payments your visitors make through PayPal as conversions on your Unbounce landing page? Well, dream no more!  Read below and make your wishes come true. 

Your final workflow will look like this:


You will need to complete three main steps to get it all up and running:

  1. Adding the External Conversion Tracking script to your thank you page.
  2. Creating your PayPal Button.
  3. Linking your PayPal Button to your Unbounce landing page.

Adding the External Conversion Tracking script to your thank you page

  1. Create a landing page you would like your visitors to see as the final thank-you or confirmation page, following the payment process.
  2. Once created, open this page within the Unbounce builder.
  3. Within the Unbounce builder & navigate to the JavaScript widget at the bottom left-hand side of the builder: 
  4. With the Placement set to Before Body End Tag, paste in the External Conversion Tracking script:
  5. Name your script, and click the blue Done button:
  6. Click the blue Done button, then Save and Republish your page.
  7. Make a note of your page's URL.

Creating your PayPal Button

  1. Log in to your PayPal account.
  2. Follow the steps in PayPal's documentation to create your custom PayPal Button (choose from the list of button styles). 
  3. Within PayPal, complete Steps 1 through 2, which includes tips on customizing your button, filling in any appropriate billing info, tracking your inventory & profit, etc. 
  4. Once completed, navigate to Step 3: customize advanced features.
  5. Enable Take customers to this URL when they finish checkout and enter the URL for the thank-you or confirmation page created in Step 1 above:
  6. Confirm your settings and click Create Button.
  7. This will take you to another page where you can grab the embed code for your button. You will have two options:
  • Copy the code within the Website tab to embed PayPal's button or,
  • Copy the URL within the Email tab to create your own link to the payment page
  • Copy whichever code you'd like to use for your Unbounce page. 

  • Linking your PayPal Button to your Unbounce landing page

    Navigate back to the Unbounce app, and locate the page you'd like to set up with this custom PayPal button. Here, we'll add either the embed code or the email link.  

    Copying the code from the Website tab

    We'll want to embed this snippet of code onto the landing page, using the HTML widget

    1. Within the Unbounce builder, drag a new custom HTML widget onto your page:
    2. Within the HTML dialog box, paste in the script copied from the Website tab in PayPal and click Done. 
    3. Resize the placeholder box to match the PayPal button's height and width and position it wherever you like on your landing page.
    4. Save & Republish the page (to preview these changes, Save your page and open up the Preview mode).

    Copying the URL from the Email tab

    1. Within the Unbounce builder, drag a new button onto your page:
    2. With the button selected, navigate to the Properties panel on the right.
    3. Set the button's Click Action to Go to URL, and paste the link retrieved from the Email tab in PayPal into the URL field:
    4. Feel free to make any customizations & changes to the design of your button.  
    5. Save & Republish the page (to preview these changes, save your page and open up the Preview mode).

    You're all set! You're now ready to start tracking your PayPal payments as conversions on your landing page!

    Can I track PayPal Payments as conversions using an Unbounce form?

    Yes! You can also use an Unbounce form to collect lead data and direct your leads to your PayPal page once they submit the form. Just set the form confirmation action to Go to URL and paste the above link into the URL field.

    If you choose to do this, you may want to uncheck the form submit as a conversion goal so that you only count conversions when your visitors actually make their payment (see here for information on setting conversion goals).

    Also, be advised that because Unbounce forms are not encrypted, you'll want to embed your form if you're collecting sensitive information like passwords or credit card information.