Back to Tools

Email Tracking Pixel Generator

Generate email open tracking pixel HTML code with custom callback URLs and parameters, or test a free hosted pixel live: send yourself an email and watch the open arrive, including Apple Mail and Gmail proxy opens.

About this tool

An email tracking pixel is a 1x1 transparent image embedded in an HTML email. When the recipient's mail client loads images, it requests that file from your server, and your server logs the request as an open. Every open rate you have ever seen was produced this way. Use the generator above to build the pixel tag with your own callback URL and whatever parameters you need to tie a request back to a specific campaign and subscriber.

How an email tracking pixel works

The pixel is an ordinary img tag pointing at a URL you control, sized to one pixel and made invisible. The interesting part is the request, not the image. When the mail client fetches it, your endpoint receives the query string you embedded, along with a timestamp, an IP address, and a user agent string. You record those, return a tiny transparent GIF or PNG, and you have an open event. Include a unique subscriber or send identifier in the query string if you want per-recipient tracking rather than a campaign-wide counter. Pair the pixel with tagged links from our UTM builder so opens and clicks land in the same reporting model.

Why open rates overstate reality

Open tracking is directional, not exact, and it has been getting less exact every year. Apple Mail Privacy Protection, introduced with iOS 15, pre-fetches every image in every message through Apple proxy servers whether or not the recipient ever looks at the email. Anyone reading in Apple Mail therefore registers as an opener of everything you send. Gmail proxies and caches images too, so a second look at the same email may never hit your server again. Many corporate gateways and desktop clients block remote images by default, which pushes the number the other way. Treat opens as a trend line and judge campaigns on clicks, replies, and revenue instead. Our guide to improving email open rates covers how to read the open rate after MPP. Our open rate calculator and CTOR calculator help you separate the two.

Privacy, consent, and disclosure

A tracking pixel collects personal data. Under GDPR, the UK GDPR, and similar regimes, that means you need a lawful basis for it and you must disclose it. The practical minimum is a plain-language line in your privacy policy explaining that you record opens and clicks, what you store, and how long you keep it. Several jurisdictions and interpretations require explicit consent rather than legitimate interest, so check your own position before rolling tracking out across an existing list. Never use a pixel to track people who have not opted in to receiving your email in the first place.

When to build your own pixel, and when not to

Building your own is the right call when you are sending from your own application, need the raw event stream in your own database, or are learning how the mechanism works. It becomes the wrong call quickly once you are running marketing campaigns, because you also have to host the endpoint, deduplicate Apple pre-fetches, filter bot opens, expire cached requests, and reconcile the whole thing against clicks and revenue. Sequenzy does that already: opens, clicks, and revenue per email are tracked out of the box, known security scanners are filtered out of your stats (with stricter bot filtering you can turn on), and reports show how many opens came through Apple, Gmail, and Yahoo privacy proxies, so you can read your numbers honestly without maintaining any of the plumbing. See campaign analytics for what that reporting looks like. If you are weighing other options, our comparison of email marketing platforms notes which ones report natively beyond opens and clicks.

Test a tracking pixel live

The live test at the top of this page gives you a hosted pixel without running a server. Copy it into an email, send the email to yourself, and open it. Each time the pixel loads, the page shows what fetched it: a mail client loading it directly, Apple Mail Privacy Protection prefetching it, Gmail or Yahoo loading it through their image proxies, or a security scanner inspecting the message. Running the test on an Apple Mail inbox is the fastest way to see why open rates are inflated: the "open" often arrives before you have looked at the email at all. Test pixels expire after 24 hours, and the tool stores only when the pixel loaded and which client or proxy fetched it, never an IP address or location.

Where to put a tracking pixel in your HTML

Most platforms place the pixel either at the very top of the body or just before the closing body tag. The top is the safer choice for long emails: Gmail clips messages larger than about 102 KB and hides the rest behind a "View entire message" link, so a pixel at the end of a clipped email never loads and the open is never recorded. Keep the tag a plain img element with width and height set to 1, an empty alt attribute, and no border. If you are building the email itself from scratch, the AI HTML Email Builder produces email-safe HTML you can drop the pixel into, and the Email Size Checker tells you whether the message is close to Gmail's clipping limit. Avoid putting it inside elements that some clients hide or strip, and give it an absolute https URL, since email clients do not resolve relative paths. If you send plain-text emails, there is nowhere to put a pixel, which is one reason plain-text campaigns report no opens.

Troubleshooting open tracking

