How To Set Up The Facebook Pixel With Google Tag Manager (New Way 2021)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
i'm going to show you how to set up the facebook pixel if you're brand new you're just trying to figure out how to get the facebook pixel set up i'm going to show you how to do that right now and what i'm going to do is show you what i truly believe is the best way that you could do it which is using google tag manager and i'll explain all that in this video it should take you about five minutes or less to set up the pixel if you know what you're doing this isn't your first time you're trying to figure it out if this is brand new you're one of you know the pixel is confusing you're not totally sure how this works give me a little bit longer and i will explain this all to you but if you you know want to skip through this you've got the timeline stuff at the bottom so grab what you need i'll i'll organize it all there for you uh but basically here's my pitch to you right if you are trying to set up the facebook pixel google tag manager is the absolute best way that you can do it uh with a few minor exceptions that i will explain in this video very shortly but if you want to be a better advertiser google tag manager is a tool that you absolutely need in your arsenal and i think it's one of the most underutilized tools i see a lot of people don't use it they don't know how to use it if you can learn how to use this tool it will make you a better advertiser it will make you a better marketing it will help you grow your business and get better results with what you're doing so learning how to use google tag manager by installing the facebook pixel with it is actually a great idea because it's a great way to get in it's a very easy thing to do so with that being said i will show you how to set up the facebook pixel with google tag manager i'll show you just how to install it on your site i'll show you how to set up some more advanced events like leads and purchases important things that you probably want to track and data you want to send back to facebook also show you how you can use it to start measuring other important behavior you know like you could even use this to track how many people are viewing your videos you've got a webinar how long are people staying all that kind of cool stuff all of that in this video so let's jump in i'm going to tell you why you should use google tag manager if you'll give me a couple of minutes i'm going to tell you when you shouldn't use google tag manager just so you know if you're kind of an exception here and then i'll show you how to set it up the right way which is a new way because they came out with a new template that actually makes it easier and simpler to do all of that in this video again skip around the little time bar at the bottom if you want to just jump around if not give me a few minutes to explain a few things it will make you a better marketer i guarantee it okay so actually jumping over my computer right here this is the really quick reason that i try to tell people why they should use google tag manager this is a poorly drawn image of all of the scripts that are on your site right so if you're not using google tag manager if you're using something else your header tag might look kind of like this you know you've got like the facebook pixel in here you've got the google analytics code in here if you're using like wicked reports hiro something like that you've got that in here hot jar that's in here if you've got like hubspot or active campaign that crm tag is in here um if you're trying to fire things like leads and purchases from the facebook pixel that's got to be put on certain pages it can't be on every page and that needs to fire after this code so there's a bunch of stuff that needs to get done and it can make it kind of complicated depending on what your tech setup is it just gets complicated if you're ever trying to move things over so what you end up needing usually is like a deaf person they're trying to do all this it's very complicated you don't have to do that so that is why google tag manager was created and this is why it's a solution so what you have to do with google tag manager is you just have one code you install that on every page of all of your funnels on all of your website on everything that you're doing right here and then you can manage everything with inside of the google tag manager platform which makes things easier to manage it way easier to track advanced events like button clicks and video views and form submits uh and applications and purchases of all that stuff it's where you're going to audit so if you're running into tracking issues you know that everything is one place you just go troubleshoot your google tag manager you don't have to jump into you know your wordpress site and then click funnels and then kajabi and try to figure out what the problem is it's all right there in google tag manager it's much easier to transfer over to a different person if you change marketing teams or anything like that and then your pages load faster because that's what google tag manager helps you do that is why you should use google tag manager the only reasons not to use google tag manager to install the facebook pixel would be if the platform that you are using has a direct integration with uh the facebook pixel at that time and they can send over all the events that you need so the only couple of platforms that i know at this time that can do that ecom you're doing shopify shopify has integration they've built all of it for you so you don't have to do any of that so use that kajabi has integration just use that google how to set up facebook pixel with kajabi the answer is right there i know click funnels the people have built some advanced integrations that do that so i don't think clickfunnels does it out of the box but i do think there are some plugins that do that well so especially if you're doing some type of funnel that's like you know let's say it's maybe a low ticket offer with an add to cart and an upsell and you need to find ways to track all the different purchase values and everything that could come through click funnels definitely a good idea to just have something do that for you so you don't have to do it yourself um but assuming that you're on a wordpress and then you're using something like leadpages or clickfunnels or kajabi or something else to capture lead or hubspot or whatever there's not a direct integration you can't find one in google in five minutes set up google tag manager and i'm going to show you how to install this right now using their new template so if you've never set up google tag manager before you can just google google tag manager it's the first thing that pops up super easy you'll get to a page like this and then the code that you actually want to install on your site when you come here to admin is you come to this place that says install google tag manager and you can see here the instructions place this code as high in the head page as possible pretty easy to do so again what you want to do is you just installed this on every page of your site and then anything else that you ever want to fire gets fired through google tag manager a ton of benefits so we could talk about for for the long run i've been doing this you just copy this and then most websites most pages most places these days have somewhere that you can just drop this it just says in the settings you know where do you want to put this so i use divi you come here to integrations you can see here add this code to the head of your blog you drop the code right there add this code to your header page as possible boom you drop it right there if you're using kajabi google how to here's like a secret if you're ever having any issues with tech stuff online is you just google it and it always pops up because someone figured it out so how to install google tag manager with kajabi it'll show you how to do it with clickfunnels it'll show you how to do it with samcart it'll show you how to do it with convertery it'll show you whatever you're using you pretty much just drop this on all the pages that would anyone would interact with on your business so that is your website your landing page builders your shopping carts all of it then from there what we want to do is use their template in order to install the facebook pixel so only two really important things you need to know when it comes to google tag manager so you have tags what do you want to fire and triggers when do you want to fire it so the tag that i want to fire would be the facebook pixel i want to fire the facebook pixel the trigger when do you want to fire it i want to fire it on all pages great so i'm going to set up a trigger to fire on all pages i'm going to set up a tag to fire here's some examples like this is my google analytics page view you can see this is firing on all pages and here's where i'm tracking the clicks on my website just to see what people are clicking on and i'm firing this on all clicks pretty simple so to get your facebook pixel what you want to do is you want to log into your ads manager click on the menu bar go to the events manager and then what you're going to do is grab your pixel code right here so your pixel code is this number right here you can see like we've got this set up we're capturing events i can just grab this code and so i want to come to google tag manager i'm going to create a new tag and what i want to fire is the facebook pixel and this is where facebook has made this a lot easier now you don't have to do any custom dev and you don't have to have any code or anything you just drop your number in which makes it really easy and again what makes this really nice is using this template it's super easy to track leads video views sales purchases applications people calling you whatever it is that you need to track you can track it very easily you don't have to code anything so i'm going to scroll down i'm going to look for the facebook pixel template that is managed by facebook so here it is facebook pixel by the facebook incubator this used to be done by a third party and and facebook took it over which is nice because now they're kind of managing it and making sure it all works and stays up to date so i just add this to my workspace and now here's my facebook pixel tag so the only thing it needs is my facebook pixel id it's just going to ask me what is the event that i want to track and you can see i can easily select any of these things from adding payment info adding to cart initiating checkout leads purchases scheduling calls submitting applications starting trials all of this stuff so what i want to send is i just want to send a page view event and the answer to when do i want to see that someone viewed a page it's on all pages so anytime someone lands on a page i want to tell facebook that i have a page view that's pretty simple the only thing that i like to do here is i do like to come in here under advanced settings and just set this tag priority to 10 just to make sure that this tag fires first for the reasons that you just wanted to fire up as fast as possible so this is my facebook pixel page view on all pages maybe something so that if someone else comes in here and wonders what it is they know boom that's simple so what we've done is we have set up google tag manager and then we are using the facebook pixel uh template in order to fire our facebook pixel on all pages now we're almost done the only thing we have to do is you'll see this is workspace changes it says two you have to submit to publish these changes and so i can say you know install facebook pixel that way if someone comes in here you know six months from now if you made some changes and you're like oh my gosh something's broken i don't know what that change was you just know what it was and there we go i have installed this pixel and if i want to verify that it's working i can just this is the site that i just put this on so i can just go to the site open up the facebook pixel helper which is this little chrome extension and when we see here in a second it will say oh look hey there's that code and here's the page view and we're good to go and so that's how you set up the facebook pixel in the most simplest way possible now if we want to send more data which we definitely do because there are other important events that facebook probably wants to know about we just can continue with this process again assuming that you didn't integrate it directly with the platform so there's two other really important events that happen on my website that i want facebook to know about so that i can optimize for those events and for us that is becoming a lead and buying something from us and so what i'm gonna show you next is how to actually set up a lead event because this is one of those events that could be more challenging if you didn't use google tag manager because we only want to send a lead event on certain events and that's when someone becomes a lead so we're not going to fire this on all pages we're only going to fire this on specific pages and specifically those are thank you pages that someone has landed on because they have opted in and became a lead for our business so what we did here by installing that facebook pixel through google tag manager at the header bar of all of our pages so our wordpress site if we have any like a landing page builder wherever it is we put that up there and so now we have that facebook pixel installed at the very top so it's always going to fire on all of our pages and we can always double check this by just going in chrome and opening up this facebook pixel helper chrome extension i'll put the link down below if you don't have this already and it'll tell you hey look we see your pixel here's the number here's the page view everything's there but oftentimes we want to send more important event information to facebook like leads and sales we always set this up through google tag managers because you can do this an easier way by just dropping urls inside of facebook and as a custom conversion that does work the challenge you run into is you can't move that around so if your urls ever change you have to change domains or you change the thank you page because someone doesn't know that tracking is important and they just change it from thank you to think dash you or whatever it is you just break your all the that learning and you're in a pickle at that point so what we like to do is we set everything up through google tag manager using standard events and that means if somebody decides to change the url of the thank you page someone moves to a new version of the funnel or whatever we can always just move that event we can continue that learning through facebook so that we can really make sure facebook has as much data as it can possibly get about who are the people who are we want to optimize our campaigns for and so the two important events that we would need to set up at this point which would be super important for you probably is setting up leads and purchases so it's always really helpful to have like a dock here that just helps you organize all this so you have it all written down so you're not just you know trying to go off memory for anybody um so what i've got here is i've got this landing page so if someone goes to this landing page this is case study that we did recently um they can opt in to watch this and then if they do uh they will go to this thank you page and where they can watch this video and on this thank you page i want to tell facebook that someone has become a lead and if i look at my pixel helper here i can see my page view tag is here but i don't have any lead event set up so what we're going to do is using that same framework that we have in google tag manager of what do we want to fire and when do we want to fire it we're going to set up that lead event so the first thing i find is always super helpful is just go set up the trigger so set up the trigger first when do you want to fire it so i'm going to create a new trigger here in my google tag manager and this fires on a page view and that page view is our sales call case study vso opt-in confirmation that way i know later when i forget what i set this up i know what it is because it has a good name when do i want to fire this i want to fire this when a page loads well what page load you want me to fire this on well not all pages because that would be too many i want to fire this only if the page url contains this text right here because if the page url contains this text right here this will fire if it doesn't contain this text right there it will not fire that's all i really want to do so now that i got the trigger i'm going to go here to my tags i'm just going to create a new one what is this this is my facebook pixel i'm firing a lead event and that lead event is my sales call case study opt-in confirmation that's it so i go back to my tag since i've already used this tag before it will be right here in my template so i'm going to choose my facebook pixel what is the number you can drop that num that same number that we had earlier so i can just copy this number i've already saved this number as a variable so i'm just going to pull this up there it is my facebook pixel so i'm going to pull up my facebook pixel what event do i want to send i want to send a lead so this is when someone when someone when this event fires send a lead and the one thing that is helpful to add is what's called a content name i always do this because then we can easily distinguish in facebook what's the difference between a lead who opted in for this versus something else so this is how you can give it like a unique thing and that content name comes from facebook that's just one of the parameters that they will accept when they are getting lead information i'll put some other links down below too like you can read i don't know how to code or anything this is the extent of pretty much everything we do you know fire lead and tell it this is sale calls case study so we know what it is when do i want to fire this thing i want to fire this on that page view i set up for the sales call case study opt-in up confirmation i'm just going to save this and boom there we go i now have this set up remember i need to hit submit if i want to actually see this live in the world before it will actually show up on the website so i have hit publish here and now if i come over here to this landing page and right now this only has the page view when i refresh this page what i would expect to see here is there will now be three events because there will be the page view and the lead boom there we go and if i look at this it says hey the content name of a sale called case study cool so now i can go into facebook and i can set up a custom conversion and i can say when you see a lead event and the content name is sail call case study that's my sales call case study confirmation which is great and also means that six months from now if somebody decides that we need to update this to a new version but we don't want to you know change the page so we get a new url called you know vsl-2 but they say call it like sales call case study whatever we can just move this event uh facebook will have all the we can just keep learning we can keep building that learning off of this event so super valuable the last thing we're gonna set up here is a purchase event because it's very likely that people be purchasing stuff from you online and it would be really valuable for you to know how to set up purchases um so we have a product that we sell on our website you can buy an ad account audit from us um and so i'm gonna do that exact same process i'm gonna use google tag manager and i'm gonna set up a purchase event now i'm going to do this the same way so the first thing we do is set up my trigger i just find that that's easier for me and i can just set this up on a page view and this is our ad account audit thank you page and i'm going to see this is the page view this will probably be over i say purchase thank you page and but i don't want to fire on all pages i don't want to fire it on some pages what are the pages that i want to fire it on well when the url contains this ad account audit purchase that's when i want to fire this and then i can go to tags and go through that same process again so i'm going to create a new tag it's my facebook pixel this is a purchase this is my ad account audit purchase so what am i going to do i'm going to go find my facebook pixel thing all variable is saving something so you can pull it up later so instead of just having to type in the number all the time i just save the number as something called facebook pixel and so now i can just type that in everything just makes it easier right so i want to submit a purchase so this is a purchase and again i go in here to object properties i can add properties and i'm not making these up so you know facebook has some documentation about what it expects to see on different events i'll put again i'll put this link down below you don't need to know all of this but it's like you know if there's a lead you can tell it what the name is if there's a purchase you can tell it what the name is i but it does want to know the currency and the value these are the two things that are required because if someone's buying something they want to know got my currency got my value and i've got my name and so so 997 it's in usd and it's called the ad account add audit purchase so out of purchase 997 and the currency is usd boom there we go when do you want to fire this i want to fire this on that page view that i set up so once someone gets to the ad account purchase audit thank you page i want to fire this i'm going to save this one cool thing about google tag manager so if you want to preview stuff so let's say i don't want to set this live i just want to see if this would work before publishing it which you would want to do if you're doing any kind of more advanced stuff with coding and and all kinds of stuff which we don't have to worry about because we're not we don't need to do any of that right now but let's just preview this and you will see what will happen is this will pull up that page but it will pull it up with that event firing because it's previewing it and it's showing you what's going on here and once this loads what i would expect to see here is that this will load with the page view and i would expect to see the pixel uh the pixel fire but i don't see that and i wonder why that is so let's go over here we can actually so this is the debugger that will tell us why that thing didn't fire so i can go down here actually and see hey where's that pixel i set up that facebook pixel purchase confirmation and why didn't this fire so okay i said if the page url contains add audit purchase because i copy and pasted the wrong thing because what i should do is add a audit thank you so that's a great way to double check stuff that was a good like live example of how to do something wrong and then figure out what it is and fix it i didn't even plan that um but so here's what we're gonna do we're gonna go back to that thing that we set up we're gonna come in here and we're gonna see this is where i pasted the wrong thing in there so i'm gonna go so the page that i wanna fire this on is the add audit thank you and what we're calling it is the ad audit purchase all right boom so i'm going to turn this off i'm going to go back to preview mode here i'm going to grab this url again and as this opens up i'm going to see how this works so what i would expect to see here is that we now have the purchase event because it should be working and so we can see here this is google tag manager loading then we will see the facebook pixel loading and there it is i've got one new event it is the purchase event and i can see here the value the content name and the usd so now if i went to my ads manager i would see this purchase come up if this presumably was tracked through an ad and i could also set up a custom conversion to say when you see a purchase and the content name is at audit purchase that is someone purchasing our ad account audit and you should count that as custom conversion and again if this ever gets moved or anything like that we can set that up that way so again what we set up uh through all of this was we set up the facebook pixel on every single page that was super easy to do then we set up a lead event and we said hey when someone lands on this page tell facebook that's a lead and then tell facebook what kind of lead that is so we can go set up a custom conversion for that you know we can have more granular custom conversions like this particular opt-in this particular landing page or opt-in this particular lead magnet whatever you call it and then we can also have like general bucket of all the leads right so it gives us some more optimization opportunities in the future and then we have purchase so if someone lands on this page it is a purchase and we're telling facebook what did they purchase how much do they purchase all of that so we did all of that i know towards the end here we got more technical again i do really believe this is the best way that you can set up your facebook pixel because one it gives you the most flexibility it gives you the most power to control what you're sending over to facebook is the best way to do it and if you can learn how to use a tool like this the possibilities become endless we will sometimes optimize campaigns for like i want to optimize for people who watch half of our 50-minute webinar we can do that because we're using google tag manager you can also send a lot of cool data to google analytics so google analytics for us is our behavior measuring platform so instead of just looking at leads and sales what we can look at is hey i want to know when someone comes to my opt-in page are they watching that video before they opt in i want to know when someone lands on my webinar are they watching half of the webinar how much of the webinar they're watching if someone goes to my book a call page are they actually clicking on the fill out the application button or are they just ignoring it all together what are the events people taking so you can look more granularly all of that is done through google tag manager so once you learn how to use this tool it really opens up a lot of doors and again really what it comes down to is just knowing what triggers when do you want to fire something and tags what do you want to fire super simple and so again i'm going to publish these changes because that's what i'm going to do this is my facebook pixel setup again and if i want to be more descriptive i could it's our site so i'm i'm usually the one in here tinkering with this stuff so that's what it is i hope you found this helpful i hope you found this useful i hope you do set up your facebook pixel using google tag manager and you start to learn the power of this tool because once you understand how this tool works it's a really powerful tool to have in your arsenal so that's all i got if you have any questions drop any questions in the comments below and i hope you have a good one catch you next time
Info
Channel: Brice Gump
Views: 1,546
Rating: undefined out of 5
Keywords: facebook pixel tracking, fb pixel tracking, install facebook pixel, How To Set Up The Facebook Pixel With Google Tag Manager (New Way 2021), how to set up the facebook pixel, google tag manager, facebook pixel tutorial, digital marketing, facebook pixel 2021, setup facebook pixel, setup facebook pixel with gtm, facebook pixel
Id: yKLTk4vdiJA
Channel Id: undefined
Length: 23min 2sec (1382 seconds)
Published: Tue Sep 07 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.