This software helps users to determine the number of active users on their website. With a straightforward interface, it allows quick and easy monitoring of website activity to inform business decisions.
To display the number of active users on a specific page of your site, simply load the tracking tags with {% load tracking_tags %} in your template, and include the relevant code: {% visitors_on_site as visitors %} < p > {{ visitors }} active user{{ visitors|pluralize }} < /p >. For tracking user activity on a specific page, use this code: {% visitors_on_page as same_page %} < p > {{ same_page }} of {{ visitors }} active user{{ visitors|pluralize }} {% ifequal same_page 1 %}is{% else %}are{% endifequal %} reading this page < /p >
Additionally, if there are certain pages on your website that you don't want tracked, you can define a list of prefixes in your settings.py file under NO_TRACKING_PREFIXES. For instance, if you don't want any activity monitored for your "/family/" pages, just set NO_TRACKING_PREFIXES to ['/family/'].
Also, if you wish certain user-agents, such as Googlebot or Yahoo!'s Slurp not to be counted, you can add specific keywords to your visitor tracking dashboard in the Django administration interface. Look for the "Untracked User-Agents" option and add any keyword that distinguishes a particular user-agent. Visitors with that keyword in their user-agent string will then not be monitored.
By default, active users are counted for the past ten minutes. However, you can change this time frame by setting TRACKING_TIMEOUT to whatever duration you desire in your settings.py.
Lastly, to ensure automatic visitor clean-up, any records that are older than 24 hours are removed by default. But, you can customize this setting by changing TRACKING_CLEANUP_TIMEOUT in your settings.py to the desired number of hours.
Overall, Django-tracking is an incredibly valuable tool for monitoring user activity on any Django-powered website. Please feel free to contact us if you have any questions or concerns. Good luck!
Version 0.2.7: N/A