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
- Go to the Facebook pixel section in Ads Manager.
- Click Create a pixel.
- Enter a name for your pixel. You can only have one pixel per ad account, so choose a name that represents your business.
- Tick the box to accept the terms.
- Click Create pixel.
- (Optional) Click the toggle icon to enable Advanced matching.
- Click anywhere on the Facebook pixel code to copy it.
If you've already created a Facebook pixel
- Go to the Facebook pixel section in Ads Manager.
- Click Set up pixel.
- Click Copy and paste the code.
- (Optional) Click the toggle icon to enable Advanced matching.
- Click anywhere on the Facebook pixel code to copy it.
Add the Facebook pixel to your website
- Log in to Weebly.
- Select the site where you want to add your pixel.
- Click Edit site.
- Click Settings.
- Click SEO.
- 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.- Go to the pixels tab in Ads Manager
- Click Set up pixel
- Click Copy and paste the code
- Click Install event code
- Select Purchase and click to copy the purchase code.
- Log in to Weebly and select your website.
- Click Edit site.
- Select Build.
- Drag Embed code to the section of your page you'd like to track.
- Click on the box that appears to paste your event code.
Click Edit custom HTML.
- Paste your Facebook event code in the box. See example below:
- Change the purchase value to what you consider to be the value of a sale.
- 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:
- 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.
- 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.
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