- In this video, I'm going to show you
how to set up the Facebook pixel in WordPress
in a way that follows the best practices
for Apple's recent iOS 14 privacy changes.
So, as you probably know,
Apple recently introduced certain privacy changes
that are limiting Facebook's ability
to track their users meaning as advertisers,
it limits the amount of data we get back from the pixel.
So, I'm going to show you how to install the pixel
plus set up Facebook Conversions API in one go
and in a way that takes less than 10 minutes to do.
So, stick with me
and we'll jump over to the computer now
and I'll show you exactly how to set this up.
And just remember, if you enjoy this video
the only thing that I ask
is that you hit that like button.
It really does help the channel
and it really does help us grow
and get these videos in front of more people.
And if you want to hear more from me
don't forget to subscribe and hit that little bell
to get notified when I release a new video.
So, the first thing to do is go over to Chrome
and open a new window.
So, you need to use Google Chrome as your browser for this
because we will be using a Chrome extension
that only works on Chrome.
So, I go over to Chrome and then up here in the top right
where you've got your extensions if you're on a computer,
meaning a windows PC,
you wanna right click any of these extension icons.
If you're using a Mac, it's a control click
and then you click manage extensions.
From here, we want to go over to extensions
up in the top left and click open Chrome web store.
Next type in Facebook Pixel Helper
and hit the enter to search.
And you want to install this extension here.
It says, "Facebook Pixel Helper offered by Facebook."
So, this is a Chrome extension
that Facebook themselves have developed
and put out there for everybody to use it for free.
What it does is it allows us
to check if the pixel is working on our website.
So, I'm going to click on that
and I'm going to click add to Chrome
and simply add the extension.
Now, it says, "Facebook Pixel Helper
has been added to Chrome."
That's great.
If we click this little jigsaw puzzle piece
you can see it appears in this list.
Where is it?
And if we click the pin
it's going to pin it to our task bar here.
And I'd like to just drag it to the end
so that's right there, it's that little icon.
Okay, closing out of that, go back to my website here.
Okay, so now I'm just going to refresh the page.
And what you'll see here
is the Facebook Pixel Helper tool is still great out.
And if I click on it
it actually says, "No pixels found on this website
and then add in tracking blockers can prevent pixel fires,"
which is a good little note to mention here
if you are using ad blocking software
make sure you disable it while you're doing this setup
because it does mess with the pixel,
it stops it from firing.
So, if you're trying to set up the pixel
then it's going to make that a difficult task for you.
So, disable any ad blockers now before we move forward.
Now, let's go and actually put the pixel on this site
and then we'll use that pixel helper tool
to confirm that it's working.
So, what you want to do
is log into your WordPress admin dashboard.
Usually, it's at your website/wp-admin.
Once you log in, you'll see a screen like this
and all you want to do is go into plugins
and click add new.
From here over in the search plugin section
we want to search for Pixel Caffeine.
Then you'll see we've got the Pixel Caffeine plugin
right here, it's by a company called AdEspresso,
click install now.
Once that's installed, click activate.
All right, once that is installed and activated
you can see where in the plugins list here
and we can scroll down and see Pixel Caffeine.
You'll also see in the menu on the left here
we've got Pixel Caffeine.
So, go ahead and either click settings here in this menu
or click on the Pixel Caffeine icon in the left.
It doesn't matter which one you choose, just pick one.
All right, you can see here this is the screen that I see.
I've had Pixel Caffeine installed on this domain before.
So, maybe my screen looks a little bit different to yours,
you might get the initial setup screen,
but either way what you want to do
is go into these settings and connect to Facebook.
So, you've got these big blue Facebook connect button.
You can manually install the pixel
but it's more complicated, so let's do it the easy way
and click Facebook connect.
All right, now we're going to choose an ad account.
By the way, if it asks you to log into your Facebook account
just go ahead and do that.
And then from here click the ad account
that you want to connect and choose your pixel.
Now, obviously you want choose the pixel
that is associated with that ad account,
they're going to run ads for, for this particular website.
Click apply.
All right, once that's done,
make sure you've selected enable up here.
It's done it automatically for me and then we go down here.
Now, this is the big thing that we want to turn on.
It is server-side tracking.
What this is going to do is it's going to turn on
the Facebook conversion API for you.
And as I mentioned at the start of the video,
this is crucial in terms of the iOS 14 privacy updates.
It's just a best practice.
Is it a magic bullet solution to fix the iOS (mumbles)
privacy issues?
No, it's absolutely not as I said before.
But it's best practice
and it will help you increase your match rate
if you turn on server-side tracking
and set up the Facebook conversion API
and this is a super easy way to do it.
So, just go ahead and turn that on.
And now, the next thing you need to do here
is get your access token.
So, here's how we do it.
Head over to the Facebook Ad Manager,
click on the business tools menu on the left
and go to events manager.
Once you're in the events manager
all you need to do is click implementations
and then scroll down a little
and you'll see generate an access token.
So, we want to generate an access token
and then simply click there to copy that to the clipboard.
Head back over to Pixel Caffeine,
paste the access token into that big box there
and you are good to go.
Now, before you continue, you need to scroll to the bottom
and click save.
Really important you do that
or none of these changes will take effect.
So, go ahead and save that
and then we'll look at a few other options in here as well.
Now, we're not going to turn on custom audiences,
but that's something you might want to do in the future.
The other thing we want to do later
is come back and set up our conversion.
So, we're going to check that the pixel is working.
Then once we confirm that we're going to come back here
and I'll show you how to set up conversions as well.
So, let's go over
and we'll open up the website here in a new tab.
You can already see
that the Facebook Pixel Helper Chrome extension
has changed color, it's now blue
and it's got a little green box there with the number two.
So, I'm going to click that.
And it says that one pixel has been found on the website
and you can see here it's got the pixel ID
and it's got the page view event being fired.
So, we can click on a few different pages here.
I've clicked the blog page, for example,
and just make sure that yes,
that pixel is actually firing across the entire site, okay?
So that's it for the first piece.
You've set up the Facebook pixel
and it's triggering the base events across your entire site.
Fantastic.
The next thing you want to do is track your conversions.
Meaning whenever somebody becomes a lead
or a customer on your website
you want to send that data back to Facebook,
a really important part of any good Facebook pixel set up.
So, to do that and to do it in a way
that also sends those conversion events back
through the Facebook conversions API which is what you want,
you do it like this.
Come back to the Pixel Caffeine plugin here,
go to conversions/events.
Now, I'm going to add new tracking
and I'm going to add a conversion event for my leads,
so when somebody signs up to my email list.
Let's go back, have another quick look at the blog here
to show exactly what I mean.
So, on the front page here, I've got a lead magnet.
You can click on this button, enter your name
and email and sign up for my email list.
When you do that, you become a lead and you hit this page.
It says, thank you,
you know, your lead magnet will arrive soon, whatever.
That's the thank you page
that people see after they opt into my email list, okay?
After they become a lead.
I'm just going to copy that URL
because I needed for this setup.
So, what I'm going to call is sign up for email lists.
I'm going to say trigger on a page visit
where the URL contains
and I'm going to put the unique part of that URL.
Notice I've stripped the HTTP, I've stripped the www,
all that part
and I've also stripped the trailing slashy as well
because I just want the unique part of that URL.
So, what I'm saying is that when somebody hits this page,
trigger a conversion event
and the event that I want to trigger is the lead.
So, it's going to tell Facebook
whenever somebody hits this thank you page
that they've just become a lead
and it's going to send that data to Facebook
and they can match that conversion to your ads, okay?
So, we don't want to set a delay here,
we don't want to send any advanced data for this one,
though if you're tracking a purchase,
you can send advanced study.
You want to send the values of iOS tracking at $997 cost.
I would come in here and set up a another conversion event
and I would set the value.
So, we'll leave advanced off for now
and I'll click create tracking.
Now, you can see here we've got our active tracking,
which is our sign up email list
and that's our thank you page.
Now, let's go back to the thank you page and test this.
If I click here, I can see that I've got...
Now, the lead event is being triggered on this page.
So, if I refresh this just to show you
before we visited this page we had the page view event only.
Now, we've got the lead event here.
If we go to my homepage, however,
you'll see that we just have the page view
and there's no lead event.
So, the lead event is only being triggered
on the thank you page, which is what I want.
People, I might only want to send that event back
when people actually sign up to my list
and hit that thank you page.
Now, if I wanted to set up an event for a purchase,
let's say somebody when they hit this page,
purchase-Ty, let's use that as an example
and say that after people buy my product
they hit that purchase-Ty page.
Well, I would get back to Pixel Caffeine
and I would add new tracking
And I would say purchased that amplified ads,
which is my course.
And I would say trigger on page visit
where the URL contains
and then I would put my purchase thank you page,
which is different to my lead thank you page.
And then I would trigger my purchase event.
So that's going to say, "Hey, this person hit that page
that people see after they purchase
meaning they've just bought the course,"
it's going to send that information back to Facebook,
we're going to send some advanced data as well.
Let's say the cost is 997 USD
simply enter that, click create tracking
and now we have our purchase event tracking as well.
So, you want to go through
and set up your conversion events
for every different type of conversion
and every thank you page
that people see after becoming a lead or a customer
across your entire website, okay?
Go and do that.
Once you've done it,
it's going to be automatically passing
that data for those conversions back via the pixel
and also through the conversions APR,
which again helps you with these iOS 14 privacy changes.
And it's just a general best practice
because you want to get as much data back to Facebook
about those conversions as you can
so that Facebook can match as many of those conversions
as possible to your ad campaigns.
All right, so you've now got the pixel
installed on your website,
but stick with me because there are two important things
that you also need to do in order to get ready
for these iOS 14 changes
and maybe they're already implemented,
which makes it even more important now.
So, what you need to do now is go and verify your domains.
There's a video that should pop up here to help you do that
and you need to set up
the aggregated event measurement as well.
There's a video on that that should pop up here.
Make sure after you've installed this pixel,
you go and complete those two things using those videos
then you'll be all set up in terms of your pixel
and your conversion tracking for iOS 14.
(slow music)