Tracking pixel — Tracking pixel / tag

A small piece of code on your site that tells ad platforms what visitors do (for example, the Meta Pixel).

What it means

A tracking pixel, also called a tag, is a small piece of code you add to your website. It tells platforms like Meta or Google what visitors do on your site, such as viewing a product, adding to cart or buying.

The name comes from early versions, which were a tiny invisible one-pixel image.

How it works

You copy the code from the ad platform and paste it into your website, or add it through a tool like Google Tag Manager. Common examples:

  • Meta Pixel: sends visitor actions to Meta for Facebook and Instagram ads
  • Google tag: sends data to Google Analytics 4 and Google Ads

When a visitor loads a page or completes an action, the pixel sends an event back to the platform. The platform uses this for conversion tracking, retargeting and building audiences such as lookalike audiences.

Privacy matters here. Pixels often use cookies, so tell visitors what you collect and ask for permission where required, usually with a cookie consent banner. Also follow applicable privacy laws.

A simple example

A handmade jewellery brand in Jaipur installs the Meta Pixel on its online store. A visitor comes from an Instagram ad, views a pair of ₹1,200 earrings, adds them to cart and leaves without buying.

The pixel records these actions. The next day, the brand shows that visitor a reminder ad with the same earrings. If she buys, the pixel records the purchase.

Why it matters

Without a pixel, ad platforms cannot see what happens after the click. You would not know which ads bring sales, and you could not retarget interested visitors.

Beginner tips

  • Install pixels early, even before running ads, so data builds up.
  • Use a browser helper tool, like Meta Pixel Helper, to check the pixel fires correctly.
  • Add a clear cookie consent banner and privacy policy.
  • Common mistake: installing the same pixel twice, which double-counts events.

Related: Retargeting, Conversion tracking, Lookalike audience