Tag Documentation

Tag:Stats template tag

This template tag allows you to display some basic stats on all tags on your site.

{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 (ex: 56.85).

total_channel_entries_tagged

{total_channel_entries_tagged}

This variable returns the total percentage of channel entries tagged (ex: 347).

total_tags

{total_tags}

This variable returns the total number of tags that exist (ex: 162).

Examples

The below is a basic example of how you might show some Tag stats for your site:

<p>
{exp:tag:stats}
    There is a total of {total_tags} tags on this site.
    {total_channel_entries_tagged} entries are tagged
    ({percent_channel_entries_tagged}%).
{/exp:tag:stats}
</p>

Support

Having problems setting up and/or using Tag? Support is offered from 10am to 4pm EST weekdays. Send us an email at help@eeharbor.com and we will respond as quickly as we can.