Functions for Hits

"It's still web development, it's just way easier!"

Hits

These functions are written specifically for queries to the traffic logs. They allow you to retrieve the hits from each domain for specific pages, query strings, IP addresses, and dates using the Hits system variables.

Type Description Example Result
ip The total hits month to date by the IP. <#hits_total:ip="<#visitor_address>"> 24
page Count only the page (and string, optional) specified. <#hits_total:page="<#page>"> 9
range Range of dates to count. <#hits_total:range="08/05/2017-08/19/2017"> 906
Only a specific day. <#hits_total:range="08/19/2017"> 143
A specific month. <#hits_total:range="08/2017"> 1170
A whole year. <#hits_total:range="2017"> 10751
user The total hits month to date by a user. <#hits_total:user="<#visitor_user>"> 1170

More Examples Result
<#hits_total:page="<#page>?<#query_string>"> 9
<#hits_total:ip="<#visitor_address>",page="<#page>"> 1