If opens spike within seconds of sending, the cause is almost always machines, not readers: Apple Mail Privacy Protection downloads images in the background when messages arrive, whether or not anyone opens them, and corporate security filters open messages to scan links and images. If an email shows no opens at all, check that images are enabled in the client you tested with, that the pixel URL is reachable over https, and that the message was not clipped by Gmail. If the first open registers but repeat opens never do, the client is caching the image. Gmail's proxy is the usual reason, and no-cache headers only partly help. When numbers look wrong, compare them against clicks, which are much harder for proxies to fake.

How to tell if an email contains a tracking pixel

Open the message source ("Show original" in Gmail, "View source" in most desktop clients) and look for img tags that are 1x1 pixels or point at URLs with long unique identifiers in the path or query string. Most marketing and sales emails contain one. To stop them firing, turn off automatic remote image loading in your mail client, or use Apple Mail Privacy Protection, which loads images through a proxy so the sender cannot see your IP address or when you actually read the email.

Skip the pixel plumbing

Sequenzy tracks opens, clicks, and revenue per email out of the box, filters known security scanners out of your stats, and shows how many opens came through Apple and Gmail privacy proxies.

Frequently Asked Questions

How do email tracking pixels work?

A tracking pixel is a tiny 1x1 pixel image embedded in email HTML. When the recipient's email client loads images, it makes an HTTP request to fetch the pixel from your server. Your server logs this request along with metadata (timestamp, IP, user agent), recording an email open event.

Are tracking pixels accurate?

No. Tracking pixels have significant accuracy limitations. Apple Mail Privacy Protection pre-fetches all images (inflating open rates). Some email clients block images by default (under-counting). Corporate firewalls may block tracking pixels. Cached images may not trigger additional requests. Use open rates as directional data, not exact measurements.

How does Apple Mail Privacy Protection affect tracking?

Apple Mail Privacy Protection (introduced in iOS 15) pre-loads all email images through Apple proxy servers, regardless of whether the user actually opens the email. This means all Apple Mail users appear to open every email, making open tracking unreliable for this large segment of users.

Do I need to disclose email tracking to recipients?

Under GDPR and many other privacy regulations, yes. You should disclose the use of tracking pixels in your privacy policy. Some regulations may require explicit consent. Transparency builds trust with subscribers. Include tracking disclosure alongside your data collection practices.

What is the difference between the output formats?

The HTML img tag is the most common and widely supported. The hidden image variant uses display:none to be completely invisible. The CSS background method embeds the tracking URL as a background-image on a tiny div. All achieve the same result but with different levels of visibility.

Can I track individual subscribers?

Yes, by including a unique subscriber ID in the tracking URL parameters. When the pixel loads, your server can associate the open event with a specific subscriber. This is how email platforms provide per-subscriber open tracking in their analytics.

How do I add a tracking pixel to an email?

Paste the img tag into the HTML of your email, ideally near the top of the body so it still loads if Gmail clips a long message. In an email platform, use its custom HTML or code block. In Gmail or Outlook, which have no HTML editor in the compose window, copy the pixel as rich content (the live test above has a button for this) and paste it into the message body.

What is a 1x1 tracking pixel?

It is a transparent image one pixel wide and one pixel tall, usually a 43-byte GIF, whose only job is to be requested from a server. The image is invisible to the reader; the request it triggers is what records the open. The width and height attributes keep it from affecting the layout in clients that ignore CSS.

What should a tracking pixel URL contain?

An absolute https URL on a domain you control, plus identifiers that tell you which email and recipient the request belongs to, such as a campaign ID and a subscriber ID. Keep it short (under 2,000 characters), avoid personal data like email addresses in plain text, and serve it with no-cache headers so repeat opens are not swallowed by caches.

Can I use a tracking pixel to track clicks?

No. A pixel only reports that images were loaded. Clicks are tracked by routing links through a redirect URL that records the click and then sends the reader on. Because clicks require a deliberate action, they are a far more reliable engagement signal than opens, especially since Apple Mail Privacy Protection.

Can I test a tracking pixel for free without a server?

Yes. Use the live test at the top of this page to create a free hosted pixel, paste it into an email to yourself, and watch the open appear on the page. Test pixels expire after 24 hours and only record when the pixel loaded and which mail client, proxy, or scanner fetched it. They are meant for testing on your own inbox, not for tracking a list.

Why did my test show an open before I read the email?

Something other than you loaded the image. Apple Mail Privacy Protection downloads images through Apple's proxy when the message arrives, and corporate security filters fetch images while scanning mail. Both look like opens to a basic tracking pixel, which is why raw open rates overstate how many people actually read an email.

Do tracking pixels work in Gmail?

Yes, but Gmail loads images through its own proxy, so you see the open without the reader's real IP address, location, or device. Gmail may also cache the image, so repeat opens of the same email are not always recorded, and emails over about 102 KB are clipped, which stops a pixel placed at the end from loading.

Compare email marketing software

Hands-on roundups to help you pick the right platform.