Lesson

Pixel FB settings

Lesson Overview

Facebook Meta Pixel Integration

The Facebook Meta Pixel is a piece of JavaScript code on your website that can help you better understand the effectiveness of your advertising and the actions people take on your site, like visiting a page or adding a product to their cart.

You'll also be able to see when customers took an action after seeing your ad on Facebook and Instagram, which can help you with retargeting. This code is used for local landing pages loaded into the tracker. If there is no access to the code (offer redirect), you can use the Conversions API setting. See Facebook integration.

Dynamic FB Pixel Keitaro

This method is more suitable for classic traffic launches, mainly in the Nutra, Dating, and Crypto verticals.

Step 1: Create Traffic Source

  1. Create traffic source in the tracker using a ready-made Facebook template and add the source to the campaign and the campaign parameters will be filled in automatically, including the pixel parameter:

Traffic Source Configuration

  1. Open the landing page in the Editor and go to index.html (or index.php).

Step 2: Add Pixel Script to Head Section

Add between and the following code:


⚠️ WARNING
If another parameter in the campaign is used to transfer the pixel, for example, px, you need to replace it in the script: from document.cookie = "pixel={pixel} to document.cookie = "pixel={px}

Head Section Code

Step 3: Add Hidden Input Fields

Search the code to find the "input" section and add:




Input Fields

Paste the code as shown in the screenshot above.

Step 4: Add Pixel Firing Code

Open the file or page where you want to install the pixel, for example, a thank you page, and add the following code after the tag:


How to Check Pixel Operation?

To check the functionality of the pixel, use the Google Chrome extension — Meta Pixel Helper.

When you visit a page with the pixel, a small number will appear on the Facebook Pixel Helper icon, indicating the number of pixel events. Clicking on the icon will expand the panel, showing an overview of the page's pixels, including warnings and errors.

Meta Pixel Helper

Key Benefits:

  • Conversion Tracking: Monitor user actions after clicking your ads
  • Retargeting: Create custom audiences based on website visitors
  • Optimization: Improve ad delivery to people likely to take action
  • Analytics: Better understand your audience behavior