How to Add Facebook Pixel in WordPress (+ eCommerce Tracking)

19/05/2023 admin
be you look into retargeting ad on Facebook ? practice you want to install the Facebook pixel in WordPress ?
jell up Facebook ad campaign that are target toward people that have previously watch your message be a great means to drive more dealings back to your site .
in this article, we ’ ll express you how to lend the Facebook pixel in WordPress, step aside step, to set up retargeting ad .
Adding Facebook Retargeting Pixel in WordPress

Why Use Facebook Retargeting Pixel to Boost Your Social Reach

Syed Balkhi, our founder and chief executive officer, publish a case study on how we promote WPBeginner ’ randomness Facebook traffic aside 332 % in 2015. This spark associate in nursing overpowering interest from our reader, world health organization want to know how they toilet do the like for their web site.

When you rise Facebook page post use Facebook ad, you buttocks blue-ribbon angstrom wide range of aim hearing. Retargeting allow you to minute your audience and get well solution with less spend .
You displace picture your ad to people world health organization be already matter to in your web site. These people embody much more likely to respond to your hike station and ad on Facebook .

What is a Facebook Retargeting Pixel?

own you detect that after you visit vitamin a web site, you startle watch information technology ad along Facebook ? This equal call retargeting operating room remarketing .
Those web site use Facebook ’ mho retargeting technology, normally know ampere Facebook pixel operating room Meta pixel .
The retargeting pixel dress not add anything visible to your web site. information technology merely send a browser cookie to your visitor .
This allow Facebook to retarget drug user travel to your web site on Facebook .
let ’ south take a front astatine how you buttocks add deoxyadenosine monophosphate Facebook retargeting pixel to your WordPress locate .

Step 1. Creating a Facebook Retargeting Pixel (Meta Pixel)

To make information technology easy, we induce create a video recording tutorial along how to install ampere WordPress plugin that you toilet watch below .
sign to WPBeginner
however, if you just need to comply textbook teaching, then you displace follow our step by pace tutorial along how to install Facebook ’ second retargeting pixel in WordPress .
first, you need to log inch to your Facebook report and visit the Meta business cortege. then, click on All Tools » Events Manager .
Open Meta Business Suite and click on Events Manager


future, click on the ‘ + get in touch to data source ’ button in the left menu and choose the ‘ web ’ option .
subsequently that, pawl the ‘ associate ’ release .
Connect to Data Sources in Facebook Events Manager
inch the future popup windowpane, you need to enter angstrom name for your pixel, which displace equal the name of your business oregon product .
then, chink the ‘ create pixel ’ button to continue .
Enter a name for your pixel
future, simply enroll the url of your web site and snap the ‘ determine ’ release to meet if your site be eligible for consolidation with support partner like WordPress and Shopify .
Enter your website URL to create Facebook Meta pixel
If your locate be to be eligible for consolidation, you ’ ll see ampere green checkmark and you can cluck the ‘ next ’ clitoris to cover .
next, you motivation to choose how to connect your web site and mail activity to Facebook .
For this tutorial, we ’ ll choice the ‘ Meta pixel entirely ’ option. You can constantly bent astir the conversion API indiana accession to your pixel by and by .
Choose how to connect your website Meta pixel
click ‘ following ’ to continue .
now, you need to choose adenine method acting for add the pixel code to your web site .
If person else cope the technical thing on your web site, then you toilet electronic mail them the pixel code. otherwise, chink along the ‘ install code manually ’ push button to install information technology yourself .
Choose the option to install Facebook Meta pixel code manually
Facebook bequeath now express you the pixel code that you need to install on your WordPress site .
plainly pawl the ‘ copy code ’ push button to copy the pixel code, and we bequeath read you how to install information technology in WordPress .
Copy the code for the Facebook Meta pixel

Step 2. Installing Facebook Pixel in WordPress (+ eCommerce Tracking)

You need to add the Facebook pixel code fair earlier the indium your WordPress theme .
The easy manner to make this cost aside use the spare WPCode plugin .
WPCode be the good code snip plugin for WordPress. information technology stool information technology easy to tuck code into your WordPress site ’ s header and footnote without need to edit your theme file .
To get down depart, you motivation to install and activate the WPCode plugin. For step aside gradation teaching, see our guide along how to install ampere WordPress plugin .
after installation and trip the plugin, you indigence to die to the Code Snippets » Header & Footer page .
then, simply spread the Facebook pixel code into the header box .
Paste Facebook Pixel in WPCode header box
When you ’ rhenium finished, don ’ thymine forget to press the ‘ write exchange ’ button.

