I’ve spent a lot of words over the years railing against the infiltration of advertising into our weblog world, and enjoyed that righteous glow that comes from standing up for a principle, regardless of how well- (or poorly-) founded the thinking on that principle be.
Here comes the ‘but’.
But I’ve rethought things a bit, in no small part after reading the essay Matt Haughey wrote here.
Imagine that — ads that actually make a page more valuable to readers, not just the site owners. Random people searching for information are much more likely to click on those related text ads if the ads help them find what they are looking for. Compare that to a regular visitor that comes to your site dozens of times a week: How often are they going to click on any ads? How quickly will they learn to visually filter out the ads entirely from the experience? Superfans develop banner blindness extremely quickly.
What I realized when I looked at my Google Analytics reports was that the majority of ad clicks are coming from these one-time visitors looking for information. I do it myself when searching, especially if it’s for a product of some type. I’ll search, dive into the results, and if the top 5 don’t have what I’m looking for, I’m very likely to click on related ads to see if that’s what I’m looking for. New visitors to a site love to click on anything that brings them closer to their goal, and often times that’s an ad. This, in essence, is the entire business model of per-click advertising.
I’ve always been annoyed by advertising in general, on the web or anywhere else. A lot of my ire in recent years has been directed at Adsense, and that has been mostly because of its ubiquity, I suppose. I’ve always been unshakeable in my conviction that advertising is about the enrichment of the marketing company and the manufacturer of the product or provider of the service being advertised, and about the deliberate manipulation of the people being advertised to, typically to their detriment. Defenders of the Ad often suggest that we, the Consumers, wouldn’t be able to find out about all these products and services created and sold to improve out lives. Well, I suppose there were times when I discovered something I simply couldn’t live without through advertising, but I can’t remember it ever happening. Documentaries like the excellent four part ‘Century of the Self’ did nothing to dissuade me from this, and hammered home for me the ways in which I thought that advertising had interpenetrated and cheapened our modern cultures.
I still think that I’m right about all that.
But Matt triggered some new thinking for me, new thinking that I suppose I’d been tenderized for by building one of my other sites and putting Adsense on it out the gate — the rarely-updated OutsideinKorea. From the get-go, I assumed that it would be a site that people would mostly arrive at from search engines, and not be a regularly-updated, regularly-visited-by-readers webloggy kind of project. And so I put up the ads (for which I’ve still not made enough to get a single check, more than a year later, but I’ve really let it languish, so the fault is nobody’s but my own, from a revenue point of view).
But I hadn’t really followed that thinking through, and what Matt had to say helped me do that.
Two ideas here: that when we’re talking about weblogs and advertising, that an awful lot of people who land on the site (by far the largest ongoing slice of visitors — bar the Digging and Slashdotting et al last year, which was a transient traffic rogue wave) come from search engines. From Google itself, mostly. These people are looking for something, something they’re hoping they might find here. Probably not a product. More likely some piece of information.
It’s possible, I hope, that they find it on the individual archive page they land on here at the ‘bottle, but they might not. If not, then they’ll go on to find it elsewhere, and it’s entirely possible that they might find it following a contextual ad from Adsense.
The ads might actually help them, as well as me, if they click on them. They might actually serve some useful purpose to both parties involved, something I’d never really been able to get behind as a justification for advertisements for the latest variation of Coca Cola, or the newest erectile-dysfunction chemical.
But I didn’t want ads plastered all over the place creating visual clutter for people who actually do regularly visit, who arrive from other weblogs or comments I make elsewhere, or from RSS feedreaders when I make an update. People who are here for the wonderchickeny goodness, not the sifting-through-sum-total-of-human-information.
The solution, of course, as Matt suggested, was to display ads only if people come from one of the traffic firehoses (Digg and Slashdot and Wikipedia and Stumbleupon and the search engines), and not display them if people come from their bookmarks or another weblog or pretty much anywhere else.
I don’t know why I never thought of it before.
So here’s what I’ve done to display ads to visitors conditionally, based on the referrer, using Movable Type. Feel free to borrow and use this yourself — it’s not complicated, and all the reading I’ve done has indicated that it does not in any way violate the Adsense terms of service. There may, of course, be better ways to do it. My coding skills are, to put it kindly, somewhat haphazard.
1) I created a couple of modules in Movable Type, one for each Adsense format I wanted to display. At the moment, I have two modules named module-banner and module-leaderboard Each holds the appropriate Adsense-generated code for that style of ad block, wrapped in a div and a bit of php code to check where the visitor has come from.
The modules look like this. I wrap the whole thing in a div so I can style it, if I want. (You could, of course, customize the referrer list anyway you liked.)
<div class="topbanner">
<?php
if (isset($_SERVER['HTTP_REFERER']) && preg_match("/^https?:\/\/[0-9a-z]*\.?(google|yahoo| stumbleupon|digg| wikipedia|slashdot|lycos|altavista)\..+\/.*$/i", $_SERVER['HTTP_REFERER'])) {
echo <<<END
ADSENSE CODE GOES IN HERE
END;
}
?>
</div>
2) I include the modules in any index template I wish to conditionally display Adsense ads like so:
<$MTInclude module="module-banner"$>
or
<$MTInclude module="module-leaderboard"$>
depending on which of the two ad styles I want to include.
I may make other module variations in future, of course. At the moment, I’m only displaying ads in Individual Archive Templates.
3) I long ago switched all of my extensions over to .php to use some other php inclusions, so that just worked for me. You may need to do make a filetype change (it’s in the settings area in Movable Type) (and possible .htaccess edit — I fly this stuff by the seat of my pants!) .
And that’s it. Now searchers/visitors from the sites I nominate get ads that may help them find what they’re looking for, if it isn’t here, and regular blog visitors who come from pretty much anywhere else don’t. You can test this out by hitting this Google search, then following the first hit back to here. You’ll see ads. Paste the URL directly in to the address bar (for example) and you won’t. Magic!
I probably won’t make much money from this, either. But given the 10,000+ visits that make up an average month at the bottle, more than half of which arrive from search engines, perhaps I’ll make enough for a beer or two each month, and do it without (I hope) annoying any of my loyal readers who’ve stuck with me for all these years.
Share and enjoy.
[Update: Thanks to the most excellent skills of my friends and neighbours, I’ve made a few changes to smarten up the referrer checking code. Major thanks to Ed Eliot, who was kind enough to whip up something better and explain what the Evil Regex was doing. I’ve updated the code for the MT modules above accordingly — my implementation is very slightly different from his, which ought to work anywhere PHP is spoken, of course.]