{ "info": { "author": "Batiste Bieler", "author_email": "batiste.bieler@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "===========================================\nDjango tracker - Track users actions\n===========================================\n\n:Version: 0.0.1\n\nIntroduction\n============\n\nThis package is gonna give you an easy tool to track anonymous user\nactions on your website. You choose a label for an action and everytime\na user do this action you call the backend tracking method::\n\n from tracker.models import Tracker\n tracker = Tracker()\n tracker.incr_labels(\"user_connected|user_clicked_button\")\n\nThis action will increment the counter for the \"user_connected\" and the \"user_clicked_button\" label.\nYou can also call the tracker from javascript if you install the tracker view::\n\n from tracker.views import track, report\n\n urlpatterns = patterns('',\n ...\n (r'^track/', track),\n )\n\nAnd then you can visit the `/track/?labels=user_connected|user_clicked_button` and it will have the same effect. e.g. with jQuery::\n\n function track(labels) {\n $.ajax({\n url: '/track/?labels='+labels,\n dataType: 'text',\n type: \"GET\",\n error:function (xhr) {\n }\n });\n }\n\n track('user_connected|user_clicked_button')\n\nYou can also specify 2 extra informations separated by a colon::\n\n track('user_connected:category:domId')\n\nThe category will help in the admin interface to filter your statistics. The dom id\ncan be used on a page to create a heat map. Here is simple example of how to use the dom_id information::\n\n
\n\n \n \n\n \n \n\nThis little script gather the id in the \"tracked-links\" div and make a request to the server to get the\nstatistics about them. The action counter is then displayed inside the links. Take a look at the testproj\nfor an working example.\n\n.. image:: http://github.com/batiste/django-tracker/raw/master/testproj/heatmap.png\n\n\nHow does it work?\n==================\n\nDjango tracker is easy on the database and is architectured to use memcache to count every action. To collect the\nmemcache informations you will need to do one of these::\n\n * Setup and call the `report` view every 2 minutes\n * Setup a cron that call tracker.models.make_daily_report function every 2 minutes\n * Setup the Celery task that is provided in `tracker.tasks`.\n\nIt also mean that you need to use memcache or at least the locmem cache backend (only if you have 1 server).\nIt might work with a database cache but it will not be the best configuration.\n\nAll the informations are stored in daily Statistic models (1 record by label and by day). Those models can be used directly in the admin interface\nto examine interesting metrics of your website.\n\nInstallation\n============\n\n # python setup.py install # as root", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-tracker", "package_url": "https://pypi.org/project/django-tracker/", "platform": "any", "project_url": "https://pypi.org/project/django-tracker/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/django-tracker/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "A simple statistic tracker", "version": "0.0.1" }, "last_serial": 222534, "releases": { "0.0.1": [] }, "urls": [] }