locomotivecms / engine

A platform to create, publish and edit sites
http://www.locomotivecms.com
Other
2.31k stars 625 forks source link

Feature Request: Visitors Count #1176

Open kations opened 7 years ago

kations commented 7 years ago

It would be cool and a lot of clients ask for a visitors count. But Google Analytics is often to heavy.

I think of just one Chart(week/month.. select) in the Dashboard above the activities, something like:

https://craftcmsassets.craftcdn.com/images/homepage/feature-img3.png

What do you think? # #

Shigawire commented 7 years ago

+1 for that.

Thanks to @did I was able to add this functionality myself by adding custom pages to my back-office. I am using Piwik to monitor my sites and pull the metrics via their excellent API into my back-office:

image

Works pretty well :) It would be cool if there would be some analytics option, but a simple counter that triggers on new page hits wouldn't do for me. I've placed my sites behind all kinds of proxies and caches to take off as much load as possible from the rails app. Basically, only 5% of all hits really go through to the rails application.

But if you would like to know more about the integration of Piwik let me know.

did commented 7 years ago

@kations I totally agreed with you on this one

hey @Shigawire, that's awesome!!! I've no idea that I was helping you for that !!! Actually, we were working on something similar (cc @boie0025 @nielsenramon). We've to figure out now how we could help each other.

nielsenramon commented 7 years ago

We would love to have some basic graphs, you can find more info here: https://trello.com/c/nPwWSgcI/112-implement-dashboard-stats

Shigawire commented 7 years ago

Ah, that looks awesome! Well, your approach is better because it encapsulates the tracking inside the application instead of relying on another third party tool. I've tried to find out how ahoy tracks. My main concern is that, as I mentioned, I cache my apps pretty aggressively through microcaching. So if ahoy only tracks a hit inside a controller this would not work for me. But if ahoy uses a client side JS library that triggers the ahoy backend, it should be good :)

Anyways, I'll try to dive into it and participate working on the native tracking implementation.