Adding the Facebook Meta Pixel to your site
Embedding the Facebook Meta Pixel (formerly known as Facebook Pixel) in your RevasOS-powered site allows you to track user actions on your site, optimize Facebook advertising campaigns, and collect important data for remarketing. Follow the steps below to integrate the Meta Pixel into your site.
Attention to privacy
When you insert this type of scripts that can install cookies or collect information about the user and their devices, remember to always have consent management active via Consent Platform Managemtn, for example Iubenda.
Get the Facebook Meta Pixel code
Log in to your Facebook Business Manager account: Go to Facebook Business and log in with your credentials.
Create a Pixel:
- In the Business Manager dashboard, click Event Management.
- In the Pixel section, click Add to create a new Pixel.
- Give your Pixel a name and enter the website URL, then click Continue.
Get your Pixel code:
- After creating your Pixel, select your Pixel from the list of available ones.
- Click Settings and scroll down to the Install Pixel section.
- Choose the Manually install Pixel code option and copy the code that starts with
<script>
.
Enter the code on RevasOS
Once you have the code, go to RevasOS and:
Log in to your website's Dashboard.
Click Settings > Custom code.
Add the code in the HEAD field:
- Paste the Facebook Meta Pixel code in the HEAD Code field.
Save the settings.
The Pixel will now be active and will start tracking users who visit your site.
Verify the installation
Once you have saved the code, you can verify that the Pixel is correctly integrated into your site:
Use the "Facebook Pixel Helper" extension: This Chrome extension allows you to verify if the Facebook Pixel is active and working on your site.
- You can download it from the Chrome Web Store.
Check the data in your Facebook Business account: Go to Events Manager to see if the Pixel is recording events correctly.
Triggering via Google Tag Manager
If you prefer to manage your Facebook Meta Pixel via Google Tag Manager, you can follow the steps below:
Add your Meta Pixel via Google Tag Manager:
- Go to Google Tag Manager and create a container, as described in the Google Tag Manager guide.
- Create a new Tag and select Custom HTML as the tag type.
- Paste the Pixel code (that you copied earlier) into the HTML field.
- Configure the trigger so that the tag fires on all pages or on specific pages where you want to track actions. Add the triggers that fire (e.g. All pages, Edit history, Link clicks, etc.), making sure you have a tag that handles the initialization of consents.
- Save and publish the tag.
External guide for Google Tag Manager integration:
- You can follow the official Facebook guide to integrate the Meta Pixel via Google Tag Manager: Facebook Meta Pixel and Google Tag Manager Guide.