How to Add Facebook Pixel to Your WordPress Website
- Non Plugin Route: Add snippet from Facebook to your header.php file or through theme header box 02:10
- Plugin Route: PixelYourSite 03:00
Read the full episode transcript below:
00:28 David Blackmon: Hey everybody. Welcome to another episode of wp the podcast i’m David Blackmon
00:35 Tim Strifler: And I’m Tim Strifler.
00:38 David Blackmon: You know Tim, before we start this episode i gotta say i’m liking recording these for YouTube. So if you’re listening to this, and you never listen all the way to the end we’re putting these on Youtube, and we’re recording ourselves, recording WP The Podcast, so go say hi to us, check it out and subscribe to our channel, because we need lots of subscribers. Today we’re going to talk about how to add the Facebook Pixel to your WordPress website did you want to say something before i dive in?
00:57 Tim Strifler: No, i was going to say we just need to maybe mention what the facebook pixel is and why you might want it.
01:13 David Blackmon: Well Tim, why don’t you go ahead and define it?
01:20 Tim Strifler: So the Facebook Pixel is the Facebook tracking code. Facebook Pixel sounds sexier than facebook tracking code, no one wants to be tracked, but basically it uh if you plan on running Facebook ads on on to your website at any point, you’re going to want to add the Facebook Pixel immediately. To start getting data and it basically is going to tell Facebook when someone converts, when they buy and that sort of thing. And so you want you want the Facebook Pixel if you plan on doing any advertising using Facebook’s advertising platform which includes Instagram and that sort of thing so yeah.
01:56 David Blackmon: Awesome well we’ve got two routes that we’re going to cover here today much like yesterday’s episode, if you tuned in for the Google Analytics. It’s very similar, very easy one route is the non-plug-in route and the other route is a plug-in route and yesterday, Tim covered non-i covered plug-in we’re we’re switching it up today so um the non-plug-in routes very simple you know. When you you go into your Facebook Business account you’re going to have to create a Facebook Business account and grab the Pixel that Facebook gives you, so that you can come over and add this to your website, and the way that you connect it is very similar to yesterday’s episode where you’re going to go and put it into your header.php file you can do that a couple of different ways. Obviously you can go into your WordPress, you know host into your file manager and find your header.php file and add this snippet that they’re going to give you into that file or if you’re a Divi theme user like Tim and are, it’s even easier. You just got to go into the back into your Divi website if you’re scared to death of logging into your file manager on your host you can just go into the theme options section of Divi and it’s got a header section there and it allows you to just paste the code there and it does it for you. So it’s like super duper easy i say go with the um if you’re if you use the Divi theme which i think a lot of our audience does use the Divi theme, just head on over to the theme options into the theme header box, paste that code and you’re done that’s it. Tim what’s the other one.
03:38 Tim Strifler:
Yeah absolutely um . So the other way is using a plugin and so uh the plugin that we recommend and is is what i use and i think David uses, is called Pixel Your Site. And so it is by far the most popular there are a couple other options i haven’t tested them so i don’t know but i do know Pixel Your Site they are very on top of things very good developer behind it and um yeah it’s been the longest standing facebook pixel plug-in and most popular and most actively developed too. They do a really good job with it so um now just like yesterday we talked about okay well when do you use a plug-in when do you not use a plug-in so um if you if your website that you’re adding this, Facebook Pixel to is a brochure style website which means it’s just information you’re not selling products or anything like that well then i would say go the non-plug-in route super easy. However if you are going to be selling products either you are currently or you plan on the future then i would recommend using Pixel Your Site, because Pixel Your Site has integrations with the ecommerce platforms Woocommerce these digital downloads that sort of thing and it will automatically send the appropriate e-commerce data to Facebook without you having to manually set up that integration. And so if you don’t want to have to mess around with the code and customize it or hire a developer to do it then go the plug-in route it makes it super super easy and yeah that’s it that’s all we have.
05:00 David Blackmon:
All right um tomorrow we’ve got another great episode episode 687 should I use Woocommerce for my e-commerce website this is a biggie. Tim until tomorrow we’ll see you
05:16 Tim Strifler: Take care bye-bye
Did you Enjoy this Episode?
- Will you consider sharing it online? Just click one of the share buttons below!
- Will you leave us a review? 🙂
- Have a question, or a topic request? Let us know in the comments below!