LJ Longtail SEO

LJ Longtail SEO is a tool that detects search engine visits and uses this information to display a list of links based on second page search results.

The results in the database are aged off based on customizable settings so that once your longtail keywords have been boosted they will fall off the list and give way for other searches.

Admin interface has an optional keyword report that can be turned on via an option (On a large blog it is possible that there could be a performance hit on the admin page when using this option. Please note this will not slow down the blog side, just the admin page.). The keyword report will show the Top 100 keywords ordered by popularity and also showing the number of times the keyword has occurred.

As of Version 1.5 the plugin you can now add keywords to an Ignore list. This means if you don’t want a certain keyword registering as a referred search term you can simply put the phrase into the Ignored Keywords list and it will no longer register.

A widget will display a list of the popular searches that have come from search engine result pages beyond the first and provide a link on your sidebar back to the pages found.

Using this method can help to increase traffic to a blog via bring more importance to the Longtail keywords that can be used to find a site.

The original idea for this plugin was taken from SEO Booster Lite and Second Page Poaching – Advanced White Hat SEO. I used the other plugin for a short period of time and didn’t like a few of the restrictions. Therefore I decided to make my own, there will be no Pro version or paid version. The version I release here is in production on my main blog. Any updates I make there will end up here including bugfixes.

This plugin currently only registers search results from Google, Bing, Yahoo, and Ask. It is compatible with both of Googles current referrer information meaning you should always have accurate SERP positioning results.

Available from the WordPress Plugin Gallery

