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>"> 17
page Count only the page (and string, optional) specified. <#hits_total:page="<#page>"> 11
range Range of dates to count. <#hits_total:range="12/03/2017-12/17/2017"> 863
Only a specific day. <#hits_total:range="12/17/2017"> 34
A specific month. <#hits_total:range="12/2017"> 921
A whole year. <#hits_total:range="2017"> 18553
user The total hits month to date by a user. <#hits_total:user="<#visitor_user>"> 921

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