django-sitemetrics 0.5.0

Reusable application for Django providing easy means to integrate site metrics counters into your sites

http://github.com/idlesign/django-sitemetrics

What's that

Reusable application for Django providing easy means to integrate site metrics counters into your sites

Built-in site metrics providers

  1. Yandex Metrikahttp://metrika.yandex.ru/

    Provider alias: yandex

  2. Google Analyticshttp://www.google.com/analytics/

    Provider alias: google

How to use

  1. Add the sitemetrics application to INSTALLED_APPS in your settings file (usually settings.py)
  2. Add {% load sitemetrics %} tag to the top of a template (usually base template, e.g. _base.html)

Then you have two options to add metrics counter code to your page:

  • Use four arguments sitemetrics tag notation:

    {% sitemetrics by google for "UA-000000-0" %}
    

    Here: google is a metrics provider alias; UA-000000-0 - metrics counter keycode.

    That is how you put Google Analytics counter code (with 'UA-000000-0' keycode) into page.

  • Use no arguments sitemetrics tag notation:

    {% sitemetrics %}
    

    That is how you put all counter codes registered and active for the current site.

    Client codes are registered with sites through Django Admin site interface.

    Admin site and Sites from Django contribs are required for this approach to work.

    Use ./manage.py syncdb to install sitemetrics tables into your database.

Author

Igor 'idle sign' Starikov

Pip

django-sitemetrics==0.5.0

Classifiers

  • Environment :: Web Environment
  • Framework :: Django
  • Intended Audience :: Developers
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.3
  • Development Status :: 4 - Beta
  • License :: OSI Approved :: BSD License
File Type Python Version Uploaded On Downloads
django-sitemetrics-0.5.0.tar.gz Source June 16, 2015 2,778
Version Release Date
0.5.0 June 16, 2015
0.4.2 Aug. 14, 2013
0.4.1 July 18, 2013
0.4.0 June 10, 2013
0.2 Oct. 13, 2010
Date Package Version Action
Aug. 26, 2015, 12:25 a.m. django-sitemetrics 0.2 Release Created
Aug. 26, 2015, 12:25 a.m. django-sitemetrics 0.5.0 Release Created
Aug. 26, 2015, 12:25 a.m. django-sitemetrics 0.4.2 Release Created
Aug. 26, 2015, 12:25 a.m. django-sitemetrics 0.4.0 Release Created
Aug. 26, 2015, 12:25 a.m. django-sitemetrics 0.4.1 Release Created
Aug. 26, 2015, 12:25 a.m. django-sitemetrics Package Created