SEO Gadget Documentation
Prerequisites
Basic prerequisite: Enable Referrer Tracking? has to be set to 'Yes'.
( CP Home > Admin > System Preferences > Referrer Preferences )
Basic prerequisite to display {eesearch_cloud}: Enable Search Term Logging? has to be set to 'Yes'.
( CP Home › Admin › System Preferences › Search Term Log Configuration )
Installation
Unzip the archive and copy the file pi.seo_gadget.php into the plugins-directory inside your Expression Engine system-directory.
Usage:
Note: You might want to ensure that the page is displayed in utf-8 to account for special chars in search phrases.
Main Tag:
{exp:seo_gadget}{/exp:seo_gadget}
Parameters:
{exp:seo_gadget engines="5" keywords="50" phrases="20"}{/exp:seo_gadget}
engines="X"
optional, shows only top X search engines
keywords="X"
optional, shows only top X keywords
phrases="X"
optional, shows only top X search phrases
latest="X"
optional, shows only latest X search phrases
eesearch="X"
optional, shows only latest X search phrases from EE's search module
referrer="X"
optional, shows only top X referrers
landing="X"
optional, shows only top X landing pages
All the above parameters except 'site' default to 100 if not set otherwise.
site="X"
optional, when using the Multiple Site Manager you can specify a site ID
Variables:
{engines}
lists search engines by number of referrers
{phrases}
lists search phrases by number of occurances
onMouseOver will display search engine and position in results
{keywords}
lists keywords by number of occurances
{engines_cloud}
shows search engines in as cloud
{phrases_cloud}
shows search phrases as cloud
onMouseOver will display search engine and position in results
{keywords_cloud}
shows keywords as cloud
{latest}
shows the latest search hits with details
{eesearch_cloud}
shows search phrases from the EE search module as cloud
{top_referrer}
lists referrer by number of referrals
{top_landing}
lists landing pages by number of hits
Example:
{exp:seo_gadget engines="10" phrases="30" keywords="50" latest="10" eesearch="20" referrer="5" landing="10"}
<fieldset><legend>Top 10 search engines</legend>{engines}</fieldset>
<fieldset><legend>Top 30 search phrases</legend>{phrases_cloud}</fieldset>
<fieldset><legend>Top 50 keywords</legend>{keywords_cloud}</fieldset>
<fieldset><legend>Latest 10 search hits</legend>{latest}</fieldset>
<fieldset><legend>Top 20 site search phrases </legend>{eesearch_cloud}</fieldset>
<fieldset><legend>Top 5 referrers </legend>{top_referrer}</fieldset>
<fieldset><legend>Top 10 landing pages </legend>{top_landing}</fieldset>
{/exp:seo_gadget}