Pixel
A pixel is a JavaScript snippet on your website that sends user behavior events (pageview, add-to-cart, purchase) back to ad platforms.
What does Pixel actually mean?
A pixel is a small JavaScript tracker placed on every page of your website (or installed via Google Tag Manager). Each ad platform has its own (Meta Pixel, TikTok Pixel, Google Tag), but the concept is identical: capture user events and send them to the platform for attribution and audience-building.
Pixels detect standard events (PageView, ViewContent, AddToCart, InitiateCheckout, Purchase) plus custom events you define. The data flows back to the ad platform, which uses it for two jobs: attribute conversions to ads, and build retargeting / lookalike audiences.
In 2024+, browser-side pixel tracking has degraded due to ITP, third-party cookie deprecation and ad blockers. The replacement is server-side tracking via Conversions API (CAPI). Pixels still fire client-side as a fallback, but the source of truth is increasingly server-to-server.
Example
Meta Pixel fires on a Shopify product page (ViewContent event) and again at checkout completion (Purchase event with revenue and product ID). Meta uses these events to attribute the purchase to the ad campaign that drove the original click.
When it matters
Pixel data is the foundation of paid-social attribution and audience-building. Loss of pixel data = loss of optimization signal. CAPI is the upgrade most modern teams pair with the pixel.
Related terms
CAPI
CAPI sends conversion events directly from your server to the ad platform, bypassing browser-side limitations of pixel tracking.
Conversion event
A conversion event is a tracked user action that signals a goal completion: purchase, signup, install, lead form submit. The unit of attribution.
First-party data
First-party data is information you collect directly from your customers: purchases, signups, behavior on your site. Privacy-safe and durable.
Attribution
Attribution determines which ad touchpoint receives credit for a conversion, using last-click, first-click, time-decay or data-driven models.
GA4
GA4 is Google's event-based analytics platform that replaced Universal Analytics in July 2023. Cross-platform, privacy-friendlier, harder to use.
Find out which ads actually win.
advrt builds ads around your real product photos, tests them live on Meta and judges each one against your own account. Free plan, no credit card.