I use event tracking on almost everything. It’s super easy and can give you a ton of useful data about users’ site interaction. When I wanted to set up Google Analytics Event Tracking with a PayPal form on one of my sites, I wasn’t sure where to start since the PayPal code uses a series of tags including <form>, <input>, and <table> instead of an <a> so that it can pass values through form fields.

It turns out it’s really simple to add event tracking to the PayPal code. All you do is append your event tracking to the <form> field of the PayPal code.

Here is the <form> section of the original PayPal code:

How to add Google Analytics Event Tracking to PayPal

This is how to add event tracking to your PayPal code:

How to Add GA Event Tracking to PayPal Code

Share This