Posts Tagged ‘google’

Ad Injection plugin for WordPress

Monday, December 6th, 2010

Ad Injection is a free WordPress plugin that injects any kind of advert (e.g. Google AdSense, Amazon Associates, ClickBank, TradeDoubler, etc) into the existing content of your WordPress posts and pages. You can control the number of adverts based on the post length, and it can restrict who sees adverts by post age, visitor referrer and IP address. Adverts can be configured in the post (random, top, and bottom positions) or in any widget/sidebar area. There's support for A:B split testing / ad rotation.

ad injection plugin for wordpress 1 450

PayPal – The safer, easier way to pay online.


Download Ad Injection plugin for WordPress for free from this link. Or just search for Ad Injection from your WordPress install and WordPress will automatically install it for you.


Automatic advert injection

The ads can be injected into existing posts without requiring any modification of the post. The injection can be done randomly between paragraphs, and there is an option to always inject the first advert at a specified paragraph (e.g. the first or second). Randomly positioning the adverts helps to reduce 'ad blindness'. Two additional adverts can be defined for the top and bottom of the content. Widget adverts can be defined as well for your sidebars.

ad injection plugin for wordpress 3 450

Widget support

Widgets can be added to your sidebars, or other widget areas on any pages. The same ad display restrictions that you setup for your other ads will also apply to the widgets.

Ad rotation / split testing

You can define multiple adverts for the same ad space which are rotated according to the ratios you define. Works with random, top, bottom and sidget/sidebar ads.

Ad quantity by post length

The number of adverts can be set based on the length of the post. It is a good idea for longer posts to have more adverts than shorter posts for example. Adverts can also be turned off for very short posts.

ad injection plugin for wordpress 4 450

Ads on old posts only

Adverts can be restricted to posts that are more than a defined numbers of days old. This prevents your regular visitors from having to see your ads.

Category, tag and post type filters

You can configure the adverts to only appear on specific categories, tags, or post types, or block the adverts from specific categories, tags or post types.

Search engines only (dynamic feature)

You can specify that ads should only be shown to search engine visitors (or from any other referring websites) so that your regular visitors (who are unlikely to click your ads) get a better experience of your site. You can define which search engines or any other referring sites see your adverts. A visitor who enters the site by a search engine will see ads for the next hour.

Block ads from IP addresses (dynamic feature)

IP addresses of people who shouldn't see your ads can be defined. These could be the IP addresses of your friends, family, or even yourself.

ad injection plugin for wordpress 2 450

Not tied to any ad provider

The advert code can be copied and pasted directly from your ad provider (Google AdSense, adBrite, ClickBank, etc) which will help you to comply with any terms of service (TOS) that state their ad code may not be modified.

Flexible ad positioning

Easy positioning options are provided for left, right, center, float left, and float right. Extra spacing can be set above and below the ad. Or if that isn't flexible enough, you can write your own positioning code using HTML and CSS.

You can specify a specific paragraph for random ads to start from, or if you need per-post control of the random adverts you can insert tags into the post source to say where the adverts should start and end.

ad injection plugin for wordpress 5 450

Inject PHP and JavaScript

As the plugin will inject whatever content you like into the page you can write your own ad rotation or a/b split testing code for the ads you inject. PHP code can be automatically executed.

Full documentation is available on the WordPress Ad Injection page.

If you do get any errors please use the 'Report a bug or give feedback' link on the plugin to send me the error details.

Proof that Alexa rankings can be very inaccurate for small websites

Thursday, July 29th, 2010

Here is a comparison of the actual viewing figures for this site (as recorded in Google Analytics), against the values that Alexa reports.

Alexa vs Google Analytics page views

This is a fairly small blog, getting 600-800 page views per day. If you too have a website which is of a similar size you might be interested in just how wrong Alexa’s statistics can be. Here is Alexa’s estimate as to how the number of page views I’m getting has changed in the last three months (snapshots all taken on the 15th July).

alexa page views

Looks pretty amazing right? A 2420% increase in page views in three months. But all is not as it seems. Here are my actual page views from Google Analytics (same three month period). You can see the actual figures show a very gentle increase in page views.

google page views

Alexa operates by sampling data from the people who have installed its toolbar, or who have installed (or had installed for them!) some other piece of software which sends data back to Alexa.

The percentage of internet users who have Alexa software on their computers is small so the data is subject to anomalies, especially as the website gets smaller. A large website such as Facebook or MySpace probably gets ok results from Alexa as there will be thousands of people browsing these sitse who have the toolbar installed. But the smaller the site, the bigger the potential for the results reported by Alexa to be out of sync with the actual results.

