All Projects → bruth → Django Tracking2

bruth / Django Tracking2

Licence: bsd-2-clause
django-tracking2 tracks the length of time visitors and registered users spend on your site. Although this will work for websites, this is more applicable to web _applications_ with registered users. This does not replace (nor intend) to replace client-side analytics which is great for understanding aggregate flow of page views.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Tracking2

Django Blog Zinnia
Simple yet powerful and really extendable application for managing a blog within your Django Web site.
Stars: ✭ 2,035 (+1056.25%)
Mutual labels:  django
Graphene Django Subscriptions
This package adds support to Subscription's requests and its integration with websockets using Channels package.
Stars: ✭ 173 (-1.7%)
Mutual labels:  django
Toshocat
Anime and Manga list app for desktop.
Stars: ✭ 174 (-1.14%)
Mutual labels:  tracking
Djangorestframework Queryfields
Allows clients to control which fields will be sent in the API response
Stars: ✭ 170 (-3.41%)
Mutual labels:  django
Viewflow
Reusable workflow library for Django
Stars: ✭ 2,136 (+1113.64%)
Mutual labels:  django
Sugardough
A web application template based on Django.
Stars: ✭ 173 (-1.7%)
Mutual labels:  django
Docker Django
A project to get you started with Docker and Django.
Stars: ✭ 170 (-3.41%)
Mutual labels:  django
Mygpo
The gpodder.net webservice
Stars: ✭ 176 (+0%)
Mutual labels:  django
Django Antd Tyadmin
类似 xadmin 的基于Model 快速生成前后台管理增删改查,筛选,搜索的后台管理自动化工具。Antd 界面好看现代化!前后端分离!无损二次开发!由Django Restful Framework 和 Ant Design Pro V4 驱动
Stars: ✭ 171 (-2.84%)
Mutual labels:  django
Crud App Vuejs Django
This is simple crud app and searchFilter made using vuejs and django. Used to explain the tutorial present on https://medium.com/@shubhambansal_89125/crud-app-using-vue-js-and-django-516edf4e4217 https://medium.com/@shubhambansal_89125/searchfilter-using-django-and-vue-js-215af82e12cd
Stars: ✭ 174 (-1.14%)
Mutual labels:  django
Mayblog
Yet another django based blog created in May 2015
Stars: ✭ 171 (-2.84%)
Mutual labels:  django
Niji
A pluggable Django forum APP
Stars: ✭ 173 (-1.7%)
Mutual labels:  django
Django Ecommerce
Ecommerce website built with Django 2.2.3, Python 3.7.3, Stripe and AWS
Stars: ✭ 173 (-1.7%)
Mutual labels:  django
Rest Api Basics
This is a basic guide on how to build a REST API with Django & Python. For much deeper depth, check out our new course on REST API: (https://kirr.co/90kxtx)
Stars: ✭ 171 (-2.84%)
Mutual labels:  django
Browser Interaction Time
⏰ A JavaScript library (written in TypeScript) to measure the time a user is active on a website
Stars: ✭ 175 (-0.57%)
Mutual labels:  tracking
Django Fluent Comments
A modern, ajax-based appearance for django comments
Stars: ✭ 170 (-3.41%)
Mutual labels:  django
Django Blog It
django blog - complete customization and ready to use with one click installer
Stars: ✭ 172 (-2.27%)
Mutual labels:  django
Tiebaproject
贴吧云签到,贴吧云回复,贴吧机器人,百度贴吧
Stars: ✭ 176 (+0%)
Mutual labels:  django
Laravel Auditing
Record the change log from models in Laravel
Stars: ✭ 2,210 (+1155.68%)
Mutual labels:  tracking
Django Vue.js Book
django rest framework + vue 的图书管理小项目,前后端分离教程
Stars: ✭ 173 (-1.7%)
Mutual labels:  django

Overview

Build Status PyPI

django-tracking2 tracks the length of time visitors and registered users spend on your site. Although this will work for websites, this is more applicable to web applications with registered users. This does not replace (nor intend) to replace client-side analytics which is great for understanding aggregate flow of page views.

Note: This is not a new version of django-tracking. These apps have very different approaches and, ultimately, goals of tracking users. This app is about keeping a history of visitor sessions, rather than the current state of the visitor.

Requirements

Download

pip install django-tracking2

Setup

Add tracking to your project's INSTALLED_APPS setting:

INSTALLED_APPS = (
    ...
    'tracking',
    ...
)

If you use Django 1.8+ tracking app should follow the app with your user model

Add tracking.middleware.VisitorTrackingMiddleware to your project's MIDDLEWARE_CLASSES before the SessionMiddleware:

MIDDLEWARE_CLASSES = (
    ...
    'tracking.middleware.VisitorTrackingMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    ...
)

Django 1.11 - 2.1

If you are upgrading from previous versions to Django 2.1, you must apply migrations again.

Settings

TRACK_AJAX_REQUESTS - If True, AJAX requests will be tracked. Default is False

TRACK_ANONYMOUS_USERS - If False, anonymous users will not be tracked. Default is True

TRACK_SUPERUSERS - If False, users with the superuser flag set to True will not be tracked. Default is True.

TRACK_PAGEVIEWS - If True, individual pageviews will be tracked.

TRACK_IGNORE_URLS - A list of regular expressions that will be matched against the request.path_info (request.path is stored, but not matched against). If they are matched, the visitor (and pageview) record will not be saved. Default includes 'favicon.ico' and 'robots.txt'. Note, static and media are not included since they should be served up statically Django's static serve view or via a lightweight server in production. Read more here

TRACK_IGNORE_STATUS_CODES - A list of HttpResponse status codes that will be ignored. If the HttpResponse object has a status_code in this blacklist, the pageview record will not be saved. For example,

TRACK_IGNORE_STATUS_CODES = [400, 404, 403, 405, 410, 500]

TRACK_REFERER - If True, referring site for all pageviews will be tracked. Default is False

TRACK_QUERY_STRING - If True, query string for all pageviews will be tracked. Default is False

Views

To view aggregate data about all visitors and per-registered user stats, do the following:

Include tracking.urls in your urls.py:

urlpatterns = patterns('',
    ...
    url(r'^tracking/', include('tracking.urls')),
    ...
)

These urls are protected by a custom Django permission tracking.visitor_log. Thus only superusers and users granted this permission can view these pages.

Available URLs

  • / - overview of all visitor activity, includes a time picker for filtering.

Templates

  • tracking/dashboard.html - for the dashboard page
  • tracking/snippets/stats.html - standalone content for the dashboard page (simplifies overriding templates)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].