This function allows you to display stats on all tags in your system, including total tags, percentage tagged, and top tags.
{exp:tag:stats} content {/exp:tag:stats}
Variables
The following variables are available for use:
percent_channel_entries_tagged
{percent_channel_entries_tagged}
This variable returns the percentage of channel entries tagged.
total_channel_entries_tagged
{total_channel_entries_tagged}
This variable returns the total percentage of channel entries tagged.
top_5_tags
{top_5_tags}
This variable returns the top X number of tags that exist. The number is interchangeable with any number of your choice. For example you could use {top_20_tags} to display the top 20 tags.
total_tags
{total_tags}
This variable returns the total number of tags that exist.
Examples
The below is a basic example of how you show the total amount of tags for a site:
{exp:tag:stats}
<p>There is a total of {total_tags} tags on this site.</p>
{/exp:tag:stats}
The below is an example of how you show the total percentage of entries that are tagged:
{exp:tag:stats}
<p>{percent_channel_entries_tagged}% of entries are tagged.</p>
{/exp:tag:stats}