---
title: What the hell is a marketing pixel?
slug: what-the-hell-is-a-marketing-pixel
docTags: 
createdAt: 2024-10-24T23:29:21.597Z
---

Almost everyone who has worked in marketing has heard of marketing pixels at one point or another. Very few people thought can give a ***completely&#x20;***&#x63;lear definition of what the hell they are. Just for the sake of completeness, we'll be presenting 2 definitions. The **old** one and the **new** one.



The **old&#x20;**&#x64;efinition of a pixel is a 1x1 image that gets loaded on a site. This image loading then tells *Facebook/Google/Etc.* that someone's on your site. The image loading also includes info like the ip address, device, etc. You would then define an event by someone visiting an url. An example of this is in the image below:

![](https://api.archbee.com/api/optimize/BXW3X3QvgrCfiOlZkQjLw/bGOaoEy6cM5f5-DwGMka6_image.png "A normal Thank You Page")

Thats, of course, a thank you page. With the old pixel you set the purchase event to be when someone reaches this page. Thats it!



The new definition of a marketing pixel is quite more sophisticated. Instead of an image, its code. The code is loaded on your site. The code does a ***lot&#x20;***&#x6F;f things. Lets set that aside for a minute. The code will look a bit like this:

:::hint{type="danger"}
**&#x20;WARNING! CODE BELOW. READ AT YOUR OWN PERIL**
:::

```html
<!-- Facebook Pixel Code -->
<script>
  !function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
  fbq('init', '{your-pixel-id-goes-here}');
  fbq('track', 'PageView');
</script>
<!-- End Facebook Pixel Code -->
```

Now ignoring that horrible, horrible thing above, the long and short is that it loads a javascript code file into your browser. Which then does a lot of things.



Lets go into those things 😀
