Available Tags

Whole Site:
This month:
  • All hits this month
    This can be called on any page using <%Plugins::ExtraStats::AllHitsMonth%>
  • Unique* hits this month
    This can be called on any page using <%Plugins::ExtraStats::AllUniquesMonth%>
    Both of these can be shown for a different month by adding the month and (optionally) the year. e.g. <%Plugins::ExtraStats::AllUniquesMonth('03','2002')%> (Similarly for Category and Link specific stats below.)
    Today:
  • All hits today
    This can be called on any page using <%Plugins::ExtraStats::AllHitsToday%>
  • Unique hits today
    This can be called on any page using <%Plugins::ExtraStats::AllUniquesToday%>
    For any other day add the date e.g. <%Plugins::ExtraStats::AllHitsToday('2003-05-22')%> (Similarly for Category and Link specific stats below.)

    Category Specific:
    These stats are for the links in that category (i.e. the total hits for all links in that category).
    This month:
  • All link hits this month for a specific category with tag <%ID%>
    This can be called on any page using <%Plugins::ExtraStats::CatHitsMonth($ID)%>
  • Unique* link hits this month for a specific category with tag <%ID%>
    This can be called on any page using <%Plugins::ExtraStats::CatUniquesMonth($ID)%>
    Today:
  • All link hits today for a specific category with tag <%ID%>
    This can be called on any page using <%Plugins::ExtraStats::CatHitsToday($ID)%>
  • Unique link hits today for a specific category with tag <%ID>
    This can be called on any page using <%Plugins::ExtraStats::CatUniquesToday($ID)%>

    Link Specific:
    This month:
  • All hits this month for a specific link with tag <%ID%>
    This can be called on any page using <%Plugins::ExtraStats::LinkHitsMonth($ID)%>
  • Unique* hits this month for a specific link with tag <%ID%>
    This can be called on any page using <%Plugins::ExtraStats::LinkUniquesMonth($ID)%>
    Today:
  • All hits today for a specific link with tag <%ID%>
    This can be called on any page using <%Plugins::ExtraStats::LinkHitsToday($ID)%>
  • Unique hits today for a specific link with tag <%ID>
    This can be called on any page using <%Plugins::ExtraStats::LinkUniquesToday($ID)%>

    Graphs
  • All Links
    To print a daily graph of unique hits for all links for the current month:
    <%Plugins::ExtraStats::DailyStats('All','U')%>
    To print a daily graph of unique hits for all links for the current month:
    <%Plugins::ExtraStats::DailyStats('All','A')%>
    To specify the month and year:
    <%Plugins::ExtraStats::DailyStats('All','U','10','2002')%>
    To print the daily graph of all hits for all links:
    <%Plugins::ExtraStats::DailyStats('All','A','10','2002')%>
  • Category <%ID%>
    To print a daily graph of unique link hits for Category <%ID%> for the current month:
    <%Plugins::ExtraStats::CatMonthlyStats($ID,'U')%>
    To print a daily graph of all link hits for Category <%ID%> for the current month:
    <%Plugins::ExtraStats::CatMonthlyStats($ID,'A')%>
    To specify the month and year:
    <%Plugins::ExtraStats::CatMonthlyStats($ID,'U','10','2002')%>
    Tp print the daily graph of all link hits for Category <%ID%>:
    <%Plugins::ExtraStats::CatMonthlyStats($ID,'A','10','2002')%>
  • Link <%ID%>
    To print a daily graph of unique hits for Link <%ID%> for the current month:
    <%Plugins::ExtraStats::MonthlyStats($ID,'U')%>
    To print a daily graph of all hits for Link <%ID%> for the current month:
    <%Plugins::ExtraStats::MonthlyStats($ID,'A')%>
    To specify the month and year:
    <%Plugins::ExtraStats::MonthlyStats($ID,'U','10','2002')%>
    Tp print the daily graph of all hits for Link <%ID%>:
    <%Plugins::ExtraStats::MonthlyStats($ID,'A','10','2002')%>
    Alternatively, you can use the form in the Statistics menu option.

    Top Lists:
    Whole Site:
  • To display the top sites today:
    <%Plugins::ExtraStats::TopDaily('10')%>
  • To display the top sites this week:
    <%Plugins::ExtraStats::TopWeekly('10')%>
  • To display the top sites this month:
    <%Plugins::ExtraStats::TopMonthly('10')%>
    You can add extra fields to both of these to specify the sort order (default is AU) and the date. These extra fields are optional.
  • To display the top sites sorted by All hits then Unique hits for the 1st November 2002:
    <%Plugins::ExtraStats::TopDaily('10','AU','2002-11-01')%>
  • To display the top sites sorted by All hits for the week ending 1st November 2002 (optional):
    <%Plugins::ExtraStats::TopWeekly('10','AU','2002-11-01')%>
  • To display the top sites sorted by Unique hits then All hits for November 2002:
    <%Plugins::ExtraStats::TopMonthly('10','UA','11','2002')%>
    In all cases you can change the 10 to display however many you want in the list.

    Links in a Category:
  • To display the top sites today:
    <%Plugins::ExtraStats::CatTopDaily($ID)%>
  • To display the top sites for the last 7 days:
    <%Plugins::ExtraStats::CatTopWeekly($ID)%>
  • To display the top sites this month:
    <%Plugins::ExtraStats::CatTopMonthly($ID)%>
    You can add extra fields to these to specify the sort order (default is AU) and the date. These extra fields are optional.
  • To display the top 10 sites sorted by All hits then Unique hits for the 1st November 2002 for the category $ID and ALL its Subcategories (you can add this to the end of the following 2 tags as well):
    <%Plugins::ExtraStats::CatTopDaily($ID,'10','AU','2002-11-01','SUBCATS')%>
  • To display the top 10 sites sorted by Unique hits then All hits for the week ending 1st November 2002:
    <%Plugins::ExtraStats::CatTopWeekly($ID,'10','UA','2002-11-01')%>
  • To display the top 10 sites sorted by Unique hits then All hits for November 2002:
    <%Plugins::ExtraStats::CatTopMonthly($ID,'10','UA','11','2002')%>
    In all cases you can change the 10 to display however many you want in the list.

    Categories (by sum(All_Hits) for links in the categories):
  • To display the top categories today:
    <%Plugins::ExtraStats::DailyCats('10')%>
  • To display the top categories this month:
    <%Plugins::ExtraStats::MonthlyCats('10')%>
    You can add extra fields to both of these to specify the date. These extra fields are optional.
  • To display the top 10 categories for the 1st November 2002:
    <%Plugins::ExtraStats::DailyCats('10','2002-11-01')%>
  • To display the top 10 categories for November 2002:
    <%Plugins::ExtraStats::MonthlyCats('10','11','2002')%>
    In both cases you can change the 10 to display however many you want in the list.


    For advanced use: Two new tags will return extra tags which you can use to print out daily and monthly stats for a link.
  • <%Plugins::ExtraStats::DailyPrintStats($ID,'06','2003')%>
    Returns tags which you can use to print out stats for link <%ID%> for (optional) June 2003. If you leave out the month and year it will default to the current month.
    The tags returned are <%Unique_Hits%>,<%All_Hits%>,<%ID%>,<%Month%>,<%Year%>,<%Stats_Loop%>.
    Within <%Stats_Loop%>
    <%number%> is the number of the day <%all_hits%> is all hits for that day <%hits%> is unique hits for that day
  • <%Plugins::ExtraStats::MonthlyPrintStats($ID,'2003')%>
    Returns tags which you can use to print out stats for link <%ID%> for (optional) 2003. If you leave out the year it will default to the current year.
    The tags returned are <%Unique_Hits%>,<%All_Hits%>,<%ID%>,<%Year%>,<%MStats_Loop%>.
    Within <%MStats_Loop%>
    <%number%> is the number of the month <%all_hits%> is all hits for that month <%hits%> is unique hits for that month

    Last links clicked on:
  • To display the last 10 links clicked on:
    <%Plugins::ExtraStats::LastLinks('10')%>

    NEW Popular List:
    You may like to show this list instead of your cool page.
    Use <%Plugins::ExtraStats::PopularLinks('1','100','100')%> to get a loop of the top 100 links and then

    The numbers are in the tag are ('startrank','links per page','total number') so you can span several pages.
    If you want to span pages, use <%span%>
    Example:

    Last month Use <%Plugins::ExtraStats::getlastmonth%> at the top of your template if you want to show the graph or list for the last month. You will then need to use $lastmonth and $lastyear in the graph/list tag.
    For example, <%Plugins::ExtraStats::LinkHitsMonth($ID,'A',$lastmonth,$lastyear)%>

    Unique Hits
    Unique Hits have now been set to unique over the last 24 hours. So the first time someone clicks on a link it is added as a count to both 'Unique Hits' and 'All Hits'. If the person returns and clicks on the link again, this plugin checks the Clicktrack table, finds that they have already clicked on the link and adds to the 'All Hits' but not the 'Unique Hits'. Therefore, the uniqueness is per visitor to your site and is over the last 24 hours.