51 Responses to LJ Longtail SEO

  1. Roger says:

    Hey – thanks for such a cool plugin, it’s a really neat idea. One little request though – could you provide some hints or a method to style the results, and maybe even an option to display the widget only to admins? Thanks again, Roger

  2. Jon Smith says:

    What kind of styling would you like? The widget should conform to whatever the theme specifies.

    With regards to showing the widget only to admin users, it kind of defeats the whole point of the plugin. The plugin is designed so that your second page and further search results get more attention. You could just not have the plugin added to your sidebar and easily see the results still in the admin interface.



  3. anton says:

    Is it possible to place it after the post rather than on a widget on the sidebar?? can it be placed manually?

  4. Jon Smith says:

    The searches listed are sitewide. Therefore there would be no point in having it listed after the post (you could have a theme that provides sidebar support below the post to show them there?).

    Having said that, the relevant information is stored in the database with regards to individual posts and the search terms that found them.

    I may consider this to be added as a feature in a future release.



  5. Jon Smith says:

    As an addition to that, I can create a function so you may place the output anywhere in your theme.

  6. Ricardo says:


    Is this plugin compatible with WordPress 2.6.1?



  7. Roger says:

    @Jon Smith
    My apologies – I was able to do all the styling I wanted by adding various “#lj-longtail-seo {}” declarations to the main stylesheet. And yes, I see what you mean about not wanting to hide the widget. Thanks again for a great plugin.
    Cheers, Roger

  8. Jon Smith says:

    In theory it should be. I don’t have an installation that old to try it on. It would be great if you could try it for me.



  9. derek says:

    I get this error once installed and cannot make it work — any ideas anyone ?

    Fatal error: Call to undefined function register_sidebar_widget() in /home/garagewi/public_html/wp-content/plugins/lj-longtail-seo/lj-longtail-seo.php on line 31

  10. Jon Smith says:

    2.8 is currently the only way forward. The issue with register_sidebar_widget will stop the plugin from being used below this version.

    Please upgrade your wordpress installations, in the mean time I will look into the backward compatibility issues and hopefully get it working for version below 2.8.

  11. Jon Smith says:

    A new release has just been sent to WordPress.org, Version 1.2 has backwards compatibility to WP2.5. This will fix the register_sidebar_widget issue.



  12. Just a quick tip about a bug. In the query list, international characters such as ø, å and æ doesn’t show.

  13. Olaf says:

    … and characters such as ä, ü and ö that would be great.

  14. Jon Smith says:

    @Thor Fredrik Eie

    Thanks for the feedback. I am working on an update that will include international characters.



  15. VVOR says:

    tnx, I will give it a try!
    Looks like a good plugin !

  16. Great plugin! Thanks.

    It would be useful if there was a way to delete specific keywords from appearing. I have a dog site and i’m getting some inappropriate (adult themed, yet dog related- we’ll leave it at that) results that i don’t want on my site.

  17. Jon Smith says:

    @The English Bulldog Guy
    I have just released Version 1.5 to the WordPress.org plugin gallery. This version has an option to ignore keywords and to retrospectively remove keywords from the database.

    I also noted on your site that the Widget did not conform to your theme properly. I have hopefully fixed this as well.



  18. @Jon Smith
    wow just saw the update! thanks! talk about quick service.

    also i installed this on another site of mine and i’m getting very long alphanumeric codes in the results all starting with 2 underscores. just non-technically guessing here but it looks like it’s similar to the post ids from feedburner in google reader.

  19. Jon Smith says:

    @The English Bulldog Guy
    Would it be possible to get an export of the LJLongtailSEO table from the database of the other site so that i can see if i need to adjust anything for the plugin. If so you can email it to smithj@thelazysysadmin.net that would be great.



  20. nice plugin, ihave to try in my blog, its very easy and user friendly
    thanks for share

  21. Patric says:

    Amazing plugin, thank you for your hard work. One of my websites in running a highly configured wordpress template that makes utilizing sidebar widgets very difficult. Is there a way to call this plugin with php and avoid the widget installation?

    I was thinking something along the lines of a php include() would be best, but may be able to use something else.

    Thanks again, I have used this plugin and similar ones on other wp blogs with great success. These longtails are to often overlooked, but are great for increasing numbers!

  22. Jon Smith says:

    Version 1.6 now has the ability to call a function to display the information without needing the widget.

    Thanks for the feedback,


  23. Hi,
    Uploaded the plug-in but when i acticvate i get ‘fatal error’ message? Any hints- I have the latest WP version working.
    Many thanks

  24. Jon Smith says:

    @Andrew Porter
    Firstly is the fatal error still occurring? If so to reactivate your blog please delete or rename the lj-longtail-seo folder inside wp-content/plugins directory.

    Can you provide a copy of the error message when you activated.



  25. Jon Smith says:

    @Andrew Porter
    I have just installed a fresh clean version of 2.8.4 and was able to activate the plugin successfully.

    Are you on a hosted plan? Does the database user have permission to create a new table in the database?



  26. Romeo says:

    Hi JON,

    first of all thanks a lot for the Plugin. Its wonderfull and its FREE!!!

    I have the following “problem”.
    At my page in Plugin Menu at the section (Top 10 Search Queries) are shown the last 10 queris.. but at the section (Links that will be shown in widget) ther’s nothing 🙁 and i can’t display the widget coz its a blank..
    Is this normal? Should i wait for links to generate or what? 🙂

    Thx in advance


  27. Jon Smith says:

    You will need to wait for the plugin to register search results.

    If you leave the plugin enabled but dont have the widget in your sidebar it will start collecting the information it requires.

    Give it a couple of days.



  28. SEO Kerpen says:

    This is a really, really wonderful plugin!

    But i noticed two things:
    – Sometimes there are 2 or 3 links for the same page. This is senseless, because a rule in SEO says “first anchortext counts”. So I would prefer to keep just one of them. The others are irrelevant to Google.
    – My Blog is in German, i’m not sure if you’re using stoppwords, but if: is it possible to set a path in the configuration panel ? And if not: it could result in slightly better results ;o)

    [LJ Longtail SEO Admin]
    “Configure your stoppwords file : input=stoppwords_de.php”

    return array(‘and’,’or’,’but’, …);

    return array(‘und’,’oder’,’aber’, …);

    I really like to help you with that. Just drop me a line and attach the latest dev.

  29. Romeo says:

    Hi Jon,
    sorry for bothering you again but i have a question..

    The plugin is working about 2 weeks and it collects all. The Keywords and the Top 10 last queries. At Links that will be shown in the widget there’s a problem. THe last 2 days shows me there only 1 link…. today it shows me 1 link too, but different from that in the past days.. It took the old one away… but is still 1 link showing there..
    Is this normal too?

  30. Jon Smith says:

    No this isn’t normal. There may be another plugin interacting with mine. Would you be able to email me an export of the ljlongtailseo table from your database so I can have a look? smithj@thelazysysadmin.net



  31. Leo says:


    Excuse me my bad english, but I how I can do to mark a specific word to be ignored ?

  32. Jon Smith says:

    Go into the Admin Screen from LJ Longtail SEO, then in the Settings section there is an ignored words list. This list is to be comma separated. Any words that appear on this list are not registered for search. For example if

    Ignored Words = “cat, somethingelse”

    Then the search term “the cat sat on the mat” would be ignored.

    Hope that helps.


  33. Leo says:

    @Jon Smith
    I dont believe, I waste 20 minutes to find that place to write the ignored words !

    Thanks for use your time to help me.

  34. Tico says:

    I am trying to activate the plugin but it came up with this message:
    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /nfs/c04/h01/mnt/60279/domains/thejacoblog.com/html/wp-content/plugins/lj-longtail-seo/lj-longtail-seo.php on line 13

    using a shared host and I can manually create a db through the host admin interface. The site is thejacoblog.com

  35. Jon Smith says:

    It appears your shared host is running PHP version 4. LJ Longtail SEO is currently only supported with PHP version 5.



  36. Alberto says:

    but the plugin works without adding in the sidebar?
    because I want to first collect a list of keywords and then show in sidebar ….


  37. Jon Smith says:

    Yes the plugin will collect data without the sidebar widget being added.

  38. Pingback: Long Tail Keyword SEO and Use it on Wordpress

  39. Pingback: Die 10 besten SEO Plugins für WordPress #2

  40. Gunawan says:

    Hi! What is the benefit using this plugin, if compared with seo booster lite?

  41. Jon Smith says:

    Put simply mine works the way I want it to work. I found SEO Booster Lite to be extremely buggy, it also made bad choices about the way SERP results were decided upon.



  42. Gunawan says:

    FYI, this plugin work for me with WordPress 2.9.2. I hope you will make update for this plugin to make this plugin more powerful.

    Anyway, how to show link more than 10 in my sidebar? I use theme function, not the widget.

    Thank you, Sir.

  43. Marie says:

    Thank you for this plugin !

    But I can’t figure this out : what is “Age Weighting” inside the dashboard ? I was wishing it was the serps position for that keyword, but i really have no idea what it is ! lol

    thank you

  44. Alex says:

    Hello there, one question..
    I have in the “Top 10 Search Queries” 10 results.
    But shown in the widget only one result.
    Why is that, isn’t there enough data? But why since it already collected 10 results..

  45. admin says:

    The only this I can assume from that is that one result is the only one coming from the second page of results or further back. The other 9 that are registered and showing in the admin interface would have come from page 1 results, this is intended behaviour.

    Give it time and the rest of the list will populate.

  46. hans says:

    there are just search results from Google.com, or? it would be great when there are also results for google.de/.at/.ch

  47. Jon Smith says:

    The plugin will automatically pick up on google.* bing.* and yahoo.* the only problem is if those locales use a different query string for the search engine.



  48. Pingback: Einige SEO Plugins für Wordpress | Backlink und SEO

  49. Ivan says:

    Hi, I just activated the plugin on a 3.0.5 install of wp and used the template tag you provided to display the results after the posts content. However, I was wondering how many terms will it display in a week or so, because I’d like to only display 5 or 10 terms, and not all of those in the admin panel. Is there a way to control the number of terms displayed using the template tag?

  50. Ben says:

    I have a problem with the query string being displayed as ????

    The site uses Arabic .. UTF8 .. is there a fix for this ?


  51. Ben says:

    I have fixed the issue by updating the ljlongtailseo table to UTF8_general

    Thanks .. it’s working now 😉

Leave a Reply

Your email address will not be published. Required fields are marked *