django-tracking

Determine how many active users you have on your site.
Download

django-tracking Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Josh VanderLinden
  • Publisher web site:
  • http://code.google.com/u/codekoala/

django-tracking Tags


django-tracking Description

Determine how many active users you have on your site. django-tracking is a simple plugin to keep track of visitors on a Django-powered website. It also offers basic blacklisting capabilities.Usage:To display the number of active users there are in one of your templates, make sure you have {% load tracking_tags %} somewhere in your template and do something like this:{% visitors_on_site as visitors %}< p > {{ visitors }} active user{{ visitors|pluralize }}< /p >If you also want to show how many people are looking at the same page:{% visitors_on_page as same_page %}< p > {{ same_page }} of {{ visitors }} active user{{ visitors|pluralize }} {% ifequal same_page 1 %}is{% else %}are{% endifequal %} reading this page< /p >If you don't want particular areas of your site to be tracked, you may define a list of prefixes in your settings.py using the NO_TRACKING_PREFIXES. For example, if you didn't want visits to the /family/ section of your website, set NO_TRACKING_PREFIXES to .If you don't want to count certain user-agents, such as Yahoo!'s Slurp and Google's Googlebot, you may add keywords to your visitor tracking in your Django administration interface. Look for "Untracked User-Agents" and add a keyword that distinguishes a particular user-agent. Any visitors with the keyword in their user-agent string will not be tracked.By default, active users include any visitors within the last 10 minutes. If you would like to override that setting, just set TRACKING_TIMEOUT to however many minutes you want in your settings.py.For automatic visitor clean-up, any records older than 24 hours are removed by default. If you would like to override that setting, set TRACKING_CLEANUP_TIMEOUT to however many hours you want in your settings.py.Good luck! Please contact me with any questions or concerns you have with the project! Here are some key features of "django-tracking": Tracks the following information about your visitors: · Session key · IP address · User agent · Whether or not they are a registered user and logged in · Where they came from (http-referer) · What page on your site they last visited · How many pages on your site they have visited · Allows user-agent filtering for visitor tracking · Automatic clean-up of old visitor records · Can ban certain IP addresses, rendering the site useless to visitors from those IP's (great for stopping spam) · The ability to have a live feed of active users on your website Template tags to: · display how many active users there are on your site · determine how many active users are on the same page within your site Requirements: · Django · Python


django-tracking Related Software