Monday, December 22, 2008

Three Simple Tips to Boost Your AdSense Income

Google AdSense can be a lucrative source of income, and due to this big making money opportunity, everyone is making effort to have his or her share of the pie. Even now at this time, there are thousands of fresh blogs being created by some online money makers around the globe.

Creating one fresh blog for AdSense purpose is a very simple task, even if you a newbie. There are tons of info on how to setup and use Google AdSense on the internet, and the good thing is, it is free. This article too meant for that same reason, and in it, you would read few tips on Google AdSense.

Many may probably have come across these tips somewhere else, but for those have not, I hope you will find it helpful. So, here the tips.

Tips to consider when adding AdSense on your blog:

1. Ads Placement.

Place your AdSense ads likely on the spot where it easily can be seen when visitors arrive on the site. The spots where most visitors will observe for the first time are, on top and below the post title, on the left and right side of the post body and on the top area above navigation bar. Ads placed near rich body content and navigational bars are consider the best spot because visitors are likely focus on the most on those areas.

2. Use Text Ads

Text ads have more advantages than image ads. You can blend in text ads with the post content and you can squeeze more of them in the space taken up by image ads. Another advantage using text ads is better description on the ads.

3. Make you ads blend in with the site

Customize your AdSense ads to blend with the site appearance. Using to many different color on your ads can make your site look ugly and in addition on that, many visitors hate sponsored link. That is why customize the AdSense ads to blend in with the site layout and main content, and loose the ads border. Visitors are more likely to click on it thinking it is linking to another useful content source.

Though those tips can help to increase your AdSense income, you need to understand that the most important thing about making money online from a blog with Google AdSense is getting the most traffic to your blog. The simplest way to say it, the more traffic you have, the more clicks you get, the more money you can earn.

I am a part time internet marketer, who enjoy the thrills offered in the making money online journey.

Tuesday, December 2, 2008

How To Display Ads Only To Search Visitors

In the past, I’ve written about only showing Google Adsense to search engine visitors, so as to decrease the chance of being smart priced. In this post, you’ll see how to improve the technique outlined previously, so that you can make more money.

Note: Although this post is about showing Adsense to search engine visitors, it’s really about determining whether a user came from a search engine or not. The technique can be used to show search engine visitors whatever you choose, not just Adsense.

Background On Smart Pricing

By now, most people know that Smart Pricing is a penalty Google applies to Adsense accounts that don’t convert well for the advertiser, resulting in you earning only about 10% of what you’d normally earn per click.

I’m not going to go into more detail than is absolutely necessary in this post, so if you want more information on Smart Pricing, see my post on how smart pricing may cost you money or for the ultimate description, see Grizzly’s Optimization Tips for Adsense.

For now, you just need to know that only certain visitors are going to click Adsense ads and buy something from the advertiser. Who? It’s not your regular readers. It’s not the stream of visitors from StumbleUpon, Digg or Sphinn. It’s the search engine visitors.

Search engine visitors provide targeted traffic for the advertiser, which converts well. The other sources don’t. If the majority of your traffic comes from the social news sites, then you’re in danger of being smart priced. That’s why I chose to show Adsense only to search engine visitors.

The Original “From Search” Function

In my original Shylock Adsense Plugin - Hack To Avoid Smart Pricing post, I provided two approaches: one based on hacking just the Shylock Adsense plugin; another on a more generic solution that can be called from wherever you want (within the Shylock Adsense plugin, the sidebar, single.php, etc).

In this post, I’m using the second approach as it has a wider application. This was originally explained in the Hacking Shylock Adsense AND Sidebars section of the previous post. This worked by adding the following function to functions.php in your theme’s folder (wp-content/themes/yourtheme folder, where yourtheme is the name of your theme):

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;
}

Note: This function is based on the ‘only show search engine’ functionality from the Who Sees Ads plugin.

This function was then called from the Shylock Adsense plugin, a sidebar widget, or anywhere else you may want to, via the following code:

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

Obviously, INSERT YOUR CODE HERE needs to be replaced with whatever code you want to show the search engine visitors: your Adsense code if it’s in the sidebar (using the ExecPHP widget) or the Shylock Adsense code (see my original post for more details).

Problem With The Original Function

As Zath pointed out in the comments, the original function only works on the first page the visitor lands on. If the visitor subsequently navigates to another page on your site, the ads disappear. This is because the http_referer is no longer the search engine, it’s now the page where they landed on your site.