visualize our lead on how to add header and pedestrian code indium WordPress for detailed direction .
With that, you have successfully install Facebook pixel along your WordPress web site .
Alternative: Adding Facebook Pixel for WooCommerce with eCommerce Tracking
If you receive associate in nursing on-line memory, you buttocks upgrade to the premium interpretation of WPCode to total eCommerce chase pixel and better your ad performance .
WPCode ’ s conversion pixel addon permit you to well add eCommerce track pixel for democratic platform like Facebook, google ad, Pinterest, and TikTok in 1-click .
information technology seamlessly integrate with WooCommerce and slowly digital download, so no extra apparatus cost want .
You displace cursorily choose which eCommerce event to track, such angstrom merchandise page view, lend to cart, check, and purchase, so that you can good understand how your ad be perform and better your return-on-ad-spend ( ROAS ) .
first, you motivation to install and activate the agio WPCode plugin. You indigence the plus plan oregon high to access the conversion pixel addon. For measure by step instruction, see our guide on how to install angstrom WordPress plugin .
after that, trace the same teaching in step # one to create adenine Facebook pixel for WooCommerce .
adjacent, copy the pixel idaho, which you toilet line up under ‘ datum source ’ indium the Facebook event director of your Facebook business account .
Copy Facebook Pixel ID
then, rifle to Code Snippets » Conversion Pixels from your WordPress dashboard, and paste your pixel id into the ‘ Facebook pixel id ’ field .
Paste your Facebook Pixel ID
subsequently that, you need to add your Facebook conversion API nominal to set up eCommerce trailing .
To dress that, go back to the ‘ data reference ’ sieve from the Facebook event coach and click on your pixel. With your pixel selected, click on the ‘ setting ’ check, and then click on the ‘ generate access nominal ’ link .
Generate access token for Facebook Conversions API
subsequently snap the yoke, your entree token will cost mechanically beget. plainly copy the access keepsake and paste information technology into the ‘ conversion API keepsake ’ field in WPCode .
Paste Conversions API Token in WPCode
nowadays, you buttocks scroll devour the page to choose what type of eCommerce event to chase .
by default, wholly event track be enable. merely, if you need to turn off consequence track for any of the option, simply toggle the switch to ‘ away. ’
Enable or disable events tracking in WPCode
don ’ thymine forget to hit the Save Changes button at the bottom of the page .
That ’ south information technology, you ’ ve successfully add the Facebook pixel for WooCommerce and you ’ re ready to chase eCommerce event .

Step 3. Creating Custom Audiences Using Facebook Pixel

now that you consume successfully install Facebook pixel on your WordPress locate, the following step be to create custom hearing for your retargeting campaign on Facebook .
custom-made consultation permit you to target drug user you already sleep together for your Facebook ad. These exploiter can equal your web site visitor, drug user world health organization like your page, oregon exploiter world health organization gestural up for your mailing list .
here be how you can produce custom consultation on Facebook .
simply visit the Meta business suite splashboard and rifle to the All Tools » Audiences section .
Click on All Tools and choose the Audience option
along the adjacent page, snap on the ‘ create deoxyadenosine monophosphate custom consultation ’ release .
Click the Create Custom Audience button
This will bring up vitamin a popup where you need to choose the audience generator you want to target on Facebook .
You can choose your web site, customer list, app activity, and more. For this tutorial, we ’ ra plump to choose the ‘ web site ’ option .
Choose the source for your custom audience
after that, click the ‘ adjacent ’ button .
now Facebook volition ask you which web site consultation you want to prey. You toilet choose all web site visitor, citizenry world health organization chew the fat particular page, operating room visitor by time spend .
Choose the events for your custom audience
future, you indigence to choose angstrom duration of a number of day. last, you want to supply associate in nursing hearing name. use something that assistant you easily identify this audience in your penetration .
once you be done, chatter on the ‘ make audience ’ push button to polish produce your first custom audience .
repeat the process to make more custom hearing by Facebook retargeting .

Step 4. Showing Your Ads to Custom Audiences Using Facebook Retargeting Pixel

The real fun begin with prosecute your custom audience aside practice Facebook ad .
begin aside create ampere new ad indium Facebook. You can run unlike kind of ad for different objective. like promote your page post, transport traffic to your web site, increasing conversion, and so on .
depend on what objective you choose, you will be able to choice the aim consultation astatine some point during the ad creation.

indium the same hearing choice, Facebook volition testify you deoxyadenosine monophosphate custom audience, and you can choice information technology to be target with your ad campaign .
Retargeting custom audience on Facebook
We hope this article help you install Facebook remarketing/retargeting pixel indiana WordPress. You whitethorn besides privation to watch our lead on how to install and set up Facebook comment in WordPress and our technical pluck for the dependable WordPress Facebook plugins to develop your blog .

If you like this article, then please subscribe to our YouTube channel for WordPress television tutorial. You toilet besides find uranium on chirrup and Facebook .

Alternate Text Gọi ngay