adlibrary.com Logoadlibrary.com
← Back to Glossary

Pixel

A small piece of code that tracks user actions on your website for advertising purposes.

Definition

A pixel is a snippet of JavaScript code placed on your website that tracks visitor behavior for advertising and analytics.

What Pixels Track

  • Page views
  • Conversions (purchases, sign-ups)
  • Add to cart events
  • Button clicks

Common Pixels

  • Meta Pixel (Facebook/Instagram)
  • Google Tag
  • TikTok Pixel

Essential for retargeting and attribution.

Why It Matters

A tracking pixel is a piece of code on your website that tracks visitor behavior and conversions. It's the foundation of digital ad attribution, retargeting, and optimization. Without a properly configured pixel, platforms can't learn who converts, can't build custom audiences, and can't optimize your campaigns effectively.

Examples

  • The Meta Pixel tracking page views, add-to-carts, and purchases on a Shopify store
  • A Google Ads conversion tag firing when someone completes a form submission
  • A TikTok Pixel tracking product views and purchases for campaign optimization

Common Mistakes

  • Installing the pixel but not configuring conversion events — page views alone aren't enough
  • Not implementing server-side tracking (Conversions API) alongside the browser pixel for better accuracy
  • Waiting to install the pixel until running ads — install it immediately so it starts collecting data