Track Events with the Facebook Pixel and google on Your Learnyst Website
To monitor the conversion rates for purchases and sign-ups using your Meta Pixel and Google.
When a learner makes a course purchase or clicks on the signup button, the Facebook Pixel will track these actions, which are called Events.
Access the Event Setup Tool
- Go to the Events Manager of your Facebook Meta Pixel account.

- Select Data Sources.
- Click on Settings and choose Open Event Setup Tool.

Tracking Purchase Event
-
Enter your learner website URL
Example:
https://your-school.learnyst.com/learn -
Click the Add Events button

-
Your learner site academy will open with the Meta event setup popup.
-
Open any product checkout page on your learner website and complete a test purchase
.png?width=670&height=408&name=Track%20Purchase%20through%20meta%20pixel%20(1).png)
-
Once the payment is successful, Click Track a URL
.png?width=670&height=408&name=Track%20Purchase%20through%20meta%20pixel%20(2).png)
-
In the URL condition field, Remove all parameters except:
UserPaymentSuccess=true.png?width=670&height=408&name=Track%20Purchase%20through%20meta%20pixel%20(3).png)
- Click Select an Event
-
Choose Purchase
.png?width=670&height=408&name=Track%20Purchase%20through%20meta%20pixel%20(4).png)
-
Click Change if you want to customize tracked values
.png?width=670&height=408&name=Track%20Purchase%20through%20meta%20pixel%20(5).png)
-
Select the required values to track
.png?width=670&height=408&name=Track%20Purchase%20through%20meta%20pixel%20(6).png)
-
Click Confirm
.png?width=670&height=408&name=Track%20Purchase%20through%20meta%20pixel%20(7).png)
-
Then click the Done button
.png?width=670&height=408&name=Track%20Purchase%20through%20meta%20pixel%20(8).png)
-
Then click the Finish Setup button
.png?width=670&height=408&name=Track%20Purchase%20through%20meta%20pixel%20(9).png)
-
Then click the Finish button
.png?width=670&height=408&name=Track%20Purchase%20through%20meta%20pixel%20(10).png)
-
Your purchase tracking event is now configured.
Track Sign-Up Events Step 4: Add Signup Tracking Code
-
Go to Marketing → Integration
-
Select Code Snippet
.png?width=670&height=321&name=Track%20sign%20up%20through%20meta%20pixel%20(1).png)
-
Click Signup Tracking Code
-
Paste the following code:
<script>
window.dataLayer = window.dataLayer || [];
function trackSignupEvent(email) {
dataLayer.push({
'event': 'signup',
'user_email': email
});
}
</script>.png?width=670&height=321&name=Track%20sign%20up%20through%20meta%20pixel%20(2).png)
-
Save the changes.
-
Now, go to your Meta Pixel Account
-
Navigate to: Connect Data → Datasets → My Facebook Pixel
-
Select Test Events
-
Click Test Event

-
Now sign up as a learner on your academy website.
- You can verify whether the signup event is being tracked successfully in the Meta Pixel dashboard.