If you use Facebook for your business and are interested in tracking conversions to your blog from Ads, you would want to install the Facebook Pixel.
Make sure to thoroughly follow these steps and you will have your pixel set up on your blog!
Step 1 - Get your code from your Facebook Business Manager
- Go to your Facebook Business Manager > Pixels
- Click on “Set Up Pixel” in the upper left
- 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
- Paste the code you just copied into this conversion box
- Click on Convert
Step 3: Insert Base Code into your Blogger Template
- Copy the converted code and open your theme HTML:
Dashboard > Theme > Edit HTML
- Click INSIDE the HTML window and press Command (or Ctrl) + 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
- Go back to the Facebook Pixel generator and select what parameter you actually want to track using an Event Code. Click “Next” and Step 2 (Install Event Code) will appear:
- Select "View Content"
Step 5: Insert Event Code into your Blogger Template
- Copy the code in that box and install it on your Blogger HTML: Paste it immediately AFTER the "</head>" section in your template
- Your final code will look like this:
- Click Save
Step 6: Check if your pixel has been correctly set up