7
You might want to look into something like django-tracking for this.
django-tracking is a simple attempt at
keeping track of visitors to
Django-powered Web sites. It also
offers basic blacklisting
capabilities.
Edit: As for your updated question… [Answer redacted after being corrected by muhuk]
Alternatively, I liked the response to this question: How do I find out total number of sessions created i.e. number of logged in users?
You might want to try that instead.
3
django-tracking2
can be helpful to track the visitors.
As specially this is easy to configure in the deployment like AWS, because it is not required any dependency and environment variables.
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.
- [Django]-Dynamically alter Field choices in Django ModelForm
- [Django]-What is the best method to upgrade a django project from 1.3.7 to 1.6 or 1.7
- [Django]-What is the best way to have all the timezones as choices for a Django model?
- [Django]-Django Remove all Empty Lines from Template Output
0
There is also a little application django-visits to track visits https://bitbucket.org/jespino/django-visits
-2
Edit: Added some more information about why I present this answer here. I found chartbeat when I tried to answer this same question for my django based site. I don’t work for them.
Not specifically Django, but chartbeat.com is very interesting to add to a website as well.
django-tracking is great, +1 for that answer, etc.
Couple of things I could not do with django-tracking, that chartbeat helped with; tracked interactions with completely cached pages which never hit the django tracking code and pages not delivered through django (e.g. wordpress, etc.)
- [Django]-Django: Using DataTables
- [Django]-Error connecting Django 2.0 with sql server 2014 using python 3.6
- [Django]-'web:' is not recognised as an internal or external command
- [Django]-Django: return several views from a single URL without redirection
- [Django]-How to populate select option dropdown with database info in django