How a marketing pixel works, shown with a fake camping store.

what it is

A pixel is a small snippet a website adds to its pages. When you do something (view a product, add it to your cart, buy it), the pixel quietly sends a message to an ad platform like Meta, Google, or TikTok. The name comes from the original trick: loading an invisible 1×1 image whose URL carries the data.

The platform uses those messages for three things:

  • attribution: did an ad click lead to a sale?
  • retargeting: show ads to people who added to cart but didn’t buy.
  • optimization: learn which kinds of people convert, then find more of them.

try it

Accept or decline the cookie banner, pick how you arrived, then shop around Basecamp Supply and watch both panels update.

Prefer more room? Open the demo full page.

things to try

  • decline the cookie banner. Every event gets blocked. This is what consent banners, ad blockers, and browser privacy features do to pixels.
  • arrive “directly,” then buy. The platform logs the purchase but credits no revenue to ads.
  • add to your pack and leave. You’re now in the “cart abandoners” audience, the source of those “you left something behind” ads.

The requests in the demo are real: each one loads a tiny image from this site. Nothing is sent anywhere else.