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.
In this article:
About This Feature
We've made it easy to set up your Facebook pixel and start tracking on your site right away without having to dig into your site code! By installing the Facebook Pixel App, you can easily track two standard events:
- Page Views - this event will run on every page of your Thinkific site.
- Purchase - this event runs after the successful purchase of any paid product on your Thinkific site. Our integration will send over:
- the amount paid for the product as the value parameter
- the currency of the purchase to your Facebook pixel
- the product name of the purchase which includes the name of the product and the pricing label (if applicable)
How It Works
To easily track the two standard events listed above, follow these steps:
Setting up Your Facebook Pixel
- Make sure you have a Facebook pixel created by following the instructions here. You do not need to set up events in Pixel, you can simply use the Base Pixel setup.
- To install the code on your Thinkific site, copy the base pixel code provided which should look something like below:
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', 'your-pixel-id-goes-here');
fbq('track', 'PageView');
</script>
<noscript>
<img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=your-pixel-id-goes-here&ev=PageView&noscript=1"/>
</noscript>
<!-- End Facebook Pixel Code -->
Installing the Facebook Pixel app in Thinkific
- Make sure you are signed in to your Thinkific site
- Locate Facebook Pixel in the Thinkific App Store
- Click to Install the app
- Review the Permissions & App details page
- Click Accept & Install to continue
- Once the app has successfully been installed, you will be taken to the Facebook Pixel app details page in Thinkific
-
Paste the entire base pixel code into the Base Code field
- Click Save
-
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
There are different conversion types that you can track using the events sent via our Facebook Pixel integration.
Please note that our Support Team can only assist with questions about ensuring our integration is sending the proper PageView and Purchase events and we are unable to assist with specific questions about how to use Facebook Ads or set up tracking in Facebook.
Paid Products
If you're running ads to a paid product, you can simply set up your ad with the marketing objective as a conversion using the Purchase event that our Facebook Pixel integration sends. Our Purchase event include the product name so you can segment the data based on the name included in the event parameters.
Free Products / Free Previews
If you're looking to track conversions for a free product, you'll want to set up a custom conversion as the Purchase event that our integration sends does not fire for a free product or Free Preview.
Here's how to set it up for a free course:
- 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.
- 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.
- In your Facebook Ads Manager, navigate to the Pixel page and click the Create Custom Conversion button in the top right.
- 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.
- 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 Products
If you're running multiple ads to different products, our integration creates a standard Purchase event in Facebook for any order made on your Thinkific site. We send the price and product name of each order to Facebook in the Purchase event so you can use that information to set up your reporting or custom conversions for tracking.
What this means is that for each ad, you can set it up with the marketing objective as a conversion using the Purchase event created by our integration. You also have the option of segmenting the conversion in Facebook if you are using the ad to target a specific product on your Thinkific site. This would be done in your Facebook Ads set up by including a filter to only consider purchases with product name that matches the product in Thinkific you are targeting.
Important Considerations
- If you are using our After Purchase Flow feature, the Facebook Pixel Integration has some different behavior. Make sure to review: Facebook Pixel Tracking When Using After Purchase Flow
- Facebook Pixel will not work with Performance Checkout if their installation requires an edit to be made to the site's theme code, or by adding a code snippet to the site footer code.
Frequently Asked Questions
How can I test my Facebook Pixel?
Download the Facebook Pixel Helper and visit a page on your Thinkific site to see if the pixel is running. You should see the Page View event run on every page of your Thinkific site. Don't forget to disable your adblocker if you have one installed on your browser!
If you would like to test a Purchase event, create a 100% off coupon to test purchasing your product. The Purchase event runs on the Thank you page after a student makes a purchase and using a coupon will still take you to the Thank you page!
When I view my Purchase event information, how do I know what product was purchased?
Our integration was designed to simply send over the value of the product to your Facebook pixel in this format: fbq('track', 'Purchase', {value: "{{total_price}}", currency: "USD", product_name: "{{product_name}}"});
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:
- 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.
- If you are customizing your own purchase event, we recommend adding it to the Order Tracking Code section in Settings.
- 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: https://yoursite.thinkific.com/orders/thankyou/* The * will be a unique variable for each purchase. Learn more here: What is the Thank You page URL after a purchase?
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.
Not quite what you wanted? Looking for more integrations?
We're adding new integrations to the platform every day: see all our available integrations here.