Skip to main content
Facebook Pixel
Andrej Janev avatar
Written by Andrej Janev
Updated this week

This feature is only available on our Business Plan and higher.


Overview

The Facebook Pixel feature allows you to add your Facebook Pixel onto the pre-entry and post-entry pages of the promotion. This will allow you to track page views and leads attributed to your Facebook ads, or if you want to build custom audiences. This feature allows for a quick and easy way to add your Facebook Pixel, without having to touch any code. In addition, we support the Facebook Conversions API which is now recommended in order to properly track conversions.

1) Find your Facebook Pixel

To get your Facebook Pixel:

  1. Login to your Facebook account, then go to Events Manager.

  2. On the left hand side click Data Sources. You will see your Pixels listed on the left-hand side with their ID below them, or you can create a new Pixel.

2) Complete the Connection

When setting up your promotion in ViralSweep, go to:

  1. Integrations > Facebook Pixel.

  2. Input your Facebook Pixel ID.

  3. Decide if you want to enable lead tracking, which means a Lead event will be fired within Facebook when someone completes your form.

3) You're connected

Your Facebook Pixel is now connected to your campaign. We recommend using the Facebook Pixel Helper Tool to run tests to ensure it is working properly.

4) Enable the Conversions API - RECOMMENDED

The Facebook Conversions API works with your Facebook Pixel to help improve the performance and measurement of your Facebook ad campaigns. Due to recent browser changes in Safari, Chrome Incognito (and soon regular Chrome), Facebook Pixel will no longer function without using the Conversions API.

To get your Conversions API Access Token:

1. Login to your Facebook account, then go to Events Manager.

2. On the left side, make sure you have the correct account or business portfolio selected. Then click on + Connect Data.

3. Once the popup appears:

  • Choose Web and click Next.

  • Select the pixel you want to use or create a new one.

  • Input your website URL. Deselect Integrate with Google Tag manager and click Next.

  • Select Meta Pixel and Conversions API and click Next.

  • Select Set Up manually and click Next.

4. Click Continue in the lower right corner.

  • Under Events Sent Using Pixel Code, select Pageview if it is available.

  • Under Additional Events, click the dropdown and choose Technology > View Content and Complete Registration.


​5. Under Select Parameters choose the Complete Registration Event and select the following:

  • Event Time

  • Event Name

  • Event Source URL

  • Action Source

  • Event ID

  • Client IP Address

  • Client User Agent

  • First Name

  • Last Name

  • Phone

Next, click View Content and choose the following:

  • Event Time

  • Event Name

  • Event Source URL

  • Action Source

  • Event ID

  • Client IP Address

  • Client User Agent

  • First Name

  • Last Name

  • Phone

Next, click PageView and choose the following:

  • Event Time

  • Event Name

  • Event Source URL

  • Action Source

  • Event ID

  • Client IP Address

  • Client User Agent

  • Phone

Review the setup looks correct and click Continue.

6. On the See Instructions page click Open Implementation Guide under the Manually Implement the API Yourself option.

7. Click Get Started, and this will take you to the Generate Access Token Section. Click on the button to generate your access token. Copy the token.


Scroll to the very bottom of the page and click Finish.​


​8. Next, head over to ViralSweep, click Edit on your promotion and go to Integrations > Facebook Pixel. Paste the Token into ViralSweep under the Conversions API Access Token field. Add your Facebook Pixel ID as well if you have not done so already.


​9. Finally, we need to test sending an entry or two into your promotion to ensure it is sending events to Facebook. Simply visit your promotion in a new browser (like Incognito or Private Browsing mode) and enter the promotion by submitting the form.

10. Facebook has a reporting delay, so the complete setup screen may display on your pixel for a while (up to an hour or more in some cases). Periodically revisit the pixel page and refresh it multiple times until you finally see a screen like this:

11. It will then take a little while longer (in some cases over an hour) but the events will finally show up, so keep checking back. Once they show up, it will look like this:

That's it! The Facebook Conversions API is now setup. Once people start visiting and entering your promotion, the data will get passed to the Conversions API.


We're here to help

If you have any further questions, please start a Chat. Just "Click" on the chat icon in the lower right corner to talk with our support team.

Did this answer your question?