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

Couldn't make it work #3

Closed paurosello closed 12 years ago

paurosello commented 12 years ago

I don't know if I am doing something wrong but it didn't work wen I installed it with setup.py so I just copied the folder into my project.

I had to do some fixes in order to make it work.

If I did not intalled it right could you help me please? Thanks

bruth commented 12 years ago

You have not described the actual issues you are running in to. The commits you are proposing don't resolve anything.

paurosello commented 12 years ago

yes sorry I just did not realize that you were trying to get the parameters from the GET request, and as I was not giving any parameters it was not working.

start_str = request.GET.get('start', str(datetime.date.today().isoformat())) end_str = request.GET.get('end', str(datetime.date.today().isoformat()))

I just added this lines to put a default value for the current day.

Sorry for the request I did before! (I'm quite new to this world)

Pau

bruth commented 12 years ago

No worries. If no parameters are specified, all data is returned. start and end dates are only necessary if you want to restrict the date range.