Alexa vs Google Analytics page views per person

So why the huge reality vs Alexa distortion for my site? I’ll come to that later. Next let’s looks at another graph. This is how Alexa thinks my page views per person is doing.

alexa page views per user

Pretty impressive! The page views per person has gone from 1-2 all the way up to 30 pages viewed per user. If that were accurate it would mean that people really love reading what I write! But unfortunately my blog isn’t quite that engaging. Here are the real figures. Each of my visitors looks at about 1.3 pages. That figure has remained fairly flat over the last three months.

google page views per user

Alexa vs Google Analytics visitors per country

Here is my final set of figures. This is where Alexa thinks most of my visitors are coming from.

alexa percent traffic by country

You can see from their figures that they think most (74%) of my visitors are in Japan. It is vaguely plausible as I do have quite a few Japan related postings on this site. However it isn’t accurate. Here are the real figures.

google percent of traffic

You can see that only 1.4% of my visitors are in Japan. This largest percentage of viewers is actually from the UK (44%), but Alexa only believes that 4.5% of my viewers come from the UK.

So why is Alexa so badly wrong?

What is causing Alexa to be so badly out of sync from reality? I am pretty sure I’ve worked out the reason. I believe that the massive inaccuracies are the result of a single person. Me.

Not on purpose, I did it entirely accidentally. But it is interesting that one person could cause the perceived page views of a 600-800 page per day blog to jump 2420% in three months. It is also interesting that one single person could accidentally cause the Alexa traffic rank to jump from about 600,000 to 200,000 in such a short time. And it is impressive that one single person could cause Alexa to think that 74% of visitors are from Japan when in fact only 1.4% of them are. Also that I could cause the average page views per person to go from 1-2, all the way up to 30ish.

How did I (accidentally) cause Alexa’s figures to be so wrong?

There is one main cause of this massive misreporting of figures. I installed the Quirk SearchStatus extension for Firefox. This extension add some small items to your status bar at the bottom of the browser. They can show the Google PageRank for the web page you are currently on, and they can show the Alexa traffic rank for the website you are on.

But the extension doesn’t silently report the statistics. It actually affects the Alexa traffic rank statistics. As you are browsing where you go will now be recorded by Alexa.

In my case I spend a lot of time on my own blog. It is WordPress blog so I need to access it to put up new posts, edit posts, check posts, moderate comments, and install/configure new/updated plugins. In a typical day this could easily generate another 30-50 page views of my blog that are reported to Alexa.

It would seem that although all my page views are coming from the same IP address, they are still able to make Alexa think that my blog is seeing a huge surge in traffic.

The timing is right too. The time I installed the plugin matches the time I started seeing this huge surge in Alexa rankings. And that’s not all. A short while after installing the plugin I headed to Takamatsu in Japan and continued working on my blog from there.

The fact that I had moved from the UK to Japan caused caused Alexa to think that most of my visitors were now coming from Japan.

Almost all of this was caused by me accessing my WordPress blog in a normal way whilst having this Firefox extension installed.

What it shows is how inaccurate the numbers can be for small sites such as mine. The number of people whose browsers report statistics to Alexa is sufficiently small that a single person can seriously skew the data.

So look at Alexa’s statistics if you really want to. But remember that unless you are looking at the stats for a huge site, they may well be way off the mark.

Visualising the Google PageRank scale

Friday, April 9th, 2010

Google’s PageRank is a scale from 0-10 that shows how well connected web pages are. Web pages with higher PageRank values have more quality links pointing to them. It is not a linear scale, it is a logarithmic scale.

People estimates that the logarithm base is between 5 and 10. Because it is a logarithmic scale it can be quite hard to visualise.

I’m going to try to visualise PageRank with some graphs. In these graphs I’m making the assumption that the log base is 5. The first graph shows the values from 0-10 on a linear scale.

pagerank 1 to 10 on log base 5

You can see that when the logarithmic scale is converted into a linear scale the difference between most of the lower numbers completely disappears. That is why these things are presented on logarithmic scales! I’ve added a few websites onto the scale so you can see where they are.

As most websites aren’t in the 7-10 range I’ve produced another graph showing just the values 2-7. I’ve made the graph very tall so you can see the difference between the values better. Again I’ve added a few websites onto the graph so you can see what kind of websites get the upper PageRank values.

pagerank 2 to 7 on log base 5

The above two graphs are making the assumption that the base of our logarithm is 5. Would it make much of a difference if it was 10? Yes it would make a huge difference.

Here is a graph comparing what the PageRank linear values might be for a log base 10 graph vs a log base 5.

log base 5 vs log base 10

You can see that it is not practical to plot multiple logarithms on the same graph, so it would make a huge difference whether the logarithmic base was 5 or 10.

As for whether PageRank really matters – it probably counts for less than most people think. The toolbar PageRank of one of my sites recently went from 2, to 0, up to 3 and back down to 0 again. During these changes I noticed no change in traffic. The actual page contents and TrustRank probably counts for much more than PageRank on most web sites.

Are your website and blog earnings at risk?

Wednesday, August 20th, 2008

There are a lot of websites out there telling you how you can make money out of your website or blog. You may have decided to try some of these ideas to make some money out of your web presence. Perhaps you even rely on your web-generated money for a significant slice of your income. If you have then have you ever analysed how secure this income is?

Let’s look at a five such risk factors.

Relying on a single income stream

Like many sites out there you may use Google AdSense. It is quite likely that it is responsible for most / all of your web income. Just imagine if that income suddenly stopped!

Is this likely? Well, if you read the many AdSense forums out there it seems that there is certainly a chance of this happening to you. Many people wake up to find an email from Google in their inbox to tell them that their AdSense account has been terminated. The usual reasons for this include either click fraud (clicking on your own ads), or not obeying the AdSense terms and conditions.

Unfortunately a lot of people seem to be getting banned through no fault of their own. This usually seems to be as a result of their site being ‘click bombed’. In other words other people deliberately click on loads of the adverts in order to get the site banned.

This kind of account termination could happen with any kind of income programme that you use. I’m just using AdSense as an example as there are a lot of documented cases of people having their accounts banned.

To protect yourself from this you should use a variety of income generating programmes.

If you can you should construct your website in such a way that you can easily switch from one programme to another if you should become banned from one. This also has the advantage that if one programme proves to be a better earner than another, you can switch more of your site to the higher earning one.

Relying on one main traffic source

Another risk factor is related to where your traffic comes from. If most of your traffic comes from one source then you are at risk. As an example it wouldn’t surprise me if 80% of your traffic came from Google. Let’s imagine that next week they introduce a major search algorithm update which sends your site plummeting in the rankings. You could suddenly find that you have hardly any traffic!

Other risks include having your site identified as a spam site and being penalised in the rankings or even dropped.

Mitigating the risk involves looking at where your traffic comes from and working to get visitors from more sources. For instance getting links on related websites, or getting coverage in other search engines.

This particular risk can be very hard to reduce due to the dominance of Google. Your best defence could well be to keep in Google’s good books. Simply sake sure that your site complies with their webmaster guidelines and you should be ok.

Having just one website

All websites go through highs and lows. Sometimes there will be an obvious reason. Your Christmas related website is unlikely to do well in the Summer. Other times you may not be able to work out why your traffic goes up and down.

With only a single site you are susceptible to these kind of changes. In general if your traffic goes down then so does your earnings. If you have multiple sites then it more likely you will be sheltered from the peaks and troughs as when one site decreases in popularity another site may be rising.

You can think of it like having a balance portfolio of investments. You wouldn’t invest all your money on the stock market would you? If you were sensible you’d probably spread your money through a mixture of stocks, property, and cash accounts.

Having just one web host

Another kind of risk comes from using just one web host. Think for example what would happen if they went bust? All your sites could disappear in an instant. You may then find it quite hard to get your domains back. Even when you do you may find that you have lost all your search engine rankings, links and visitors.

It can happen – about 10 years ago I lost a domain of mine when my host went bust. It was very inconvenient.

To reduce the risk first be careful about who you trust to host your website and domain names. Don’t go for a company that looks in any way financially unstable.

The second more extreme risk reduction strategy is to use multiple web hosts. This is only really relevant if you have multiple sites. If you have two hosts then you can spread your sites between them. Of course you may now have double the chance of one of your hosts going bust, but at least you aren’t in a all or nothing situation like you were before.

Forgetting to renew your domains

Keep a careful record of which domains you own and when they need to be renewed. Hopefully your host will automatically renew them for you. If they do then make sure that they have your up to date credit / debit card details.

Good hosting companies will re-register the domain even if they don’t have the correct payment information from you. Not so good hosting companies will release expired domains back into the wild. This can be disastrous as someone else can then quite legitimately register your domain. They will then inherit all your traffic, links and search engine placements. There could be no way for you to get it back.


You may notice a theme throughout all my risks. They are mostly about removing the single point of failure to spread the risk. Whenever you rely on just one factor you are at risk of losing everything if that factor should change.

Stay safe, and spread that risk around!