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
- Go to Events Manager.
- Click Connect Data Sources.
- Select an app Select Web and Get Started.
- 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
- In a new window, select Install code manually.
- Copy the pixel base code.
- 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.
- 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.
- 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
- Go to the Smartpages platform and enter the JavaScript codes of the landing page again.
- Edit the code for the Facebook pixel.
- 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.
- 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.
- Go to the editor and publish the landing page again.
- 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.
- Add base pixel code to your landing page’s JavaScript code, as described above.
- Go to the editor of your landing page and navigate to Button Settings.
- 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.
- Save and close. Publish your landing page.