Django hit counter application that tracks the number of hits/views for chosen objects
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 8 commits ahead, 233 commits behind thornomad:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Basic app that allows you to track the number of hits/views for a particular object.

For more information you can view comments in the source code or visit:

What it is not

This is not meant to be a user tracking app (see: django-tracking) or a comprehensive site traffic monitoring tool (see: Google Analytics).

It's meant to serve as a simple hit counter for chosen objects with a couple useful features (user-agent, session, and IP tracking) and tools to help you on your way.


I would love to make it better. Please fork and push. Some fun additions might be 1 a nice graphing utility for the admin site, [2] another approach to caputring a hit (other than jQuery), and [3] a cleanup tool that can remove Hit objects after a certain period (cron job).


Simplest way to formally install is to run:

./ install

Or, you could do a PIP installation:

pip install -e git://

Or, you can link the source to your site-packages directory. This is useful if you plan on pulling future changes and don't want to keep running ./ install.

cd ~/src
git clone git://
sudo ln -s `pwd`/django-hitcount/hitcount `python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`/hitcount

Special thanks to ariddell for putting the package together.