Overview:
This plugin will let you easily display your Alexa traffic button or graph. 
Features:
- Generate perfectly valid XHTML code
- Plugin comes with a Code Wizard to generate the code you need to add to your website
- Can be used to generate graphs for any website, not just your blog
- Monetize your blog by adding your Amazon ID!
Requirements:
- WordPress 1.5 or above
Installing
- Download The Alexa Traffic Rank Button Generator Plugin.
- Extract the contents of
ald-alexa-button.ziptowp-content/plugins/folder. You should get a folder calledald-alexa-button. - Activate the Plugin in WP-Admin.
- Goto Options > Alexa Button. If you are upgrading from an earlier version, it is recommended that you click Default Options so as to clean up any old options.
- Use the Generator on that page to generate the code to add to your template file. Alternatively add
<?php if (function_exists('echo_alexabutton')) echo_alexabutton(); ?>to use default options. Default is a Small Traffic Graph of three months.
The Function:
echo_alexabutton()
The following options can be set through Options > Alexa Button:
- Website URL: Enter the web address whose traffic rank you want to display. If a blank string is passed to the function, then this value is used. By default your blog address is taken.
- Your Amazon ID: If you have an Amazon ID, you can enter this here. The ID will be embedded in the code.
The function takes the following parameters:
$wpURL: The URL whose traffic graph / button you want to display. If blank, Website URL from the Options page is used.$AmazonID: The Amazon ID you want to pass. If blank the Amazon ID from the Options page is used.$UnitType: Entertfor traffic button,sfor stat andgfor graph.$subUnitType:a,b,cfor the different types. Go play around see which you want best.$dateRange: Used only for the traffic graph. To be entered as e.g. 3m, 30d, 1y for 3 months, 30 days and 1 year respectively.
Customizing:
Add <?php if (function_exists('echo_alexabutton')) echo_alexabutton(); ?> where you want to display the chat widget.
Note: Using if (function_exists('echo_alexabutton')) in the above code ensures that your blog won’t break even if you deactivate the plugin.
I have also made available the function ald_alexabutton() which has a return value instead of a echo. You can use it as follows:
$str = ald_alexabutton();
echo $str;
Lastly, you can reset to default options by clicking on Default Options. I recommend you do this once during upgrade if you are upgrading from any older version as it will clean up old variables which the plugin used.
ChangeLog:
- 1.0 – Release
To Do:
- WordPress Widget Support
- Save different sets of code for ready use
Downloads
Current Version is 1.0
Support the Development
I’ve spent a good deal of time and money developing and maintaining the plugin. If you like the plugin and find it useful and would like to donate something for my work please do click the Paypal Donate button below. The payment is secure. I haven’t filled in any amount. Feel free to donate what you please. Any amount is welcome. Thank you
License
All files and their contents are licensed under the GNU General Public License (GPL).
Questions or Bugs
Known Bug
Wordpress 1.5 (Strayhorn) has a bug which prevents multiple plugins from creating administration interfaces at the same time. If you have another plugin which creates an administration panel under Options, temporarily disable it, configure meebo me Plugin, then re-enable the other plugin. Once configured, meebo me Plugin will operate normally.
If you have any questions or would like to report any bugs then please use the support forum.
Home



Excellent work! I used to have a link to Alexa, but now I can display the info on my site thanks to you. Love it!
I have it at http://www.aleeya.net/about/stats/
Thanks Erica.
Glad to know it is helpful to you
Erica: You might want to fix your custom Page template. You have a space in the
<phpwhich is making it show up in the HTML.Er, “<?php”.
Oh I give up. *sigh* I suck at the Internet.
Guess it is getting filtered out Viper.
<?php