Avid Subscribers. Join to get my best tips you won’t find anywhere else.

How To Install Facebook Pixel With Google Tag Manager to track conversions properly

How To Install Facebook Pixel With Google Tag Manager to track conversions properly

7 min to read 

Configuring the GTM  

What’s going on guys? Welcome back to another guide. I’m going to show you how to use the Google tag manager to configure your Facebook pixel.  We’re going to go in depth and I’m going to teach you how exactly to do that. 

Right now I’m looking at a screen of different accounts each one with one container. And so, you know think of a container that it is basically a site, you know, like you can have a site or a specific project that you’re working on at containers basically a collection of tags and triggers and all these settings basically a collection of code. I’ll keep a single simple collection of code and variables that get executed in response to certain events. 

Let’s go from the beginning and create a new account. So we’re going to create a new account from scratch. We’re going to click create we get the screen and let’s say we call this account three., okay, because I already have two accounts. We’re going to call it the count three and we just put google.com. Ok now countries us. We’re located in the United States. We pick here web. We click create we accept the terms of agreement. and we should have an account created now right away. We get a new screen and I’m going to remove this for second and we have this something called the Google tag ID.  

Now this is very important because this is kind of the identifier for this particular account for this particular tag, even this workspace. Okay, and what we see on the left hand side, we have an overview where we are right now. We have different tags triggers variables folders and templates and most important thing here is tags and triggers and so the way of which would think about is it that is a piece of code that runs in the response to something. So for instance, you know, if something happens if an event happens, which is a trigger, think about it like an if-then condition if something is triggered this piece of code executes. We don’t have any tags and this particular account and this particular project and that’s what we need to create right now, and we also don’t have any triggers as well because we haven’t created any triggers yet. We need to basically create a tag called Facebook pixel, which is going to insert a piece of code that is going to get displayed. But before we can even start to configure all of this It’s important to configure Google tag manager on your own side.  

Installing Google tag manager on your Wordpress site or Shopify 

So there is there’s various ways of doing it. You know the it depends on the platform, I believe if you have a Shopify, there’s a plug-in or maybe it’s built in. I haven’t you Shopify and a while, but for this example, we’re going to be using Wordpress and WordPress actually has a really good tag manager plugin if you go to wordpress.org and you search for Google tag manager plug-in, you will see this plug-in right here Google tag manager for WordPress. And this is the easiest, it’s a simple plugin, it’s the most popular of plugins so it works. What you do is you install it on your side, set up like any other plug-in. 

Connecting the tag so they communicate 

 Then once you do that, you’re going to have a setting here in your WordPress admin and you’re going to have Google tag manager id then on the first page on the first tap, tap the general tab, it’s going to ask you to insert your Google tag manager id. This is the ID that we have here.  

Really this whole code right here is going to get inserted on every single place. Now, of course, you don’t need to use a WordPress plugin. You can insert it manually if you know if you’re a developer you can. You can insert it manually in the head section where Google suggest and then insert this piece in the body section, or you can use like a plug-in called like header footer where that allows you to insert this code, now we are going keep it simple. We install this plug-in. We just installed this piece of code, and we’re good to go. 

Google Tag Manager is going to get executed in every single page now. We can work inside this and never have to touch our WordPress installation ever again. Which is fantastic because if you ever lost a website or decided to fire it up again you just repeat this process again since its already saved and you are done!  

Save Time and find a Google tag 

The first thing we have do next is we need to find a tag, the Facebook pixel that executes the Facebook pixel code. In the past you had to create your own tag and do it from scratch but now Google introduced something called that tag template. Click on that and we click and search Gallery here. Basically, you are presented with a list of different templates that you could use that are submitted by third parties obviously there’s a little bit of a security issue.  So, you have to make sure you trust this party. So, you know, some of them have this green check marks that it’s verified by GitHub. 

What you got to do is you got to click this magnifying glass type Facebook. We click add to work space and it gives us some warnings and obviously, you know, it’s going to inject a script.  This is a piece of code that we’re actually going to run on our side and we click OK because we trust this code. Now this template, this Facebook pixel is part of our own templates but we haven’t installed it yet. We simply imported a template. 

What we have to do next is click on the tag and we need to modify the tag. Click the Fb pixel we just added. 

Click new and now we can click on this tag and configuration here. Now we can take our Facebook pixel and now since we imported the template we are not working with a template. We’re working with the actual tag; we click on this and now we have this tag configuration. The first thing I like to do is give it a name we can call it Facebook pixel. 

Configure the FB pixel 

