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." 

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/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+\/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.

Track custom events

To add a script for tracking custom events...

  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. Follow the setup instructions below.

These custom events are available:

1. transaction - fired when a user pays for a single registration or subscription

2. registration:created - fired when a user registers

3. subscription:created - fired when a user subscribes

4. member-cohort:created - fired when a member creates a new private cohort

5. path:item:completed - fired when a learner completes a step

Note that when a user registers or subscribes, the transaction event may or may not fire depending on if the user paid. So, it's possible that a registration/subscription will trigger two events. 

To set up...

  1. Click “see events examples” in order to view "read-only" event examples.
  2. Once you have the code that you want to fire for each event, copy the HTML and paste it into the heading area above, make any edits, and save. 
Did this answer your question?