bruth / django-tracking2

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.
BSD 2-Clause "Simplified" License
205 stars 67 forks source link

Do not track if HttpResponse status_code is explicitly blacklisted in settings.py #29

Closed dacox closed 10 years ago

dacox commented 10 years ago

I found the ability to blacklist HttpResponse status_codes useful so that I only track urls that exist.

An example of this in action is:

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

in your application's settings.py

bruth commented 10 years ago

Good idea. Can you update the README with the new setting?

dacox commented 10 years ago

Excellent, I added TRACK_IGNORE_STATUS_CODES to the Settings section and included a brief example.

Cheers

bruth commented 10 years ago

Thanks for the contribution!

bruth commented 10 years ago

Released 0.1.10 with the addition.

dacox commented 10 years ago

Thanks, no problem!