Meta (facebook) Pixel is a code snippet that allows you to track, enhance, and create target audiences for your advertising efforts by utilizing user interactions on your website across various devices, thereby improving the effectiveness of your Facebook ad campaigns.
In LearnWorlds, by default, certain events like Registration, Free Trial, and Purchase are automatically sent to your Meta (formerly Facebook) Pixel account. This allows you to track key interactions on your platform for better ad targeting and analytics.
However, if you want to track additional events beyond these default ones—like course completions, or quiz submissions—you can do so by using an advanced setting for Server-Side Events combined with automations.
In this article, we will walk you through setting up automations and enabling the necessary settings to send custom events for use in Meta Pixel.
How to Send Additional Events
The most important part is that you need to set up Automations: Within LearnWorlds, you can create automations that are triggered by specific user actions. For example, you could set up an automation to trigger when a student completes a course.
Navigate to Users → Automations and create a new automation.
You have the option to use only if conditions with your automations related to GDPR. You can choose to send those data only if the user has accepted cookies or if they are subscribed to marketing emails.
Before completing your automation make sure that your integration is activated so the flow can work properly. Navigate to Integrations → Analytics and Enable server side events and paste the Access Token created in your Meta account. In case you also want to send the default events make sure to enable the three checkboxes related to the events in Meta Pixel.
You can check how to find your Pixel here. To create your Access Token follow the following steps:
1. Visit the Facebook Pixel page using your Facebook account, and go to Events Manager.
2. Click the green plus + icon to Connect data sources, select Web, and Connect.
3. Add your dataset name and click on Create.
4. Enter your website URL and click on Check.
5. Choose the “Do it yourself” option and click on Next.
6. Choose to connect with Meta Pixel and Conversion API, click on Next.
7. Click on Set up manually.
8. Click on Continue.
9. Select the event and customer information parameters and click on Continue.
10. Review the setup and click on Confirm Setup.
11. Click on Set Up Conversion API.
12. Click on Generate Access token.13. Copy the created token.
14. Navigate back to your LearnWorlds school and paste the token from above under Enable server side events in the Access Token tab.
You can now leverage automations to send any type of event you desire on Meta Pixel, and utilize it for your campaigns.