Track affiliate sales

Use Google Analytics, Facebook, or another service to track sales from affiliates.

Laurie Garcia avatar
Written by Laurie Garcia
Updated over a week ago

Tracking sales with Google Analytics

If you offer commissions to affiliates marketing your courses, you can track affiliate sales by integrating your Google Analytics account and setting up conversion goals. 

To add your Google Analytics account to Pathwright....

  1. Go to the Dashboard and open "Account Settings" or just select "Settings" from the main menu. 

  2. Select "Connect other apps" and enter your Google Analytics Tracking ID under "Track with Google Analytics."

    ⚠️ Note that Google Analytics will be transitioning from their legacy Universal Analytics to their new Google Analytics 4 by July 1, 2023. Be sure to add your GA4 tracking ID (beginning with "G-") to continue using Google Analytics.

When creating conversion goals, you can use the following URLs. 

For a specific course, you can use the course registration URL with /thank-you/ on the end of it. For example: 

https://myaccount.pathwright.com/library/course-name/register/12345/order/12345/thank-you/

Or, if you want the goal to work for all course registrations, you can use this expression:

/\/library\/[0-9a-zA-Z-_]+\/register\/\d+\/order\/\d+\/thank-you\//

Tracking with Facebook or another pixel code

If the tracking service you are currently using has a pixel JavaScript code that can be embedded to track affiliate sales, you can include that code on your purchase confirmation pages:

  1. Go to the Dashboard and open "Account Settings" or just select "Settings" from the main menu. 

  2. Select "Connect other apps," and then "Add custom code & pixel tracking." 

  3. Paste in your Facebook pixel script under "Inject code into the header."

When a conversion occurs, "/thank-you/" is appended to the URL, which should be tracked by your FB pixel or other tracking code.

Did this answer your question?