You have to configure it next, the beauty of these tasks and these templates is that you no longer need to actually create any code and you no longer need to copy/paste JavaScript code. It’s going to do it for us. The first thing we need is the Facebook pixel and for that we go back to our business manager depending on where you are you need to go to events manager and click the menu. 

You have to click on the events manager because that’s what the pixel is it basically generates events. You click on the events manager, and then you have a list of pixels. Next if you need to create a new pixel you click on this follow instructions as show in the image, email instructions to developer or manually install a pixel.   

Create a pixel ID for GTM 

All we need is a pixel and once you do all that it will create a pixel ID and you basically click on that. You go back to the tag manager, you go to the Facebook pixel tag, you copy and paste your Facebook pixel ID. 

Connect a tag to a trigger in GTM 

Next you check any other options, under the Standard radio box we have event names which are standard events. Standard events are basically pre-configured events, or we can do a custom event. For this example, we’re doing standard events, and we’re going to fire page view event, which is basically what a pixel does by default. It always fires a page view, that because it’s installed on the page and every time that page gets viewed, they know somebody views that page and this page view gets triggered and we click save. 

GTM is telling us that there are no triggers selected so remember this is an if-then condition we have a piece of code, but we don’t have a condition where it’s going to fire so what we do is we add a trigger and thankfully this is the only built-in trigger we have and this is the one we need for all pages.  

Going live with our trigger and event 

We click on that now we have a trigger. We have a piece of code on all pages this piece of code is going to get fired the click save. and now we’re back to the dashboard. It has not implemented the code yet. It’s not live yet. It’s telling you that you have workspace. You have worked space changes to and you have to click submit. We click publish. We don’t really need to enter anything here. You can if you’d like, but I usually don’t I click continue. 

Your GTM and pixel are live. We have version 1.0 with one tag. This top page tells you whatever changes in that version. These are the tags. These are the triggers. We have all the history of the change that we did. Later on, we’re going to add new tags. We’re going to add new pieces of code. Maybe find who it is or something else and so you can even go through different changes and this will keep track of those changes as you add people or revise new code changes. 

Creating a Conversion Event 

We need to create another tag another piece of code that’s going to track conversions and that’s only going to get fired on our thank you page. Okay, so what we do is we go to tags we click new, we call it purchase event and this event is only going to get fired whenever we have people on the thank you page.  

After you purchase a product that person is redirected to thank you page where maybe they can download this product or they get an email confirmation about that the product if it’s a physical product. If it’s going to get shipped or its on their way. So it’s a very common practice to redirect people to a thank you page once they make a purchase or after they book something. In this case, what we want to do is we want to use the same pixel.  

We click on this choose tag type. We go scroll down go to our custom tag. We have custom HTML, Custom, Facebook pixel. We click on that. We put the same pixel ID. We copy and paste our pixel ID.  We pick a different event now if you’re using standard events, then you just pick purchase.  

We want to make sure it’s loaded not firing. What we’re going to do is we want to say fire before we want to fire a standard event, this is our regular event type on Facebook.  

It’s going to get fired after the other previously configured tag gets fired.  Click save now. It’s telling is we don’t have a trigger now. This is very important. Let us click triggering what we want to do is we want to click the plus sign. Okay and create a custom trigger and this is only triggered only for thank you pages. 

Okay, and we click here. And what we want to do is we basically do page view here and we do it for some pages not all page. Use we use the page URL contains /Thank you. So as long as your page URL has a thank you in it this trigger is going to get this trigger. We click save. 

Now we have two tags the regular Facebook pixel that gets fired on all pages and purchase event that gets fired only on the thank you page. 

Okay, and we’re published and so we’re in version 2.0. Now we have two tags, one trigger.  

Did you learn anything new? Subscribe to my email newsletter or follow us on Facebook 

3 Killer SEO Steps to rank #1 in 2021

3 Killer SEO Steps to rank #1 in 2021

Ready to go. It’s time for seo step number one, keyword optimize your content on page.

SEO has changed a lot over the last few years back in the old day keyword optimization was all about stuffing your page with keywords, but that doesn’t really work anymore instead the goal of on-page SEO today is to give Google context about what your page is all about. Yes. You still want to use keywords on your page, but you also need to help Google understand your pages. 

Overall topic here’s how to do it. Your first step is to include your target keyword and a few important places on your page. That way Google can understand that your page is about and that specific term specifically. You want to add your keyword to these areas of your page.  

