Post image for How to monetize your old blog posts

How to monetize your old blog posts

by Jean-Baptiste Jung on December 2, 2009 · 39 comments

When a post is published on your blog, the first persons to read it are your loyal visitors : RSS subscribers, Twitter followers, people from social bookmarking sites… But after a week or so, 98 percent of people reading the post are comming to your blog from search engines.

As it is a known fact that search engine people will be more likely to click on your ads, what about displaying more ads on old blog posts?

Why old posts are so important

On a quite new blog like this one, It is obvious that most of the traffic is comming from RSS subscibers, Twitter, and social bookmarking sites. But on the other hand, established blogs as such as Cats Who Code or WpRecipes receive a lot more traffic on “old” post, comming from search engines. The reason is quite simple : The more indexed posts in search engines you have, the more chance you have that people will visit your blog after typing a request on Google.

This is why some blogs are updated only once or twice a month and still receive lots of visitors.


Good example : 4 of the 5 most viewed pages of my blog Cats Who Code are older than 3 months.

Search engines visitors and advertising

It is a quite known fact that people comming from search engines results pages are more likely to click on advertisments than your regular visitors. The reason is that search engines visitors are looking for something in particular and if your blog post didn’t brought them an answer (or that they want more info) they will probably click on an ad if relevant to their needs.

On the other hand, regular visitors are used to your blog and read it often because they like it. They aren’t looking for something particular, they read each of your post like people reads the newspaper every morning.

WordPress hack to display ads on old posts only

As I know that most of you are using a WordPress blog, I though I could share this very usefull WordPress hack with you. Its purpose is pretty simple: It get the post date and compare it with today’s date. If post date is X days older than today, the code will display ads. Otherwise, nothing will happens.

The following function have to be pasted in your functions.php. If you are using the Thesis theme this file is named custom_functions.php.

function is_old_post($post_id=null){
   $days = 15;
   global $wp_query;
   if(is_single() || is_page()) {
      if(!$post_id) {
         $post_id = $wp_query->post->ID;
      }
      $current_date = time();
      $offset = $days *60*60*24;
      $post_id = get_post($post_id);
      $post_date = mysql2date('U',$post_id->post_date);
      $cunning_math = $post_date + $offset;
      $test = $current_date - $cunning_math;
      if($test > 0){
         $return = true;
      }else{
         $return = false;
      }
   }else{
      $return = false;
   }
   return $return;
}

Once you successfully inserted the code in your function.php file, you are now ready to call the functions in your single.php template as shown below:

<?php if(is_old_post()){ ?>
INSERT AD CODE HERE
<?php } ?>

That’s all. This code have been found on the very good French blog Monetiweb, so credits goes to them!

Displaying ads only to search engine visitors

If you’re looking to target search engine visitors only, another option is to detect the referrer (ie. the last page the visitor was on before going to your blog) and show him ads if he comes from a search engine.

The following WordPress hack will do that job perfectly. To apply it on your blog, insert the code below in your theme functions.php file.
Note that the $SE array is where you specify search engines. You can easily ad new search engines by adding new elements to the array.

function scratch99_fromasearchengine(){
  $ref = $_SERVER['HTTP_REFERER'];
  $SE = array('/search?', 'images.google.', 'web.info.com', 'search.', 'del.icio.us/search', 'soso.com', '/search/', '.yahoo.');
  foreach ($SE as $source) {
    if (strpos($ref,$source)!==false) return true;
  }
  return false;
}

Once done, open the file where you want to display the ads and paste the following code :

if (function_exists('scratch99_fromasearchengine')) {
  if (scratch99_fromasearchengine()) {
    INSERT YOUR CODE HERE
  }
}

Save the file, and you’re done. Thanks to Stephen Cronin for the hack!

If you’re blogging using WordPress, don’t forget to check out my WordPress hacks to make more money online list if you haven’t read it yet.

WPShift

{ 18 trackbacks }

uberVU - social comments
December 2, 2009 at 4:00 pm
Twitted by adiyantoWijaya
December 3, 2009 at 11:13 am
Twitted by Scotix
December 3, 2009 at 11:39 am
How to monetize your old blog posts « Netcrema – creme de la social news via digg + delicious + stumpleupon + reddit
December 3, 2009 at 1:10 pm
Donnerstag, 03.12.09 – Web Tweets | abtwittern
December 3, 2009 at 6:26 pm
I have Buyers for Indianapolis, IN – one, two homes at a time … | Indiana Real Estate
December 4, 2009 at 7:51 am
Интересно почитать – часть 19 | Блог Терехова
December 4, 2009 at 11:58 am
Twitted by adamsconsulting
December 4, 2009 at 10:40 pm
18 Blog Posts You Should Read This Weekend | Internethow Blog
December 5, 2009 at 5:04 pm
Sunday Killer Link Love Post #2
December 6, 2009 at 8:58 am
EmailCash - Sunday Killer Link Love Post #2
December 6, 2009 at 9:01 am
Блог-шоу - выпуск 32
December 9, 2009 at 10:56 am
Top WordPress hacks of 2009
December 22, 2009 at 5:02 pm
3 artículos interesantes del Jueves 24 de Dec publicados en otros blogs » hombrelobo, una mente dispersa
December 25, 2009 at 7:02 am
How to Monetizing your old blog posts | Intipadi.com
January 31, 2010 at 6:53 am
2009 yılının en iyi wordpress eklentileri - internet | teknoloji | haber
January 31, 2010 at 4:17 pm
Geld mit dem Blog verdienen ohne die Stammleser zu nerven | michaelplas.de
February 3, 2010 at 2:04 pm
My favourite WordPress-Snippets « Scripted-Sheep Development
February 24, 2010 at 11:38 pm

