Using Facebook pixel with Weebly

30/11/2019

If you're using Weebly for your website and want to install the Facebook pixel, follow these steps:

In this article

Get your Facebook pixel code

If you haven't created a Facebook pixel yet
  1. Go to the Facebook pixel section in Ads Manager.
  2. Click Create a pixel.
  3. Enter a name for your pixel. You can only have one pixel per ad account, so choose a name that represents your business.
  4. Tick the box to accept the terms.
  5. Click Create pixel.
  6. (Optional) Click the toggle icon to enable Advanced matching.
  7. Click anywhere on the Facebook pixel code to copy it.
If you've already created a Facebook pixel
  1. Go to the Facebook pixel section in Ads Manager.
  2. Click Set up pixel.
  3. Click Copy and paste the code.
  4. (Optional) Click the toggle icon to enable Advanced matching.
  5. Click anywhere on the Facebook pixel code to copy it.

Add the Facebook pixel to your website

  1. Log in to Weebly.
  2. Select the site where you want to add your pixel.
  3. Click Edit site.
  4. Click Settings.
  5. Click SEO.
  6. Scroll down and paste your Facebook pixel code in the Header code section.

    Note: If you already have code in this section for another site (like Google Analytics), just place your Facebook pixel code before or after the code that's already in this section.

Track events happening on your site

Once you've created a Facebook pixel and installed it on your site, you'll get access to richer audience targeting and measurement options by placing event code on key pages of your website.

  • Create new audiences based on actions people took on your site. For example, you can create an audience with people who visited your shop page but didn't convert, and then set up a Facebook remarketing campaign.
  • Find potential customers similar to people who have taken actions you care about on your site, like making a purchase, by creating a Lookalike Audience based on people who completed purchase events.

Getting started

Add event code to your site to track actions you care about, like purchases, page visits and how many items people add to their baskets.

  1. Go to the pixels tab in Ads Manager
  2. Click Set up pixel
  3. Click Copy and paste the code
  4. Click Install event code
  5. Select Purchase and click to copy the purchase code.
  6. Log in to Weebly and select your website.
  7. Click Edit site.
  8. Select Build.
  9. Drag Embed code to the section of your page you'd like to track.
  10. Click on the box that appears to paste your event code.
  11. Click Edit custom HTML.

  12. Paste your Facebook event code in the box. See example below:
  13. Change the purchase value to what you consider to be the value of a sale.
  14. Click Publish.

Check if your pixel is working

Once you've clicked Save/Publish at the top of your Tealium dashboard, you should check if your pixel is firing correctly. To check that your pixel is working properly:

  1. Navigate to the web page that the pixel was placed on. If it's working, the pixel will send information back to Facebook and you'll be able to see activity on the Facebook pixel page in your Ads Manager. Your pixel's status will also be set to Active. Bear in mind that the activity column reports all conversion events regardless of whether or not these events are associated with an ad.
  2. If it didn't work (No activity yet, No recent activity), use the Facebook Pixel Helper to troubleshoot the problem. Bear in mind that you have to be using the Chrome browser for it to work. Once the Pixel Helper has been installed, a small icon will appear next to your address bar. Navigate to your website in your Chrome browser and click the Pixel Helper icon.
  3. The pop-up will tell you which pixels were found on the page and whether they have loaded successfully. If not, it will give you tips on why it may have failed. Learn more.

You can now start running ads on Facebook using conversion optimisation and tracking.

* Nguồn: Facebook