Skip to main content

Django app to capture, track and display site analytics

Project description

django-analytics
================

Django app to capture, track and display site analytics

Install
-------
pip install dj-analytics

Add to django configuration
---------------------------
* Add `djanalytics` to `INSTALLED_APPS` in settings.py file.
* Run `manage.py migrate djanalytics` to create database tables.
* Create and configure at least one Client and Domain.
* In urls.py, include djanalytics urls. For example:

urlpatterns += patterns(
'',
(r'', include('djanalytics.urls'))
)

Capture using HTML
------------------

var url = 'http://dja_server.example.com/capture/?dja_id=[client uuid]';
document.write('<span style="display: none"><img src="' +
url+'&pth='+window.location.pathname+
'&qs='+
escape(window.location.search.substr(window.location.search.indexOf('?')+1))+
'"></img></span>');

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dj-analytics, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size dj-analytics-0.2.tar.gz (11.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page