Facebook pixel is a code that you add to your landing page to receive information about the actions taken on your landing page. It helps you to boost the relevance of your campaigns to your audience.

We’are currently working on adding an integration with the Facebook Conversion API.

Get your Facebook pixel

  1. Go to Events Manager.
  1. Click Connect Data Sources.
  1. Select an app Select Web and Get Started.
  1. Select Facebook Pixel and click Connect.

5. Add your Pixel Name. You can also enter your website URL to check for easy setup options. Click Continue.

Install the pixel in Smartpages

  1. In a new window, select Install code manually.
  1. Copy the pixel base code.
  1. In a new tab, open Smartpages, log in to your account, and navigate to the Dashboard of your landing page.

You can also access the JavaScript codes section directly from the editor of your landing page.

  1. Go to JavaScript Code (1). If you do not have any codes, click on Add script (2).

5. Type in a name (1). Paste the code (2), and select Head (3) and Main page or Conversion page (4). Click on Add.

6. Once you add the code, publish your landing page. Go to the editor and click on Publish.

7. Go back to Events Manager. Click on Continue.

  1. In the next step, you can choose Automatic Advanced Matching and verify the customer information you want to send.

Track events – basics

Events are actions that take place on your site. Standard events are predefined by Facebook and allow you to record conversions, optimize for conversions, and create audience groups. The base code only includes the page view event.

In the Smartpages platform, events are installed manually using a snippet. If this is your first time configuring Facebook pixel settings, you can close the next window.

Here you can find the list of snippets for standard events.

Copy a standard event code from the list, such as:

Track events on pages

  1. Go to the Smartpages platform and enter the JavaScript codes of the landing page again.
  1. Edit the code for the Facebook pixel.
  1. Paste the event code at the end of the base code (before the closed tag). You can paste multiple codes, one below the other. Then save and close.
  1. If you want to track an event on the main page and another only on the conversion page, create two separate scripts. Each should contain the base code and the corresponding event code.
  2. Go to the editor and publish the landing page again.
  3. Verify if the code works properly, for example, by using Chrome browser extension Facebook Pixel Helper.

Track events on buttons

You can enable event tracking also for buttons on your landing page.

  1. Add base pixel code to your landing page’s JavaScript code, as described above.
  1. Go to the editor of your landing page and navigate to Button Settings.
  1. In the Settings tab, paste your event snippet in the onClick event field (e.g. from Facebook Pixel Standard Events list). Do not enter and tags.
  1. Save and close. Publish your landing page.

Was this article helpful to you?


Comments are closed.