Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Render tracking pixel in HTML email

Which one of these 3 options is most suitable for adding a 1x1 tracking pixel (aka web bug or web beacon) to HTML email:

  1. <img src="TRACKING-PIXEL-URL-GOES-HERE" style="position:absolute; visibility:hidden">
  2. <img src="TRACKING-PIXEL-URL-GOES-HERE" style="display:none">
  3. <img src="TRACKING-PIXEL-URL-GOES-HERE" width="0" height="0">
  4. Other?

The image itself is a transparent 1x1 GIF.

Please note this is not for a web page, this is for HTML email with its ill-defined CSS support.

like image 765
parxier Avatar asked Nov 07 '13 03:11

parxier


People also ask

Can you put a tracking pixel in an email?

You can add a tracking pixel to your email in one of two ways. Either use a sales and marketing email tool that allows you to view open rates, replies, and link clicks. Or, manually add one yourself by pasting a tracking pixel code just before the </body> tag in the email's code.

How do I track an HTML email?

To track emails from the Contact's page in Classic hover over the HTML Email Status link at the top of the page. To track emails from the Contact's page in Lightning look for a "last opened" or "unopened" message under the Past Activities section on the right side of the page.

How do I find the pixels of an email tracking?

Like Ugly Email, tracking pixels are blocked, and emails that contain them will be marked with a small T icon in the subject header when you open the message. You can also identify tracked links inside messages, and block them if necessary.


1 Answers

I'd suggest just using a transparent image and a normal image tag - This is how Litmus does it:

<img src="..." width="1" height="1" border="0" />

This is how Campaign Monitor does it:

<img src="..." style="height:1px !important; width:1px !important; border: 0 !important; margin: 0 !important; padding: 0 !important" width="1" height="1" border="0">

Two very trusted sources, so either of those 2 options would definitely suffice.

like image 53
John Avatar answered Sep 19 '22 11:09

John