roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Add 6 months and yearly shortcuts with week / month intervals

Open adriaandotcom opened this issue 5 years ago • 5 comments

The URLs have now start and end dates (/example.com?start=2018-09-14&end=2019-07-27) but it would be nice to have shortcuts like this (/example.com?start=yesterday&end=today or /example.com?period=month or /example.com?period=6-months).

Thanks to @JustinNoelDev on Twitter

adriaandotcom avatar Nov 11 '19 06:11 adriaandotcom

Thanks so much for implementing the date ranges! For longer ranges (6 months?), it would be great if the stats could be grouped by week. For example, this is a year of my site:

simple-analytics-annual

It's not very readable nor easy to see a real trend since every single day is plotted. If it was plotted by the total per week, it would present more useful information.

calendee avatar Dec 10 '19 01:12 calendee

You're totally right! Thanks. We are updating our database to handle queries easily for this. But we first our moving our servers to The Netherlands, so it could take a while before it's implemented. But we are definitely going to do this!

adriaandotcom avatar Dec 11 '19 16:12 adriaandotcom

Another customer shared this use case:

I often like to view my site usage statistics for today's date. I do it often enough that it'd be nice to create a bookmark in my browser that goes direct to the page for today's stats.

However, the URL for that page is something like:

https://simpleanalytics.com/example.com?start=2020-05-20&end=2020-05-20

And since it has today's date 2020-05-20 in the URL, this will be out of date for me when tomorrow rolls around.

Any chance you could add a shortcut like this instead:

https://simpleanalytics.com/example.com?start=today

And this link would automatically redirect me to the page for today's date? That way, I could bookmark the shortcut and save a bunch of time...

That makes a lot of sense. Lets do this one in the near future @hellodeibu!

I would suggest we use period=today together with start=yesterday&end=today like helpers. Maybe shortcuts like -3days and -5months would be cool as well.

adriaandotcom avatar May 22 '20 15:05 adriaandotcom

This will be part of the beta

adriaandotcom avatar Aug 26 '20 08:08 adriaandotcom

@hellodeibu Could you make this work like @calendee describes?

adriaandotcom avatar Oct 18 '20 18:10 adriaandotcom