website statistics

47 views
Skip to first unread message

Chansons

unread,
May 21, 2014, 3:05:22 PM5/21/14
to django...@googlegroups.com
Hello,

looking on the web, I didn't find any website statistics script written with python, or django.
If some exist, where could I find them, and if not, what do I need to know to write my own?

Thanks

Avraham Serour

unread,
May 21, 2014, 3:11:22 PM5/21/14
to django...@googlegroups.com
You'll need to know what information you need and how you want it to be displayed.

Do you need to know how many times buttons were clicked on your website? how many times a specific page was opened, how many times a picture was downloaded? the average times some page was opened each day during last week?

How do you need it displayed? A list of number? a pie chart? bar?

Someone correct me if I'm wrong but I believe this is usually done outside the scope of django, parsing the webserver logfile or using one of those js analytics libraries 


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/05358942-a9f3-427c-8550-6ca160900bd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

chansonsyiddish

unread,
May 21, 2014, 6:15:25 PM5/21/14
to django...@googlegroups.com
Thanks for your answer, Avraham, I will look into the logfile to see if
I can use that. I don't need any "pretty" display, just plain visitors
data, and their comportement while they visit the website.

Is there someone else who'd have already done this sort of things,
managing directly the statistics for his/her website?

Hélène

Andreas Kuhne

unread,
May 21, 2014, 6:23:13 PM5/21/14
to django...@googlegroups.com
I would use google analytics for that. Any reason why you are not using google analytics?

Regards,

Andréas


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.

chansonsyiddish

unread,
May 21, 2014, 7:46:45 PM5/21/14
to django...@googlegroups.com
Yes, lots of!
I've been using google analytics for another website for a few years, because it was easy to use, and didn't need any technical knowledge, and it works ok. But since I intend now to be more in control of what goes on, and have time to learn, I see no reason why I should go on giving google all these data and not knowing what it does with it, whom it sells it to. Furthermore, google analytics is quite "heavy", gives me a lot of things I don't need, doesn't give me other things I need, and I can't have the data precisely as I want them.

Thanks for the suggestion anyway... other ideas?

Hélène

Henrik Genssen

unread,
May 22, 2014, 6:49:22 AM5/22/14
to django...@googlegroups.com
Hi,

you could try graphite / carbon (and diamond) to do so, if you do not want to rely on javascript frameworks lil Piwik or GA and want to track special actions.
http://graphite.wikidot.com

and add you custom stats by something like this using UDP:

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.connect((settings.CARBON_SERVER, int(settings.CARBON_PORT)))
sock.sendall(message)
sock.close()

regards
Henrik

>reply to message:
>date: 21.05.2014 10:05:22
>from: "Chansons" <chanson...@gmail.com>
>to: django...@googlegroups.com
>subject: [<django-users.googlegroups.com>] website statistics
>--
>You received this message because you are subscribed to the Google Groups "Django users" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
>To post to this group, send email to django...@googlegroups.com.
>Visit this group at http://groups.google.com/group/django-users.
>To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/05358942-a9f3-427c-8550-6ca160900bd9%40googlegroups.com.

Timothy W. Cook

unread,
May 22, 2014, 8:19:46 AM5/22/14
to django...@googlegroups.com
On Wed, May 21, 2014 at 4:46 PM, chansonsyiddish <chanson...@gmail.com> wrote:

Thanks for the suggestion anyway... other ideas?

You can import your logfile data into R and do any analysis you want. 



 
============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

chansonsyiddish

unread,
May 22, 2014, 6:35:23 PM5/22/14
to django...@googlegroups.com
Thanks for all the answers!
Reply all
Reply to author
Forward
0 new messages