Facebook Pixel Integration

Facebook Pixel is a great way to track actions on your Thinkific site which you can use to track conversions from Facebook Ads, build audiences and optimize ads based on collected data and more. 

We've developed a built-in integration to make it easy to set up your Facebook pixel and start tracking on your site right away without having to dig into your site code!

Skip to a section:

What does the Thinkific Facebook pixel integration do?

How to use the integration

Tracking Conversions


What does the Thinkific Facebook pixel integration do?

By using our integration, it allows you to easily track two standard events:

  1. Page Views - this event will run on every page of your Thinkific site.
  2. Purchase - this event runs after the successful purchase of any paid course on your Thinkific site. Our integration will send over the amount paid for the course, the currency of the purchase to your Facebook pixel, product title, price title, and price amount.

How to use the integration

To easily track the two standard events listed above, all you need to do is the following.

  1. Make sure you have a Facebook pixel created by following the instructions here
  2. To install the code on your Thinkific site, copy the base pixel code provided which should look something like below:
    <!-- Facebook Pixel Code -->
      s.parentNode.insertBefore(t,s)}(window, document,'script',
      fbq('init', 'your-pixel-id-goes-here');
      fbq('track', 'PageView');
      <img height="1" width="1" style="display:none" 
    <!-- End Facebook Pixel Code -->

  3. Paste the entire base pixel code into your integrations page of your Thinkific account into the Facebook pixel section. This can be found in the Market & Sell section of your admin dashboard:

  4. Check that your pixel is installed properly by downloading the Facebook Pixel Helper and visiting a page on your Thinkific site to see if the pixel is running. You should see the PageView event run on every page of your Thinkific site. Don't forget to disable your adblocker if you have one installed on your browser!

And that's it! By pasting your base pixel code, our integration automatically tracks both page views and purchase events on your Facebook Pixel. 

Tracking conversions

Paid courses

If you're running ads to a paid course, you can simply set up your ad with the marketing objective as a conversion using the Purchase event that our Facebook Pixel integration sends.

Free courses / free previews

If you're looking to track conversions for a free course, you'll want to set up a custom conversion as the Purchase event that our integration sends does not fire for a free course or free trial. 

Here's how to set it up:

1. Go to My Courses and click on Edit for the course that you'll be tracking. In the Course Builder, click on the Preview or Preview as a Student button in the top right corner to view the course as a student. 

2. Make sure you are in the first lesson in the course, and copy the URL from the address bar at the very top of your web browser screen.

3. In your Facebook Ads Manager, navigate to the Pixel page and click the Create Custom Conversion button in the top right.

4. Add your first lesson's URL in the text field and choose the URL Equals option, as well as choosing the Complete Registration event type for the Category.

5. Click Next, name your event, and save. Now, when you are in your ad creation step, you can choose this event as the conversion event, and Facebook will be able to track when new customers click your ad and then sign up for your free course!

Multiple ads to different paid courses

If you're running multiple ads to different courses, you'll want to use custom conversions for each ad rather than the standard purchase event our integration fires. We recommend setting up the custom conversion to the URL of the first lesson in each course (as indicated in the instructions above). 


When I view my Purchase event information, how do I know what course was purchased?

Our integration was designed to simply send over the value of the course to your Facebook pixel in this format: fbq('track', 'Purchase', {value: '0.00', currency: 'USD'});

If you wanted to customize the purchase event information sent to your Facebook pixel, we recommend manually installing your Facebook pixel and customizing the events that are sent to your pixel. 

I want to customize/add more standard events to be tracked on my Thinkific site. How do I do that?

If you want to track additional standard events on your Thinkific site or require more information to be sent with your standard purchase event, we recommend manually installing the Facebook pixel. A few things to help you get started:

  1. The base pixel code can be easily added on every page of your Thinkific site by adding it to the Site Footer Code section in your Settings
  2. If you are customizing your own purchase event, we recommend adding it to the Order Tracking Code section in Settings.
  3. If you are looking to set up a custom conversion using your Thinkific Thank you page, the page that a user will land on once a purchase has gone through is a thank you page that will begin as follows:* The * will be a unique variable for each purchase.

Note: this is only recommended for those comfortable with Facebook pixel and coding as our Support team is unable to assist with implementing custom conversions or custom pixel set up. 

If you're looking for more assistance in setting up your Facebook pixel or creating ads on Facebook, we recommend taking a look at Facebook's guides here which provides information for beginner, intermediate and advanced users of Facebook pixel users.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.