Next, it’s time to give Google more context about your page and the best way to do that LSI keywords. LSI keywords are words and phrases that are closely related to your target keyword put another way their terms that tend to show up next to your keyword around the web. For example, if your target keyword was Will Smith, LSI, keywords would be terms like Fresh Prince of Bel Air, Gemini, Bad Boys, Men in Black and when Google sees these LSI keywords on your page, it makes them say we’re confident that this page is about Will Smith. 

Actually, when you type your topic into Google you can find these LSI keywords by searching for your keyword and then scrolling to the bottom of the search results. The Bold suggested keywords here usually make great LSI keywords then sprinkle in a few of these LSI keywords on your page and you’re good to go with that.  

Let’s dive right into step number two, optimize your content for users. 

Back in the day Google ad rank Pages based almost a hundred percent on pages with the most backlinks, yes backlinks are still important and I’ll show you exactly how to build backlinks in the next step, but to rank in Google today backlinks are not enough your content also needs to be optimized for users. That’s because Google pays very close attention to how people interact with your site in the search results. And if they notice that people are clicking on your site and then quickly heading back to Google, aw look at this cute puppy oh a cat boring next, but if they see users sticking on your page, that’s a green light you’re giving Google Searchers what they want.  

This is awesome, and you’ll usually get a ranking boost with that. This exactly how to optimize your content for users so they stay on your page. First structure your content so people start getting actionable info ASAP in other words you don’t want to start your post off with a long explanation about why the topic is important. That’s only going to make people bounce, instead use a short intro then get right into the steps or tips or how the recipes work or plans or whatever you’re going to cover in your post. For example, when I write for clients blogs I don’t get into a long backstory about why the topic is important instead I have a brief five-line intro then it’s time for the first strategy.  

Next make sure that your content is designed is on point, studies show that people largely judge your site based on design first and content second. So, if your site looks like a 1999 web page, you can expect a really high bounce rate. Now that doesn’t mean that your site needs to win any Design Awards or look fancy. In fact, in my experience a simple design tends to work best. For example, if you look at medium.com, there’s nothing remotely fancy about it, but it does have a clean design that makes it easy to read and skim which leads us to our last step. 

Step number three, build backlinks.

 Are backlinks still important for SEO . Yeah,. In fact Perficient digital has been tracking the importance of backlinks.Over the last three years and they found that links are basically just as important today as they were since they first started tracking them and if you follow the steps so far by creating epic content, optimizing it for users and adding hooks. You already have a strong foundation for building backlinks. It’s just a matter of getting your content out there to actually build those links and the best way to do that is by using broken link building.  

In fact, I used broken link building to get links from super authoritative websites. Here’s how it works first find a broken link on a page that you want to get a link from. I personally use the helpful check my links extension from Google Chrome, which is free. It automatically crawls all of the links on a page and ID’s broken links, next you want to find a post on your site that will make a good replacement for the dead link. For example, I recently found a broken link on a website I wanted a link from and after looking through my site I found this other post that would be a pretty good replacement. 

It’s not a one-to-one match to what the person link to but it’s close enough, finally reach out to the person that runs that site and ask them to swap out the dead link for a link to your content. Now for this process you can definitely work with an e-mail script as you send these out, but I definitely don’t recommend sending out the same generic email to a hundred different people. In fact, an Outreach study that I recently did found that personalized emails got 32 percent more replies and in my own marketing my open rates are above 70%! You don’t want emails that use the same exact pitch for everybody.  

Bonus step, use unique Images.

You can keep using stock photos on your site however they might hurt your Google rankings as it turns out. The folks at reboot online recently ran an interesting experiment. They created 10 brand new websites all optimized around the keyword that they made up for the experiments on five of the sites. They used five stock photos that were already used on a bunch of other websites if for the other five they actually took their own images. That way they were a hundred percent unique. So, what do they find?  

They discovered that the five websites that had Unique Images had improvements in rankings and the ones that used the stock images had their rankings decrease. So, what’s the bottom line? Whatever you can, try to use unique images in your content. These can be pictures that you take with your phone or illustrations that you make in Photoshop or screenshots that you take yourself as this study showed unique image seemed to have a direct impact on rankings. 

 Did you learn something new today’? If so, make sure to sign up for email notifications when new posts come up or follow us on Facebook.

4 SEO Techniques for 2020 that work really well

4 SEO Techniques for 2020 that work really well

Starting with an opportunity keyword an opportunity to keyword is like a regular keyword, but better I’ll explain you probably noticed that Google’s first page is packed with more stuff than ever before for example, take a look at the first page for this keyword, ecommerce website. You’ve got a bunch of ads above the fold, a featured snippet, a questions box and news results, which is exactly why now, I focus almost a hundred percent on opportunity keywords. So, what are our options? 