Of course, that means they no longer have the option to click an ad before leaving the site. I wasn’t worried about this, because I figured not many search engine visitors would go to another page on my site. I was wrong!

Leaving Money On The Table

According to Google Analytics, over the last month, visitors arriving at this site from a search engine read 1.54 pages per visit. That means that every second visitor is clicking another page.

Every second visitor! That means I could be serving up 50% more ads to the sort of visitor who is likely to click ads!

I decided I better change the way I was doing things, so that search engine visitors see ads on every page they visit at my site. Fortunately, this is fairly easy to do, by setting a cookie that identifies search engine visitors.

New “From Search” Function Using Cookie

Here is the solution I’m now using on this blog.

First, the you need to add some code to functions.php in your theme’s folder (wp-content/themes/yourtheme folder, where yourtheme is the name of your theme). The following should be added immediately before the ?> at the bottom of the file:

$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) {
setcookie("sevisitor", 1, time()+3600, "/", ".scratch99.com");
$sevisitor=true;
}
}

function fromasearchengine(){
global $sevisitor;
if ($sevisitor==true || $_COOKIE["sevisitor"]==1) {
return true;
}
return false;
}

Note: In the setcookie line, you must change “.scratch99.com” to your own domain!

The fromasearchengine function can then be called from wherever you want to use it (to check if a visitor is from a search engine or not). This is explained further below.

Notes About The New “From Search” Function

The code that detects whether the user is from a search engine has been moved out of the fromasearchengine function, into the body of functions.php. This means it will only run this code once per page load, rather than every time the function is called, which may be several times per page load (I call it from Shylock Adsense and from the sidebar).

Also, the $sevisitor variable was introduced because the cookie can’t be detected on the first page view. The cookie is set on the first page view, but the $_COOKIE function won’t see it until the next page view. The above code checks whether the $sevisitor variable is set (ie it’s the first page view) or whether the cookie is set (ie it’s a subsequent page view).

I had one problem with setting the cookie via WordPress, but it doesn’t affect the final solution above, so I leave that for a future post.

Calling The New “From Search” Function

To call the new fromasearchengine function from Shylock Adsense, edit the shylock_adsense.php file which comes with the plugin. Look for the following code (on line 325 in version 1.2):

