Facebook Pixel

Kasper Bengtson

How to create better LeadFamly campaigns using the Facebook Pixel

It is my experience that most advertisers choose Website Traffic as the objective of their Facebook campaigns, when advertising for games created in LeadFamly.

While optimizing for website traffic is not bad practice, it is certainly not best practice. Instead, you should choose Website Conversions as your campaign objective and let Facebook target those, who are most likely to become actual leads.

In this article, I will illustrate why and how you should optimize for Website Conversions on Facebook, when you advertise for your LeadFamly campaigns.

Why the objective matters

Let´s say that 1.000.000 people are within your target audience.

Of these, some are likely to engage with your ad (like, comment, share), others are likely to click the link and a third segment is likely to participate in your LeadFamly quiz.

Facebooks advertising-engine is tailored to provide you with the best results, so when you choose website traffic as your campaign objective, the engine will show your ads to those, who are most likely to click on your ad – or click on ads in general.

If you create a post and use the “Boost”-button to reach a broader audience, the engine will optimize for engagement and thus reach the segment of your audience, who are most likely to engage with your post – or posts in general.

However, you don’t want that. What you really want is to reach those in your target, who are most likely to participate in your game.

It´s all about data

If you feed Facebook with information about your quiz participants and optimize your campaign for Website Conversions, the engine will be able to reach more people, who are likely to participate rather than just click or like your ad.

Because you are charged for impressions, reaching the right people will result in more conversions (quiz participants) for the same amount of money.

Additionally, the data will allow you to:
- exclude those in your target audience, who have already participated in your quiz
- create lookalike audiences based on your participants
- better measure the results of your advertising in relation to LeadFamly
- retarget segments of participants – for example those who lost a quiz or those of a certain personality (in a personality game).  

Setting up pixel tracking in LeadFamly

In order to connect your Facebook Ad Account with LeadFamly, you must locate your Facebook Pixel, insert it in your LeadFamly campaign and add the conversions, you want to track. 

Locate your Facebook Pixel

Go to Ads Manager, choose Pixels in the menu and click “Set up pixel”. If asked, click “Copy and Paste the Code”.

If you haven’t already created a Facebook Pixel on your Ad Account, you might need to click the green button in the bottom of the page and do that first.

Copy the entire Pixel-code to your Clipboard:

Insert it in your LeadFamly campaign

Go to the Advanced-tab in your campaign settings, choose Javascript and paste your Facebook Pixel into the text-area: 

Please remove the <script> and </script> tags – and everything outside these (the sections, I have marked). 

Now, click Save Javascript. 

Custom Conversion Tracking

The Facebook Pixel will now be loaded on every page of your campaign. Hence, it will register when people visit the campaign and who visits it. 

However, we need to measure the actions of the visitors – and especially the actions that we want to optimize for on Facebook.

To illustrate this for you, I have created a simple “Facebook Advertising Quiz” with 15 questions:

    

People were sent to a “Winner”-page if they answered at least 10 questions right. The winner- and loser-page contain different texts but on both pages, I encourage people to sign up for our newsletter. When they do, they are sent to a thank you page. 

What to you want to track and optimize for?

In my case, I wanted to track the following events/conversions:

When people load the quiz (Quiz Loaded)
When people start the quiz (Quiz Startet)
When people complete the quiz (Quiz Completed)
When people sign up for our newsletter (Quiz Newsletter Signup)

I therefore created a custom conversion tracking code for each of these:

<script>
fbq(’track’, ’Quiz Loaded’)
</script>

<script>
fbq(’track’, ’Quiz Startet’)
</script>

<script>
fbq('track', 'Quiz Completed', {
outcome: 'Winner' }); 
</script>

<script>
fbq(’track’, ’Quiz Newsletter’)
</script>

Notice, that I added the parameter Outcome to the Quiz Completed conversion. In that way, I can differentiate between the number of winner-completions and loser-completions in my Facebook Ads report, while still optimizing for Quiz Completion conversion.

Insert the custom conversion scripts

You must now insert the custom conversion scripts on the relevant pages.

Go to the “Integrations”-tab and add the “Pixel Tracking” integration.  

When added, go the settings of that integration.

Click the “Add tracking pixel”-button, choose desired condition and insert the relevant piece of tracking code. 

For instance, I chose that when the Flow Page “Præsentation” (Presentation) is opened, the “Quiz Loaded”-script should be executed:

Likewise, I chose that the “Quiz Completed”-script should be executed when the Flow Page, Winner Page (Vinderside), is loaded – and of course with the winner parameter:

You must do this for every action/step that you want to track. However, the most important step to track, is the one you want to optimize for. 

In my case, I wanted to optimize for the “Quiz Completed” conversion and I therefore made sure that this was executed on both the Loser and the Winner Page – but with different parameters (loser/winner).

Remember to save your changes.

Check if it works

Install the Chrome Extension, Facebook Pixel Helper.

Go to the demo-version of your game and click the Pixel Helper icon in your browser to see if the right events are executed on the relevant pages.

In my quiz, I checked the pages and found that all events were executed correctly. The more steps I went through, the more events were executed. 

Create Custom Conversions

Now, you must tell Facebook to track these exact conversions. 

Go to Ads Manager, choose Custom Conversions in the menu and click “Create Custom Conversion”. 

In the popup, choose “event” and pick the first conversion, you want to create. 

Name it – and repeat until you have created all events as custom conversions within your Ad Account:

Create the campaign

As soon as you have set up all the technical stuff, you are ready to create a campaign in Ads Manager or Power Editor. 

On the campaign level, choose “Conversions” as the objective:

On the Ad Set level, choose the conversion, you want to optimize for:

In my case, I want people to complete the quiz and therefore choose Quiz Completed.

You should choose the conversion that reflects the success of the campaign. If the success for your campaign is registrations/newsletter signups, you should choose optimize for registration-events instead.
Set up the campaign as usual via Facebooks Ads Manager or Power Editor. Because of the conversion-setup, Facebook will automatically make sure to reach the segment of your audience that is most likely to convert. The result is … well … better results!

Better reporting

As a result of the custom conversion setup, you can easily see the results of your campaign in Facebooks Ads Manager:

The standard reporting template will show you the amount of conversions the ad spend has resulted in – and thus the price per conversions.

As you can see, the price for a Quiz Completion is only DKK 8,82,- in my pretty advanced Facebook Advertising Quiz! 

The more custom conversions, you have created, the more data will be visible in your report. To see data from your secondary custom conversions, click the “Columns”-dropdown and choose “Custom Report”. 

Click “Website” in the left menu and choose the data that you want to include in your report:

When you apply these settings, a report with a great overview of the relevant data appears. 

As you can see, more than half of the people who started the quiz, didn’t complete it. In my case, this is good, because it would have been too easy otherwise

Also, I can see that only 20 % of the participants signed up for our newsletter after participating in the quiz. This number is a bit lower than expected, so I could make an effort to communicate the advantages of our newsletter better in a future campaign. 

For me, this quiz was just a demo for this blog-post. But as you can see, optimizing for conversions on Facebook results in a low cost per participant – even for a advanced Facebook advertising quiz made for fun - and with little effort - by an social media agency.