alexa verification for wordpress websites

Alexa is website ranking service website which will give you the ranking of website. We have wordpress plugin for alexa verification for wordpress websites. But there is an issue with this site. This site is collecting data from all over the world. Means your site is popular in some country then your site will never come in top for all the world.

alexa verification for wordpress websites

For coming the in Alexa rank you need to register the your website with Alexa. You should verify your website with Alexa code.

For Alexa verification of website follow my steps:

1. Open or visit the Alexa website
2. Then click menu Edit Site.  Then we wil be brought to user login page from Alexa,  if you do not have account then please register first.
3. Next, see your email and open your member confirmation email from alexa.
4. After confirmation, re-click menu Edit site. Enter your website’s or your blog’s data into here.
5. Then, do your blog verification.
This verification can be done in three ways, just choose one:

First, by using Meta Tag. Copy paste this meta tag between tag with in your blog template.Second, by upload into your blog’s root. Make a file format .txt using notepad, copy paste meta tag into that file and make the name as instruction from alexa. Then upload the file into your blog’s root into the hosting that you used.

Third, by confirming via email.

* After you choose and use one of the verifications above, then click verification button.

alexa verification for wordpress websites
alexa verification for wordpress websites

For Alexa Ranking there is very nice wordpress plugin. You should use this alexa wordpress plugin in your website for best ranking.

You can download this plugin from following URL:

Alexa Rank Widget

https://wordpress.org/plugins/alexa-rank-widget/

Using this wordpress plugin your blog ranking will increase.

get alexa rank using php code

There is nice wordpress plugin which will help you to add alexa rank in your website. In this article, we briefly explained to get alexa rank using php code

get alexa rank using php code

if you want to check the your website ranking as per alexa so you can use the following code in your php projects. There is very nice wordpress plugin which will help you to add the alexa rank in wordpress site. In this article I given PHP code for adding the alexa rank block on any website.

Alexa Rank Widget

http://data.alexa.com/data?cli=10&dat=s&url=wordpressapi

“http://data.alexa.com/data” this file will return the xml format output. Using the XML output or reading xml file we can easily fetch the our or any website ranking.

Use the following function for getting the alexa website ranking.

<?php
function AlexaRank( $url )
{
preg_match( '#<POPULARITY URL="(.*?)" TEXT="([0-9]+){1,}"/>#si', file_get_contents('http://data.alexa.com/data?cli=10&dat=s&url=' . $url), $p );
return ( $p[2] ) ? number_format( intval($p[2]) ):0;
}

echo "purabtech.in/files/ Rank as per alexa.com: ";
echo AlexaRank('purabtech.in/files/');

?>

if you want to check the multiple website ranking in one shot than use the following PHP code.

<?php
$domains = array( 'google.com', 'ask.com', 'yahoo.com', 'bing.com' );

foreach ( $domains as $domain )
echo $domain, ' - ', AlexaRank( $domain ), '<br />', PHP_EOL;

?>
get alexa rank using php code
get alexa rank using php code

Have fun!