Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-sitemetrics

How to install django-sitemetrics

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-sitemetrics
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2
0.4.2Never BuiltWhy not?
0.2 Available View build log
Windows (64-bit)
0.2
0.4.2Never BuiltWhy not?
0.2 Available View build log
Mac OS X (10.5+)
0.2
0.4.2Never BuiltWhy not?
0.2 Available View build log
Linux (32-bit)
0.2
0.4.2Never BuiltWhy not?
0.2 Available View build log
Linux (64-bit)
0.4.2 Available View build log
0.2 Available View build log
0.4.2 Available View build log
 
Depended by
Lastest release
version 0.4.2 on Sep 20th, 2013

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

https://pypip.in/d/django-sitemetrics/badge.png

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 - provider alias; UA-000000-0 - keycode argument.

    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.

Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.