Skip to main content

Django app used to track user visits.

Project description

django-user-visit

Django app for recording daily user visits

Compatibility

This package supports Python 3.12+ and Django 5.2-6.0.

Upgrading from v1 to v2

v2 added three new denormalised fields extracted from the User Agent string - device, os, browser - to make it easier to analyse directly in the database.

If you want to backfill historical data you will need to run the management command update_user_visit_user_agent_data after the upgrade.


This app consists of middleware to record user visits, and a single UserVisit model to capture that data.

The principal behind this is not to record every single request made by a user. It is to record each daily visit to a site.

The one additional factor is that it will record a single daily visit per session / device / ip combination. This means that if a user visits a site multiple times from the same location / same device, without logging out, then they will be recorded once. If the same user logs in from a different device, IP address, then they will be recorded again.

The goal is to record unique daily visits per user 'context' ( where context is the location / device combo).

Admin list view:

UserVisit list view

Admin edit view:

UserVisit edit view

Project details


Download files

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

Source Distribution

django_user_visit-2.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_user_visit-2.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file django_user_visit-2.3.tar.gz.

File metadata

  • Download URL: django_user_visit-2.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for django_user_visit-2.3.tar.gz
Algorithm Hash digest
SHA256 aeec4de490d088d3852d7c3d3f6f5aa07bcf5eee3bcfcb89ae01d223efa57565
MD5 f85380af70c397e29b04992eecac837c
BLAKE2b-256 ae8edf378326124e027603995e0b50b42d9c1fcad31064996613afa4dc7800c3

See more details on using hashes here.

File details

Details for the file django_user_visit-2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_user_visit-2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25b7a2f38d257522674d7390e9c02d8f35b30be3431ea978cdc736ceb9f7258b
MD5 296a77afb61600c86217cc53597baa61
BLAKE2b-256 45f140b004e68b160eb566102ba70ab4284218a8c9f056844ce9609f44b042c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page