Skip to main content
Track affiliate sales

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

Laurie Garcia avatar
Written by Laurie Garcia
Updated over 6 months 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. 

You can add your Google Analytics Tracking ID under Dashboard > Account Settings.

⚠️ 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.

Under Dashboard > Account Settings, you'll want to 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?