Search engine optimization professionals and marketing agencies sometimes use keyword ranking trackers to measure the performance of their work and track how their clients’ website rank on search engine result pages. At LNI Digital, we use variety of tools for SEO and keyword tracking tool is definitely one that’s used more than others.
One of the tools we use is ProRankTracker and it has been a reliable tool to report performance of keywords for our clients. It is also one of widely used tools within the SEO professionals community.
However, using a third party service can be quite expensive for marketing agencies managing many clients. Depending on size of clients and their websites, there can be 20 to 100 keywords associated with each client. Or maybe marketing agencies want to build keyword tracking capability within their existing dashboard or platform without having to depend on 3rd party tools. For those who want to build keyword tracking in-house, there is a Laravel package published by us that can be integrated into a new or existing Laravel application.
You can head over to the project’s github page to download the source code or simply type following to install from Packagist:
composer require seongbae/keywordrank
This is the initial release of the package and our plan is to continue making updates and improvements to make it better in future.
The package relies on a third party proxy server – this is highly recommended because if you hit the Google search from same IP address many times, Google can possibly block your IP. Depending on number of keywords, you may want to purchase at a minimum 5 IP proxy server.
The package has been fully tested with proxy service from seo-proxies.com but we plan to make the package work with other proxy service providers.
Once you have the package installed, and proxy server configured, you can quickly test by running following artisan command:
php artisan fetch:rank www.lnidigital.com 'Ashburn Digital Marketing'
It will get the position of keyword ‘Ashburn Digital Marketing’ from Google using proxy server and display the position on screen:
Below is an example of how this package can be used in code:
$fetcher = new KeywordRankFetcher(Config::get('keywordrank')); $website = $fetcher->addWebsite('www.lnidigital', 'LNI Digital Marketing', 1); // last parameter is user id $keyword = $fetcher->addKeyword($website->id, 'Ashburn Digital Marketing', 1); // last parameter is user id // retrieving keyword position $fetcher = new KeywordRankFetcher(Config::get('keywordrank')); $position = $fetcher->getPosition('www.lnidigital.com','Ashburn Digital Marketing',true);
As mentioned above, marketing agencies can build an in-house Google keyword tracking capability using this package should there be any need to do so if they wish not to use a 3rd party service. Or even large organizations wanting to build an in-house capability for tracking keyword positions and rankings can utilize this package.
Please let us know if you have any questions!