{ 21 comments… read them below or add one }

1 Ali Papila December 2, 2009 at 3:45 pm

Very useful tips you provided here. I was actually thinking about this issue for a while now. Before, i used to display adsense on my blog post (wraped around text style). However, I found it quite anoying, if i see that on blog posts. I am sure my readers do as well. So, I can use this to put ads on older posts.

Thank you for sharing this useful tip.

2 Jean-Baptiste Jung December 2, 2009 at 4:05 pm

@Ali Papila : Thanks for the kind word! I’m glad you enjoyed the post. Definitely, ads are anoying for loyal readers, but we shouldn’t hesitate to display it on old posts for search engine visitors.

3 Design Informer December 2, 2009 at 7:40 pm

Thank you for this great post Jean. My blog is fairly new, but when it gets a little older, I will look more into this, and thankfully, I already have a guide to follow!

4 Jean-Baptiste Jung December 2, 2009 at 7:47 pm

@Design Informer : Your blog is pretty (Just as this one!) but it is already full of quality article. I’m pretty sure than in one year, it will be a success. Keep up the good work!

5 Maestro Geek December 2, 2009 at 8:08 pm

Really well thought ! You wrote a great post again Jean.

6 Roberto Blake December 2, 2009 at 8:19 pm

This is a very interesting read, I’ve been noticing that some of my older blog post have been responsible for a good deal of my search engine traffic. In an effort to increase traffic, CTR and such I have been increasing the frequency of my post and the variety of my content.

7 Jean-Baptiste Jung December 2, 2009 at 8:24 pm

@Roberto Blake : Yes, old post + old post + old post = lots of traffic, this is why the most posts you have, the most traffic you’ll get.
Btw saw on your website that you’re from NYC…What a great city! I love to go there for vacations!

8 mupet December 2, 2009 at 10:23 pm

Useful tips, monetizing old post :D

9 designfollow December 3, 2009 at 3:04 am

great

thank you

10 Dana @ Online Knowledge December 3, 2009 at 6:11 am

Wow, really great hack. We surely can optimizing our blog more by use this hack. Thanks for sharing.

11 Magentoua December 3, 2009 at 11:02 am

Thanks! Thanks for the great post.

12 MexiChriS December 3, 2009 at 1:41 pm

very interesting. was wondering how someone would go about this, if possible, and how older post’s, if they did, bring in more traffic by new visitors & so forth… ya basically turned my early morning thought into a solution! thanks & keep ‘em coming!

- MexiChriS

p.s. i love the site, it’s so beautiful, it just never ceases to amaze me when i visit!

13 Frank December 3, 2009 at 1:48 pm

Great idea of versioning my blog posts and rewarding loyal visitors …

14 compound bows December 3, 2009 at 2:03 pm

Thanks Jean for writing a beneficial post. I hope you will keep on writing like this.

15 Agent Wordpress December 3, 2009 at 4:34 pm

Very useful tip. This way my subscribers won’t see any ads as they will read the post in first few days. So, I get clean blog and ad revenue at the same time.

16 France Roy December 4, 2009 at 2:54 am

I wrote this same code in javascript if you don’t have wordpress:
http://francedroy.com/post/268304598/how-to-monetize-your-old-blog-posts-using-javascript

17 Lee Ka Hoong December 4, 2009 at 4:00 am

Wonderful hack for thesis theme! Between Jean, where the ads will be displayed within the blog post? Before content, middle or end of content?

That’s a very useful hack though, thanks for sharing Jean!

Cheers,
Lee

18 Jean-Baptiste Jung December 4, 2009 at 2:21 pm

@France Roy : Interesting code, thanks for sharing!

@Lee Ka Hoong : This hack can be applied on any theme, not only on Thesis. Ad placement depends of where you’ve pasted the second piece of code.

19 RahulBuzz December 7, 2009 at 6:20 pm

This is amazing post…really great.

20 Gerrit Fries December 19, 2009 at 10:44 am

great deal. there is really no need to show ads to everyone ’cause they are just annoying…

21 Jean-Baptiste Jung December 19, 2009 at 11:16 am

@Gerrit Fries : “they are just annoying” but they are my salary… And they allow bloggers to work a lot and give free content to people. Not so bad, isn’t it?

Leave a Comment

Previous post:

Next post: