How to Display Alexa Traffic Rank Statistics on Your Website

By Sté Kerwer to Traffic Generation

There are many reason why you may want to integrate your Alexa rankings into your website (For example, to show off your amazing Alexa Traffic Rank), and there are several things from Alexa.com that you can integrate on your pages: from a simple widget to a full graph.

alexa traffic rank

What is Alexa.com

Alexa.com is analyzing the web usage of millions of people who are using Alexa Toolbar as well as data obtained from a wide variety of traffic data sources. The data is computed by Alexa to finally get the traffic rankings shown on their website.

Being online since a very long time, Alexa.com has been able to develop there system to store a lot of information about almost every website on the internet. Their information database includes:

  • Traffic Stats (Traffic Rank, Reach, Pageviews, Pageviews/User, Time on Site, Search %)
  • Search Analytics (Search Traffic, Top Queries from Search Traffic, Search Traffic on the Rise and Decline, Search Advertising Metrics Highlights, High Impact Search Queries, Search Engine Marketing Activity and Opportunities)
  • Audience Demographics (Age, Gender, Education, Has Children, Browsing Location, Visitors by Country)
  • Contact Info
  • Reviews
  • Related Links (Sites relevant to website visitors and their interests)
  • Clickstream (Which sites did users visit immediately preceding this website, Where do visitors go after leaving this website)

As you can see, Alexa is collecting a huge variety of data about every single website. You can easily check the data regarding a website by visiting http://www.alexa.com and simply input the website url in the searchbox.

Alexa.com Data Widget Integration

Now that you know the kind of data Alexa is collecting about your website, you may want to easily integrate this data on your website.

The easiest thing to do is integrating one of Alexa Widgets to show some data to your visitors. Simply visit the Alexa Widgets page and grab the code of the widget you want to use.

You have a choice between Alexa Site Stats Button and Alexa Traffic Rank Button. Here is an example:

The big advantage of using this kind of widget over doing an image yourself is the usage of Javascript which allows it to be dynamically updated by Alexa every day.

Alexa.com Graph Integration

Using Alexa Widgets can be interesting in some cases but the big negative point is that it’s just showing your rank on a given day, but it’s not showing how your website is doing over time. This is the reason why you may want to integrate a graph. It can be very useful if, for example, you want to show to your potential advertisers the kind of traffic you are receiving.

The code to display some Alexa Traffic Rank graphs is a little harder to find, this is why I’m sharing it with you today. The following pieces of code will display different statistics of your website usage according to Alexa in form of graphs / charts. Replace amazon.com with your domain name to use these.

<!--Daily Traffic Rank Trend-->
<script language="JavaScript" type="text/javascript" src="http://xsltcache.alexa.com/traffic_graph/js/g/b/6m?&amp;u=http%3A%2F%2Fwww.amazon.com+++++"></script>

<!--Daily Traffic Rank Trend-->
<img title="" alt="" src="http://traffic.alexa.com/graph?&amp;w=400&amp;h=220&amp;o=f&amp;c=1&amp;y=t&amp;b=ffffff&amp;r=6m&amp;u=amazon.com&amp;" />

<!--Daily Reach in Percent-->
<img title="" alt="" src="http://traffic.alexa.com/graph?&amp;w=400&amp;h=220&amp;o=f&amp;c=1&amp;y=r&amp;b=ffffff&amp;r=6m&amp;u=amazon.com&amp;" />

<!--Daily Pageviews in Percent-->
<img title="" alt="" src="http://traffic.alexa.com/graph?&amp;w=400&amp;h=220&amp;o=f&amp;c=1&amp;y=p&amp;b=ffffff&amp;r=6m&amp;u=amazon.com&amp;" />

Tip: You can replace r=6m (6 months) by r=3m (3 months), r=1m (1 month) or r=7d (7 days) to change the range of the graph.

Now you can display some nice traffic rank graphs on your website thanks to Alexa!

What do you think? Let me know in the comments below!