function shylock_adsense_filter($content){
global $id,$user_level;
$output = $content;

and replace it with:

function shylock_adsense_filter($content){
global $id,$user_level;
$output = $content;

if (function_exists('fromasearchengine')) {
if (fromasearchengine()) {

Then go down to about line 364 and look for:

return $output;

and replace it with:

} } return $output;

Note: I’ve just noticed that the Shylock Adsense Plugin has been renamed to the WhyDoWork Adsense Plugin. The name change seems to be the only difference, so the line numbers above are still correct, but the function is called whydowork_adsense_filter instead of shylock_adsense_filter.

Alternatively, to call it from a PHP sidebar widget or somewhere else (such as single.php), you would add the following code in the appropriate place:

if (fromasearchengine()) { ?>
INSERT YOUR CODE HERE

replacing INSERT YOUR CODE HERE with your Adsense code or whatever else you wanted to show the search engine visitor.

Final Thoughts

Using this technique, to set a cookie to identify search engine visitors, then only serving Adsense to such visitors, should help you make more money, while avoiding being smart priced. However, as always, it pays to experiment with Adsense and monitor the affects on your income.

Of course this technique will have other applications as well, allowing you to serve whatever content you like to search engine visitors. I hope some of you find it of use.

Shylock Adsense Plugin - Hack To Avoid Smart Pricing

In my last post, I talked about Adsense Smart Pricing and how blogs can avoid it by only showing ads to search engine visitors.

One option for WordPress is the Who Sees Ads plugin, which has the ability to do this. I prefer the Shylock Adsense plugin for the reasons given in my last post: automatic placement of ads; no need to enter placeholder in each post; easy to move ads from, say, top right to top left, etc.

The problem with Shylock Adsense is that although it can show ads on old posts only (mostly search engine traffic), there is no option to show ads only to search engine traffic. I really wanted this functionality, so I added a few lines of code to the plugin to enable it. In this post I explain how to do it.

Note: If you make these changes, you will lose some clicks and a lot of impressions. If you are currently smart priced, these changes should help fix that (after about a week), so you are likely to earn more. If you are not smart priced, you may actually lose money from these changes, although it safeguards you from the danger of being smart priced in future. Read my last post about Adsense Smart Pricing and blogs for a better understanding of the issues here. For my site, I’ve concluded that I wasn’t already smart priced. I do not seem to be losing any clicks, but your site may be different.

Hacking Shylock Adsense ONLY

If you are only using Shylock Adsense to show ads, then this section is for you. If you have Adsense in other places, such as the sidebar, skip this section and continue to the Hacking Shylock Adsense And Sidebars section.

First, edit the shylock_adsense.php file which comes with the plugin. Look for the following code (on line 325 in version 1.2):

function shylock_adsense_filter($content){
global $id,$user_level;
$output = $content;

and replace it with:

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;
}

function shylock_adsense_filter($content){
global $id,$user_level;
$output = $content;

if (scratch99_fromasearchengine()) {

Then go down to about line 364 and look for:

return $output;

and replace it with:

} return $output;

Upload the edited file to the wp-content/plugin directory on your server, overwriting the original file.

If you experience any problems, simply upload an unmodified version of the shylock_adsense.php file, replacing the one you’ve changed.

Shylock Adsense will now only show ads to search engine visitors. Any existing limitations will still be in place, but there is no longer any need for them - if the plugin is set to show ads after a certain number of days, you should change this so they are shown immediately.

Note: The scratch99_fromasearchengine function is based on the ‘only show search engine’ functionality from the Who Sees Ads plugin.

Hacking Shylock Adsense AND Sidebars

Note: If you only show ads using Shylock Adsense, the previous section is for you, NOT this one.

I display ads in my sidebar, as well as in the post body. There is little point in hacking Shylock Adsense so that ads only appear to search engine traffic in the post body, if regular visitors can see them in the sidebar! Therefore, I came up with a solution to restrict ads in both places.

If we are going to use it from multiple places, the best place for the function checking if visitors are from a search engine is not in the Shylock Adsense plugin. What if we stop using the plugin in future and disable it? Then the function will stop working in other places, such as the side bar. I decided to place this function in the functions.php file in my theme folder.

Note, this is not perfect, as the functionality will be lost if the theme is changed.

1. Functions.php

Go to the wp-content/theme/yourtheme folder (where yourtheme is the name of your theme) and make a copy of the functions.php file (in case things go wrong). Then edit the file, go to the very bottom and replace:

?>

with:

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;
} ?>

Upload the edited file to your theme directory on your server, overwriting the original file.

2. Shylock_adsense.php

Edit the shylock_adsense.php file which comes with the plugin. Look for the following code (on line 325 in version 1.2):

function shylock_adsense_filter($content){
global $id,$user_level;
$output = $content;

and replace it with:

function shylock_adsense_filter($content){
global $id,$user_level;
$output = $content;

if (function_exists('scratch99_fromasearchengine')) {
if (scratch99_fromasearchengine()) {

Then go down to about line 364 and look for:

return $output;

and replace it with:

} } return $output;

Upload the edited file to the wp-content/plugin directory on your server, overwriting the original file.

If you experience any problems, simply upload an unmodified version of the shylock_adsense.php file, replacing the one you’ve changed.

3. Sidebar Widget

To do this, you need to have a widget with can execute php code. I use Otto’s ExecPHP plugin, but there are others available.

If you don’t have a plugin which can do this, download ExecPHP and install it. This will add a PHP Code 1 widget to the Presentation - Widgets page in the Admin area. Drag this widget to wherever you’d like the ads to appear, click on the configure icon and enter the following into the text box:

if (scratch99_fromasearchengine()) { ?>
INSERT YOUR ADSENSE CODE HERE

replacing INSERT YOUR ADSENSE CODE HERE with your Adsense code.

Close the text box, Save Changes and you’ll now have ads which appear in the sidebar for search engine visitors only.

4. Other Places

Although I’ve done this in a sidebar widget, the same code should work equally well in sidebar.php - or for that matter, wherever you want to use it (maybe single.php or index.php).

Testing The Changes

This applies to both hacks above. You should no longer be able to see Adsense on your site when you visit it as you normally do. Now you need to visit your site via a search engine to see if the ads appear.

You could do this by searching for your site name or url, or you could search for a relatively obscure phrase from one of your posts, contained in quote marks (eg “I’ve concluded that I wasn’t already smart priced”).

Once you find one of your posts in the search results, click it, go to your site and see if ads appear. If they do, you’ve hacked the plugin successfully.

But Wait There’s More

While this post has been written from the perspective of serving Adsense ads to search visitors only, you could use this technique to show anything to search engine visitors - other ads, custom messages, you name it…

Final Thoughts

This hack should help you avoid being smart priced by Adsense. I hope you find it of use.

I’ll be contacting the author of Shylock Adsense to see if this functionality can be added to the plugin in future. In my view, this would be a logical extension to what is already a great plugin, especially as more people become aware of Adsense Smart Pricing.

Saturday, November 22, 2008

Make Money With Google AdSense in 5 Easy Steps

There's a lot of ways to complicate making money with Google AdSense, but if you adhere to some basic principles, you will realize a great income from this site monetization model.

The first thing you should realize is that Google as a search engine and also a business. They are in the business of provide their advertisers with quality sites to advertise on, and they also want to provide relevant search results when certain items are being searched for.

Therefore they want to provide their search engines users and advertisers with top-notch and relevant results, and the way they do this is by ranking the best sites according to their alogrithms for ranking websites. If you keep this all-important principle in mind when building sites, you will do well for rankings by giving Google and the other search engines what it wants, and needs; good quality content.

Step 1 is to pick a niche that would be good for AdSense monetization and this is no different from picking any other type of niche. Find a niche where people are spending money and provide relevant good content on your sites. However; with AdSense sites you need to also consider if the niche is an "AdSense-friendly niche", meaning that this particular target audience is prone to clicking on advertisements. Some niches are not conducive to click-happy site visitors.

Step 2 is to provide good quality content on your sites and make sure it is unique content. I have well over a dozen AdSense sites and the ones that get the highest daily impressions are the ones with unique content on them. So make sure you publish unique content on these sites targeting keywords relevant to your site topic and theme.

Step 3 is to increase your traffic so you have enough visitors coming to the site via organic searches. The reason you want a good amount of traffic prior to putting AdSense ad units on your site is to enable you to have enough of a basis for testing your ad placements. Without a decent amount of incoming traffic, you cannot test new ad placements properly.

Step 4 is to test and tweak your AdSense ad placement and colors to see what arrangement results in the highest CTR (Click Through Rates). Testing and tweaking your color and placements takes time but is well worth the effort because a few simple changes can easily double or triple your AdSense income.

Step 5 is to start doing some link building by using a link building service or by obtaining links manually. Link building is a bit of an art form and isn't just a matter of getting as many links as you can to your sites. There are certain ways to do link building that won't hurt your sites, but link building should be done after your sites have aged a little bit.

Google AdSense - How Much Money Can You Earn With AdSense?

One of the most effective, easiest & lucrative ways to earn loads of money online is provided by Google's AdSense program.

Whilst there are thousands of ways to skin the AdSense cat, the white-hat, good original content approach is the one that is used by many AdSense publishers to great effect.

However if you're thinking of embarking on a black-hat, get-rich-quick scheme, then you're so far behind the old successful AdSense publishers so it's advisable not to go that route if you want a long term AdSense earning plan.

So your plan should include posting good, compelling content & publishing relevant AdSense ads.

Back to the question of How Much Can You Earn From AdSense

Well according to a recent poll most AdSense publishers make less than $10 a month whilst the second highest amount of AdSense earners make up to $500 a month.

However there is a significant amount of AdSense publishers who earn more than $10,000 a month from Google's magic money making program.

What this means is that us non-guru AdSense publishers should get a lot of encouragement from the latter group which shows that earning $10,000 a month from AdSense can be a reality.

So whilst this may be true, to make this kind of money you need to carry out a self assessment to see whether you are the type of person who can achieve this earning potential by asking yourself the following questions;

  • How much do you want to make from AdSense?
  • How hard are you willing to work to achieve this?
  • How much time are you willing to spend working the Google AdSense program?

You can see what the above questions are getting at and if you think you have what it will take, then you shouldn't waste time - get your AdSense earning program into action & with the required drive & commitment you may just be earning a more than decent income very soon.

Sunday, November 2, 2008

Show Adsense To Search Visitors Only - On Blogger

Want to make money online with Google Adsense? If so, you better make sure you don’t get smart priced! One of my most successful posts covers how to avoid smart pricing by only serving Adsense to search engine visitors. That post was written for the WordPress platform. In this post, I outline how to do the same on Blogger blogs (although there are severe limitations).

Why Only Show Adsense To Search Visitors?

First, why are we doing this? The main reason for showing Adsense to search visitors only, is to try to avoid smart pricing. I won’t go over smart pricing again (go read the above post in detail), but here’s the brief summary:

Smart Pricing is a penalty Google applies to Adsense accounts that don’t convert well for the advertiser and results in you earning only about 10% of what you’d normally earn per click. Search engine visitors provide targeted traffic for the advertiser, which converts well (no problem). Regular readers and social networks visitors provide untargeted traffic, which doesn’t covert well, increasing your chances of being smart priced (problem).

After reading Grizzly’s recent post on making money online anonymously, I learnt that it’s even more complicated than that. Grizzly, who’s a master of making money online, reveals that when he writes a post his CPC (Cost Per Click) drops for a couple of days:

Whenever I post I get a surge of traffic - the surge is un-targeted (my readers) and my CPC drops for several days until readers tail off. As long as my ad impressions stay above the 3000 barrier my CPC doesn’t drop more than 10 cents a click. If my ad impressions fall below the 3000 barrier I see a 30 cent drop in earnings per click.

Grizzly also says that his CPC dropped when he received a surge of traffic from a forum. It follows that the same would happen when you receive a surge of traffic from the social networks (ie Digg, StumbleUpon, etc).

It may be that this phenomenon is separate to smart pricing, or it may be that it’s actually a part of smart pricing and that smart pricing is far more complex than anyone has guessed.

Either way, showing Adsense to search engine visitors only should ensure that Adsense units are only served to targeted traffic, which should protect your CPC and help you make more money.

Serving Adsense Only To Search Visitors on Blogger

I’ve already covered how to display Adsense units only to search visitors for WordPress and I actively use the method on this blog. However, I also have a few Blogger blogs (and Grizzley’s site is on Blogger), so I started wondering how to show Adsense only to search traffic on Blogger.

With WordPress it’s easy. You can use PHP on the server side to detect where the visitor came from, then decide whether to include the Adsense code. If they came from a search engine, the Adsense code is added to the HTML sent to the browser. If they came from somewhere else, then it’s not.

However, with Blogger, it’s not possible to detect where the user came from on the server side. The only option is to use JavaScript, on the client side, to a) detect where the user came from and b) show the Adsense code or not.

Part A - Detecting Search Engine Visitors

Detecting search engine visitors is relatively easy. We can use JavaScript’s document.referrer to work out where the user came from. Converting the code I used for the PHP in JavaScript, we can do something like:

view plaincopy to clipboardprint?

Note: In the document.cookie line, you must change “.scratch99.com” to your own domain!

This code detects whether the user arrived from one of a number of search engines and, if so, sets a variable called ‘sevisitor’ to true. It also creates a cookie, so these visitors can be identified if they subsequently navigate to another page (they will no longer appear to have come from a search engine).

We’ll use the variable or cookie later to decide whether we’re going to display Adsense.

So where does this code go? We only need this code once on the page, regardless of how many Adsense units we show, so we’ll put it at the top. The bad news is that it doesn’t work if you try to add it via a Blogger gadget, so we’ll have to add it to the template itself, as follows:

  • In Blogger, go to Layout, then choose Edit HTML
  • Make a backup of your template by clicking Download Full Template
  • Click Expand Widget Templates
  • Search for <data:blog.pagetitle/> (near the top somewhere)
  • Place the code above on the line immediately below this.
  • Save the template

Your blog should now be setting the variable and the cookie.

Part B - Showing Adsense To Search Visitors

Next we need to detect whether the variable and cookie are set and, if so, show the Adsense unit. To check whether they’re set, we’re going to use the following code:

view plaincopy to clipboardprint?
  1. var results = document.cookie.match ( '(^|;) ?sevisitor=([^;]*)(;|$)' );
  2. if (sevisitor == true || results[2] == 1) {

Put this together with your Adsense code and it should look something like this:

view plaincopy to clipboardprint?

You’ll have to replace the xxxx’s with the appropriate numbers from your Adsense code and you’ll have to change any other details (such as ad width and height if you’re not using a large rectangle).

There’s no need to replace special characters with HTML entities, as mentioned in my post on showing Adsense within the post body. In fact, that won’t work in this case.

What this script does is first check whether the variable or the cookie is set and if so, builds a string containing the Adsense code, then writes it. We have to build a string then write it, because there’s an external script called by the Adsense code. If there wasn’t an external script called, we could just strip the