Package: django-clicky
The django-clicky application integratesClickyanalytics into aDjangoproject.OverviewClicky is an online web analytics tool.  It is similar to Google
Analytics in that it provides statistics on who is visiting your website
and what they are doing.  Clicky provides its data in real time and is
designed to be very easy to use.  This Django application provides a
template tag to add the tracking code to HTML templates.InstallationTo install django-clicky, simply place thedjango_clickypackage somewhere on the Python path.  The application is configured in
the projectsettings.pyfile.  In order to use the template tags,
thedjango_clickypackage must be present in theINSTALLED_APPSlist:INSTALLED_APPS = [
    ...
    'django_clicky',
    ...
]You set your Clicky Site ID in theCLICKY_SITE_IDsetting:CLICKY_SITE_ID = '12345678'(You can find the Site ID in the Info tab of the website Preferences
page on your Clicky account.)UsageThe django-clicky application currently provides one template tags that
tracks visitor clicks.  In order to use the tag in a template, first
load the django-clicky template library by adding{% load clicky %}at the top.Tracking visitor clicksClicky uses Javascript to track every visitor click. Thetrack_clickytag inserts the tracking code in the HTML page.  The
Clicky web pages recommend adding the code directly before the
closing</body>HTML tag:...
    {% track_clicky %}
</body>
</html>The Javascript code added by the template tag is asynchronous and works
on both plain HTTP and secure HTTPS pages.  It also contains
fallback HTML code that uses<a>and<img>tags to track
browsers with Javascript disabled.  If you want to skip this fallback
code (for example, if you want to add it to the HTML head section) you
can use theCLICKY_RENDER_NON_JS_CODEsetting:CLICKY_RENDER_NON_JS_CODE = FalseClicky data can be annotated withcustom properties.  The most
obviously useful information is whether the visitor is a logged in user.
Thetrack_clickytemplate tag will automatically provide Clicky with
the visitor username if a user has logged into Django.NoteThe template tag can only access the visitor username if the
Django user is present in the template context as theuservariable.  You must either use aRequestContextand have thedjango.contrib.auth.context_processors.authcontext processor in
theTEMPLATE_CONTEXT_PROCESSORSsetting (which is default), or
add this variable to the context yourself when you render the
template.Ignoring internal visitorsOften you do not want to track clicks from your development or internal
IP addresses.  For this reason you can set theCLICKY_INTERNAL_IPSto a list or tuple of addresses that the template tag will not be
rendered on:CLICKY_INTERNAL_IPS = ['192.168.45.2', '192.168.45.5']If you already use theINTERNAL_IPSsetting, you could set the
clicky internal addreses to this value.  This will be the default from
version 2.0.0 upwards.NoteThe template tag can only access the visitor IP address if the
HTTP request is present in the template context as therequestvariable.  For this reason, theCLICKY_INTERNAL_IPSsettings
only works if you add this variable to the context yourself when you
render the template, or you use theRequestContextand add thedjango.core.context_processors.requestcontext processor to theTEMPLATE_CONTEXT_PROCESSORSsetting:TEMPLATE_CONTEXT_PROCESSORS = [
    ...
    'django.core.context_processors.request',
    ...
]Changelog1.2.1Stopped development.  Use the Clicky module indjango-analytical.1.2.0Automatically track logged in users.1.1.0Added theCLICKY_INTERNAL_IPSsetting.1.0.0Initial release.