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

How to correct configure the ignore tracking for some urls #85

Closed ericel closed 1 year ago

ericel commented 1 year ago

I want to avoid tracking URLs that start with the following: '/en/jsi18n', '/media...', 'Cache'... How do I go about configuring this? I did something like the one below but didn't seem to work:

TRACK_IGNORE_URLS =  r'^(favicon\.ico|robots\.txt|media|Cache|/en/jsi18n/)$',
ericel commented 1 year ago

Figured it out. That was supposed to be a list.