Alexa retired all the traffic widgets effective from 26 Oct 2016. Hence the below widget codes will not work, this article is left only for reference purpose.
Alexa traffic rank is one of the reputable number for all webmasters for showcasing to others. Though there are differences of opinions about alexa traffic ranking mechanism, it is believed that the rank indicates the overall value of a site. In this article, let us check out how to add alexa traffic widget to your site to show the traffic rank and number of links.
Alexa Traffic Widgets
Alexa offers two types of free widgets for websites:
- Site Info – this is a widget with global traffic rank and links data with or without date.
- Traffic Rank – this is simple traffic rank widget with or without date.
Here we have three styles for two types of widgets totalling to six different widgets.
Site Info Widget 1
The first style of site info alexa widget will show rank and links. Code for the widget is given below and you can replace the domain “webnots.com” with your own domain name.
<a href="https://www.alexa.com/siteinfo/webnots.com">
<script type="text/javascript" src="https://xslt.alexa.com/site_stats/js/s/a?url=webnots.com">
</script>
</a>
Site Info Widget 2
Here is the code for second widget:
<a href="https://www.alexa.com/siteinfo/webnots.com">
<script type="text/javascript" src="https://xslt.alexa.com/site_stats/js/s/b?url=webnots.com">
</script>
</a>
Site Info Widget 3
Code for third widget is given below:
<a href="https://www.alexa.com/siteinfo/webnots.com">
<script type="text/javascript" src="https://xslt.alexa.com/site_stats/js/s/c?url=webnots.com">
</script>
</a>
Traffic Rank Widget 1
The traffic rank widget will only show the traffic rank and date. Code for traffic rank widget is given below:
<a href="https://www.alexa.com/siteinfo/webnots.com">
<script type="text/javascript" src="https://xslt.alexa.com/site_stats/js/t/b?url=webnots.com">
</script>
</a>
Traffic Rank Widget 2
Here is the code for style 2 of traffic rank widget:
<a href="https://www.alexa.com/siteinfo/webnots.com">
<script type="text/javascript" src="https://xslt.alexa.com/site_stats/js/t/c?url=webnots.com">
</script>
</a>
Traffic Rank Widget 3
And here is the code for third style:
<a href="https://www.alexa.com/siteinfo/webnots.com">
<script type="text/javascript" src="https://xslt.alexa.com/site_stats/js/t/a?url=webnots.com">
</script>
</a>
Note:
- Ensure to replace the domain name with your domain name in all codes.
- Only global traffic rank is shown in all the widgets.






None of these code works on my website. Could you pls tell me what the issue ?
The start of the article clearly mention that they have stopped the widget service long time back. There are no options from Alexa now, though you can try some other traffic widgets.
They have stop the services, what a sad idea to use now
It seems alexa no longer support rank widget: https://support.alexa.com/hc/en-us/articles/201514680-Alexa-widgets-have-been-retired-October-2016
It’s sad to know they have ended the service for the widget. I was trying to use it on my blog
It has been 2 days i have pasted alexa code in my website but still alexa rank is not showing.Please help
Sorry! Just saw the disclaimer btw thanks.
Any of the above code is not working.
not working code