Skip to content
  • There are no suggestions because the search field is empty.

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.

  1. Access the Event Setup Tool 

  2. Tracking Purchase Event
  3. Tracking Sign up Event

Access the Event Setup Tool

  • Go to the Events Manager of your Facebook Meta Pixel account.

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

    facebook1

Tracking Purchase Event

  • Enter your learner website URL

    Example: https://your-school.learnyst.com/learn

  • Click the Add Events button
    Track Purchase through meta pixel

  • 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

    Track Purchase through meta pixel (1)

  • Once the payment is successful, Click Track a URL
    Track Purchase through meta pixel (2)

  • In the URL condition field, Remove all parameters except: UserPaymentSuccess=true

    Track Purchase through meta pixel (3)

  • Click Select an Event
  • Choose Purchase

    Track Purchase through meta pixel (4)

  • Click Change if you want to customize tracked values
    Track Purchase through meta pixel (5)

     

  • Select the required values to track

    Track Purchase through meta pixel (6)

  • Click Confirm
    Track Purchase through meta pixel (7)

     

  • Then click the Done button
    Track Purchase through meta pixel (8)

  • Then click the Finish Setup button
    Track Purchase through meta pixel (9)

  • Then click the Finish button
    Track Purchase through meta pixel (10)

       

    • Your purchase tracking event is now configured.

     Track Sign-Up Events Step 4: Add Signup Tracking Code

    • Go to Marketing → Integration

    • Select Code Snippet
      Track sign up through meta pixel (1)

    • Click Signup Tracking Code

    • Paste the following code: 

      <script>
        window.dataLayer = window.dataLayer || [];

        function trackSignupEvent(email) {
          dataLayer.push({
            'event': 'signup',
            'user_email': email
          });
        }
      </script>

      Track sign up through meta pixel (2)

    • Save the changes.

    • Now, go to your Meta Pixel Account

    • Navigate to: Connect Data → Datasets → My Facebook Pixel

    • Select Test Events

    • Click Test Event
      Track sign up through meta pixel

    • 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.