Hits Documentation

Count Hits (Image) Tag Tag

{exp:hits:count_hits_image}

Allows you to track hits on cached templates. This tag outputs and img tag which points to a special URL on your site to track hits. It will do it’s best to ignore the most popular search engines. You will place this tag only on Single Entry Pages, sicne you only want to count the hits for a single entry at a time right?

Parameters

Parameters Description
entry_id=”“ For Channel Entries
url_title=”“ For Channel Entries
category=”“ For Channel Categories (the url_title)
category_id=”“ For Channel Categories
ci_id=”“ For Channel Images
cf_id=”“ For Channel Files
cv_id=”“ For Channel Videos
br_id=”“ For BrilliantRetail

Example

1
2
3
4
5
6
7
8
{exp:channel:entries channel="blog"}
 
        <h2>{title}</h2>
        {body}
 
        {exp:hits:count_hits_image entry_id="{entry_id}"}
        {!-- EXAMPLE OUTPUT: <img src="http://www.mysite.com/?ACT=123?t=2&i=66" alt="" /> --}
{/exp:channel:entries}

Support

Having problems setting up and/or using Hits? 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.