In this article:
How to Access Your Tracking Code
About This Feature
Tracking code enables you to easily add HTML and/or Javascript to your Thinkific site, so that you can keep track of events such as referrals and conversions in external software such as analytics programs, affiliate programs, etc. These sections are generally used if you have a custom tracking code that does not rely on tracking provided via the Facebook Pixel Code, and or Google Analytics and Google Tag Manager
Below, we’ve included some general info on how tracking code works on Thinkific and the variables that you can use to send information on user signups and orders to whichever external software you’re using!
How to Access Your Tracking Code
To access the tracking code settings in your Admin Dashboard:
- Click Settings in the menu on the left-hand side of your dashboard
- Select the Code & analytics tab from the top of the page
- Select Order Tracking Code or Signup Tracking Code
- Click Save
Order Tracking Code
Order Tracking Code allows you to track conversions to paying customers on your Thinkific site. This field adds code specifically to your checkout thank you page, so your code will send information back to your external software whenever a purchase is successfully completed.
You can use the following Liquid variables, wrapped in {{ }}, to send over details of the order:
- order_number
- product_name
- billing_name (The full name of the person who made the purchase)
- billing_email
- payment_method
- total_price_in_cents (e.g. 10000 for $100.00)
- total_price (The amount in dollars and cents e.g. 100.00)\
- referral_code
- product_id (The unique identifier of the product that was purchased)
- payment_provider (e.g. Stripe or PayPal)
- buyer_identifier (The unique identifier of the purchaser in the context of the payment provider. For example, for Stripe this would be the cust_XXX identifier.)
For example, to send the order number include {{ order_number }} in your tracking code - this will output the Thinkific order number, e.g. 00001.
Signup Tracking Code
Signup Tracking Code allows you to track new user signups on your Thinkific site. Order Tracking Code will not fire for free courses, so if you’re looking to track signups for a free course, or general user signups to your site even if they don’t result in a purchase, then you can use this field instead.
You can use the following Liquid variables, wrapped in {{ }}, to send over details of the signup:
- id (The unique identifier of the user that signed up)
- first_name
- last_name
- full_name
- created_at (The date of the signup in the number of seconds since the Unix epoch)
For example, to send the user’s email include {{ email }} in your tracking code - this will output e.g. joe@example.com.
Common Uses for Tracking Code
Some of the most common uses for tracking code are for tracking conversions based on advertising campaigns run on Google and Facebook. For Google Analytics 4, please refer to the instructions for setting up conversion tracking. For Facebook ads, there’s no Advanced Settings code required - simply paste your base pixel code in the Facebook Pixel Integration in your admin dashboard.