Gmail inbox tricks and alt text traps
Latest posts | Feed | | By Mark Brownlow
Smart marketers exploit that knowledge to encourage people to open the email. But manipulating the displayed snippet can also backfire.
Here's the story...
First, a screenshot of my Gmail inbox:

The appended text shows up in gray to the right of the bolded subject lines. You'll note none of the senders chose to optimize for Gmail users.
Gmail appends the first bit of text it comes across in the email, which usually means:
1. Blurb about viewing the email online, or...
2. The salutation that often graces the start of the email's copy, or...
3. The first headline in the email (commonly a copy of the subject line)
Those bits of text are in the email for good reason (probably), but they do little to encourage a Gmail user to investigate the email further.
If you want custom snippet text to appear, then there are two common approaches...
1. Text preheader
You can place the text you want Google to pick up at the top of your email. Like this:

Indeed, many people choose to use this preheader space for a call to action or little teaser anyway. The text's appearance in the Gmail inbox is just a bonus.
Others, however, prefer to leave that space free of clutter and use it for an image, or to point people to functional links like the web version, the forward-to-a-friend feature, etc.
Which brings us to the alternative approach...
2. Alt attribute text
Gmail doesn't just pick up free-standing text, it also reads the text in the alt attribute listed in your image code:
<img src="http://acmesite.com/EFGR.jpg alt="click here for coupon">
You can exploit that by putting a transparent 1x1 pixel image at the very top of your email and giving it the alt text you want Gmail to display.
When the image is downloaded by the recipient, it's effectively invisible. So this code...

...looks like this in Gmail:

(The pixel is invisible but the "Boost your clickthrough rate by 25%..." alt text will show up in the inbox as the appended snippet of text.)
OK, I see a hand going up at the back there. Yes?
"What about when images are blocked?"
Good question, and one which users of this technique often forget about. A tiny, invisible image is not quite so tiny and invisible when images are blocked by the recipient's email client or webmail interface.
Trap 1: Undefined image size
If you forget to define the size of the 1x1 image using height and width attributes, this is what happens in Gmail:

The blocked image expands to fit in the alt attribute text, which can play havoc with your layout.
Yahoo! Mail does this as well and Outlook 2003 creates this mess:

So, first warning: define the height and width of your snippet pixel.
Trap 2: Defined image size
If the height and width is defined as 1, then the image effectively remains invisible, even when Gmail blocks an image:

But we're not finished yet.
If you're sending out all your emails coded like this, there are some clients that aren't so friendly as Gmail.
For example, even if the height and width is defined, Thunderbird will still expand the size of the blocked image to fit in all the alt text you used:

So if you're going the invisible pixel route, run some design tests just to make sure you don't mess up your layout if images are blocked.
Related posts:
Alt attributes and image suppression in email
More on email design and copywriting | Tags: email marketing, gmail, image blocking
Permalink | May 26, 2009 | 6 comment(s) - add yours!
Get posts like this: as an RSS feed | biweekly email | via Twitter
Twice a month, free, packed with email marketing advice and all the posts from this blog.
6 Comments:
One thing that can help when going the 1x1 image route: put the image inside a span and set the font-size and color for the span to make the text small and "invisible."
Example: <span style="font-size: 8px; color: #ffffff;"><img alt="Snippet Text" src="image url" /></span>
By Justin Premick, on
26 May, 2009
Thanks Justin.
I wonder though if there are any implications for deliverability if font color is set to white with no apparent contrasting background? (i.e. "invisible" text)
I have no idea personally, but it strikes me as something that an automated system might consider minor spammy?
Not sure if anti-spam systems are that sophisticated or attentive? Or if they care?
Any idea?
By , on
26 May, 2009
Logically it would make sense that it might seem spammy, but I have yet to notice any ill effects as a result of doing it (I've used the 1x1 image method for a little over a year on several of our campaigns).
Even if anti-spam systems are (or were to become) that sophisticated, I tend to think that something like that would be a minor mark - particularly for a sender with an established reputation, low complaint rates, etc.
Perhaps this is a tactic to avoid if your reputation/delivery is already rather checkered.
By Justin Premick, on
27 May, 2009
Sounds like a solid argument: thanks Justin!
By , on
27 May, 2009
Another trick to maintain your layout is to use tables or grids in your email. You can easily define the cell in the table and keep them from skewing your layout. Programs that are geared to email marketing usually have good email editors that will allow you to do these tricks without having to edit the HTML coding.
Bill Q
By Online CRM, on
19 June, 2009
Even with the 1px img alt Webmail
Firefox and Thunderbird will show the full text in the content in case of image blocked.
What about a different solution?:
<div style="overflow: hidden; display: none; visibility: hidden; width: 0px; height: 0px;">TEST SNIPPET</div>
I blogged about this Gmail Snippet trick (in italian)
By VOXmail, on
02 July, 2009



