Skip to content
Back to Blog
Meta Ads4 min read3 February 2022

Facebook pixel installation and event setup for Indian businesses

The Facebook pixel is what makes retargeting and conversion tracking possible. Here is how to install it correctly and set up the events that actually matter.

Facebook pixel installation and event setup for Indian businesses

The Facebook pixel is a small piece of JavaScript that you add to your website. It tracks what visitors do after seeing your Facebook or Instagram ad. Without it, you are running ads blind. You cannot measure conversions, build retargeting audiences, or let Meta's algorithm optimise for the people most likely to buy. Setting it up correctly is one of the most important technical tasks for any Indian business running paid social.

Creating your pixel in Meta Business Manager

Start at business.facebook.com. Go to Events Manager in the left panel. Click "Connect data sources," choose Web, and select Facebook Pixel. Give it a name, enter your website URL, and click Create Pixel.

Meta will give you a base code snippet. This needs to go in the header of every page on your website, ideally just before the closing head tag. The base code alone does not track any specific actions. It just tells Meta that someone visited your site.

Installing on WordPress

If your site runs on WordPress, use the official Meta Pixel plugin (search "Meta Pixel" in the WordPress plugin directory). Install it, connect your Business Manager account, and select your pixel. The plugin handles the base code placement automatically.

Alternatively, if you use Google Tag Manager, paste the pixel base code as a new Custom HTML tag, set the trigger to "All Pages," and publish the container. This approach gives you more control and keeps everything in one tag management system.

Setting up standard events

Events are the actions you want to track: page views, add-to-cart, purchases, form submissions, and so on. Meta has predefined standard events for common actions.

For a lead generation business, the most important event is Lead. Fire it on your thank-you page after someone submits a contact form. In WordPress with a plugin like WPForms or Contact Form 7, you can add the event code to the form confirmation page or use your form plugin's built-in Meta integration.

For e-commerce on WooCommerce, install the official Facebook for WooCommerce plugin. It automatically fires Purchase, AddToCart, ViewContent, and InitiateCheckout events in the right places.

For a simple lead page, manually adding the Lead event code to your confirmation page is the cleanest approach. Paste this after your pixel base code on that page only: fbq('track', 'Lead');

Testing with the Pixel Helper

Install the Meta Pixel Helper browser extension (available for Chrome) before assuming your pixel is working. Visit your website and click the extension icon. It will show you whether the pixel fired, which events triggered, and whether there are any errors.

Common errors I see on Indian websites: the pixel base code is placed in the wrong location (inside the body instead of the head), the code is duplicated causing double-counting, or custom events have typos in event names.

Verifying in Events Manager

After testing with the Pixel Helper, check Events Manager in your Business Manager account. Under your pixel, go to "Test Events." Enter your website URL, start the test, and perform the actions you want to track on your site. Events Manager shows them in real time. If you see your PageView and Lead events appear with no errors, you are set up correctly.

Frequently asked questions

Do I need a Facebook pixel if I am only running Instagram ads?

Yes. Meta Ads Manager handles both Facebook and Instagram ads, and the same pixel tracks conversions from both. One pixel covers all Meta placements.

My pixel is installed but I am not seeing conversions in Ads Manager. Why?

Check that your event fires on the correct page (usually a thank-you or confirmation page, not the form page itself). Also check for an ad blocker in your browser that may be suppressing the pixel during your own testing. Use the Pixel Helper in an incognito window.

Can the pixel track WhatsApp clicks?

Not directly. The pixel tracks actions on your website. If you want to track clicks on a WhatsApp button, you can fire a custom event when the button is clicked, but the actual WhatsApp conversation happens off your site.

Published 3 February 2022
Start a Project