To track conversions to your blog from Facebook ads or post boosts, you need to install the Facebook Pixel. If you have never heard of the Facebook Pixel, you can read the quick summary directly from Facebook explaining how it works.
The problem is that the code they generate for users DOES NOT WORK directly on Blogger.
Installing the Facebook Pixel Tracking Code will give you an error that won’t allow you to save the code in your blogger template. Luckily there is a work around that will convert the code to something more Blogger friendly.
Click on “Set Up Pixel” in the upper left
If you don’t have a pixel already, your screen may look a little different, but you still select “Set up Pixel":
Choose “Copy and Paste the Code” as the method of installation from the pop up window.
Select the entire code (found in section 1.2) and paste it into the conversion box found HERE.
(Open this page in a new window since we will need to go back to you Facebook Ad Manager a little later)
Click on Convert. Your code will look funny since all the javascript will be covered into a more ‘readable’ XML format for blogger. But that is okay. That is what we want!
(If you haven’t backed up your template.. now is when you want to do it! Before you paste in anything new!)
Click INSIDE the html window and press Command-F (for “Find”)
In the upper right corner a search box should appear. Type in </head>
When that is highlighted in your template, paste the converted code immediately BEFORE it.
You can hit "Save Theme" at this point. You shouldn’t get an error if you have inserted it correctly.
We now need to go back to the Facebook Pixel generator and select what parameter we actually want to track using an Event Code. Click “Next” and Step 2 (Install Event Code) will appear.
There are a lot of event triggers you can choose to track. The default is “search” which tracks when people use the search page. I wanted to just track ever single page view, so I chose “View Content”
Copy the code in that box and install it on the page (or if you want it to track on every page) in the template where you want it to track. Paste it immediately AFTER the </head> section in your template.
So your final code will look like this:
There are a lot of other options for code placement and the Facebook Pixel installation tool is great at explaining where and what to install for those other options.
It can take up to 20 minutes for your pixel to begin working. If you have it installed correctly, Facebook should notifiy you when it is active.
If you check on the Pixel tracking page and it says “No information yet” it may mean that something is not working. Otherwise, you should start to see Pixel fires as soon as your site gets traffic.
There is a lot of information you can collect via that pixel that can help with ad and audience targeting, however that is beyond the scope of this tutorial. I just wanted to get your pixel up and running on Blogger!
The problem is that the code they generate for users DOES NOT WORK directly on Blogger.
Installing the Facebook Pixel Tracking Code will give you an error that won’t allow you to save the code in your blogger template. Luckily there is a work around that will convert the code to something more Blogger friendly.
How to Install The Facebook Pixel into a Blogger Blog
Step 1: Create Facebook Pixel Base Code
Log into your Facebook Ads Manager and select Pixel from the drop down menuClick on “Set Up Pixel” in the upper left
If you don’t have a pixel already, your screen may look a little different, but you still select “Set up Pixel":
Choose “Copy and Paste the Code” as the method of installation from the pop up window.
Step 2: Convert Base Code to make it Blogger Friendly
Select the entire code (found in section 1.2) and paste it into the conversion box found HERE.
(Open this page in a new window since we will need to go back to you Facebook Ad Manager a little later)
Click on Convert. Your code will look funny since all the javascript will be covered into a more ‘readable’ XML format for blogger. But that is okay. That is what we want!
Step 3: Insert Base Code into your Blogger Template
Copy the converted code and open your theme HTML Dashboard >> Theme >> Edit HTML(If you haven’t backed up your template.. now is when you want to do it! Before you paste in anything new!)
Click INSIDE the html window and press Command-F (for “Find”)
In the upper right corner a search box should appear. Type in </head>
When that is highlighted in your template, paste the converted code immediately BEFORE it.
You can hit "Save Theme" at this point. You shouldn’t get an error if you have inserted it correctly.
Step 4: Generate Event Code
There are a lot of event triggers you can choose to track. The default is “search” which tracks when people use the search page. I wanted to just track ever single page view, so I chose “View Content”
Step 5: Insert Event Code into your Blogger Template
So your final code will look like this:
There are a lot of other options for code placement and the Facebook Pixel installation tool is great at explaining where and what to install for those other options.
Step 6: Confirm your Pixel is Installed Correctly
If you check on the Pixel tracking page and it says “No information yet” it may mean that something is not working. Otherwise, you should start to see Pixel fires as soon as your site gets traffic.
Now you are good to go!
There is a lot of information you can collect via that pixel that can help with ad and audience targeting, however that is beyond the scope of this tutorial. I just wanted to get your pixel up and running on Blogger!
SEARCH THIS BLOG
NEED HELP WITH YOUR SEO?
Demystifying SEO: A Bloggers Guide To Search Engine Traffic
The most comprehensive book about SEO specifically written for bloggers using the Blogger platform.
Get your copy now!
The most comprehensive book about SEO specifically written for bloggers using the Blogger platform.
Get your copy now!
Shop Related Products
POPULAR POSTS
- If you google “How to backup your blog” you will find 1000 tutorials. But what I have noticed about almost all these posts is that they a...
- Slideshows have been the hot new fad on blogs lately. Many blogs have them on the sidebar, in the header and within the post content ...
- If you are on Facebook and are interested in tracking conversions to your blog from ads or post boosts, you are going to want to install th...
- If you are a frequent user of Twitter, you may have noticed that some tweets containing URLs have a lot of extra information associated wi...
- A question I get from a lot from bloggers is “How do I know that Google sees my site?” And the short answer is: as long as you have the pri...
WHAT ARE YOU LOOKING FOR?
- Advanced Blogging (20)
- Content (15)
- HTML (11)
- blogging apps (9)
- SEO (8)
- New Bloggers (7)
- meta content (6)
- money (6)
- time management (6)
- Analytics (5)
- Conferences (5)
- Links (5)
- Brands (4)
- sponsorships (4)
- Clients (3)
- Domains (3)
- Email (3)
- Facebook (3)
- Pinterest (3)
- Blogger Vs. Wordpress (2)
- Twitter (2)
- Webmaster Tools (2)
- Images (1)
BLOG ARCHIVE
SUPPORT THIS SITE
All information on this site is provided completely free of charge.
In order to thank me for my time and knowledge, I would love if you would share my blog with any other bloggers you know. Pinning, tweeting or sharing my posts on Facebook would be wonderful.
Alternatively, you also can donate directly to me via Paypal using the button below.
In order to thank me for my time and knowledge, I would love if you would share my blog with any other bloggers you know. Pinning, tweeting or sharing my posts on Facebook would be wonderful.
Alternatively, you also can donate directly to me via Paypal using the button below.
Recently Trending
- If you google “How to backup your blog” you will find 1000 tutorials. But what I have noticed about almost all these posts is that they a...
- Slideshows have been the hot new fad on blogs lately. Many blogs have them on the sidebar, in the header and within the post content ...
- If you are on Facebook and are interested in tracking conversions to your blog from ads or post boosts, you are going to want to install th...
- If you are a frequent user of Twitter, you may have noticed that some tweets containing URLs have a lot of extra information associated wi...
- A question I get from a lot from bloggers is “How do I know that Google sees my site?” And the short answer
No comments:
Post a Comment