What are keywords opportunity?


They are keywords with a high clickthrough rate or in other words their terms that don’t have a bunch of stuff on the first page that distracts people from the organic results. Let’s look at an example a while ago I created a page on my site optimized around the keyword SEO checklist and as it turns out SEO checklist is an opportunity keyword. Yep. There are a few ads on the page, but that’s not really a big deal. It’s actually a good thing because it shows that people are bidding on that keyword in Google ads.  

Other than that the page is pretty clean, which means the focus is on the organic results. Bottom line look at the search results before picking a keyword if it’s packed with stuff consider going for an opportunity keyword. That’s going to get you more clicks with that. Let’s move on to step number two.  

Check out the content competition.


Okay, so you found an opportunity keyboard. What’s next what most people with do is open WordPress and start writing but that’s actually a huge mistake. In fact, that’s what I used to do back in the day. I would write something that I think would rank in Google today. I know better today. I analyzed the first page results to see what’s already working in other words my content competition and once I figure out the type of content that Google wants to see for that keyword then I start creating content for example, look at the first page results for the keyword ecommerce conversion optimization as you can see the results are lists. 

So, if you wanted to rank for that keyword, you wouldn’t want to write a blog post like what makes a ecommerce convert better or not instead you want to post how talks about the ways to actually do it via a list. How about another example? One of my most important keywords that I helped a client with was fafsa applications, when I did the keyword research back in the day, I looked at the content that was ranking for that term.  The content didn’t list out tips or strategies for fafsa applications instead they were all huge websites that just wanted the user to fill out an application. So, I decided to create a guide that covered pretty much everything there is to know about fafsa applications which help me crack the top three for this super competitive term with that.  

It’s time for our third step great content that’s different or better.

When it comes to creating content for SEO you have two main options, option number one you can create something different. Option number two is to create something better. I’ll explain most of the time you want to publish something that’s just way better. Better but sometimes it makes more sense to create something completely unique for example a few months ago I found the opportunity keyword Austin personal trainer and when I looked at the content competition, I noticed that most of the results were sites with applications and not posts about finding a great personal trainer.I could have created an application landing page, but that wouldn’t make any sense in this case. It made more sense to create something better. 

So that’s what I did. I spent two weeks writing this Ultimate Guide to finding a great personal trainer and because my content was completely different than what’s already out there It really stood out which led to tons of shares on social media backlinks and Google rankings. Like I mentioned earlier you can also just create something that’s straight-up better than what’s already out there. For example, a while back, I wanted to rank for the SEO expert Chicago and when I looked at the content that was already ranking most of them most were spammy looking sites that had thin content and really didn’t showcase the persons expertise on the matter. I could have copied them but I instead chose to create case studies and video. I publish the case studies and within 6 weeks my site was ranking 1 for the search term, Chicago SEO expert, Chicago SEO agency, Chicago Seo consultant. It was kind of insane but at the end of the day that post did really well. 

Which leads us to step number 4 Add Your Hook. 

This is an Advanced SEO strategy, so if you’re new to SEO, you might want to skip this step with that out of the way. Here’s how it works. You probably already know that in general, pages with the most backlinks ranked highest in Google, but how do you get people to link to you? Here’s a simple two-step process step number one figure out why people link to content in your industry (The Hook). Step number two include that hook in your content for example last year I noticed that more people were publishing content about Tiktok news and when I read that content, I though that’s super interesting. When people wrote about Tiktok in their article they used data and mentioned the users and link to their bio page. So, I created a similar strategy for a client and presto my article has been linked to thousands of times and if you look at those individual links most of them reference a specific Tiktok user. 

What do blogs and news sites loves to cover? New stuff and when you create something new you’ve got yourself a hook. For example, if I created a new strategy called the organic fireball effect. Do you think anyone has ever heard of it? Probably not, so think about your hook. 

Our Blog

Get fast tidbits that will impact your business

3 Killer SEO Steps to rank #1 in 2021

3 Killer SEO Steps to rank #1 in 2021

Ready to go. It’s time for seo step number one, keyword optimize your content on page. SEO has changed a lot over the last few years back in the old day keyword optimization was all about stuffing your page with keywords, but that doesn’t really work...

4 SEO Techniques for 2020 that work really well

4 SEO Techniques for 2020 that work really well

Starting with an opportunity keyword an opportunity to keyword is like a regular keyword, but better I'll explain you probably noticed that Google's first page is packed with more stuff than ever before for example, take a look...


Avid Subscribers