idlesign/django-sitemetrics
소개
Reusable application for Django that offers easy integration with different site metrics service providers.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originaldjango-sitemetrics
https://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
Yandex Metrika — https://metrika.yandex.ru/
Provider alias:
yandexGoogle Analytics — https://www.google.com/analytics/
Provider alias:
googleOpenstat — https://www.openstat.com/
Provider alias:
openstat
How to use
- Add the
sitemetricsapplication toINSTALLED_APPSin your settings file (usuallysettings.py) - 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 argumentssitemetrics tag notation:{% sitemetrics by google for "UA-000000-0" %}Here:
googleis a metrics provider alias;UA-000000-0— metrics counter keycode.That is how you put Google Analytics counter code (with
UA-000000-0keycode) into page.Use
no argumentssitemetrics 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 migrateto install sitemetrics tables into your database.
Documentation
관련 프로젝트 살펴보기
불러오는 중…