Always Display Today's Data / Last Visits Graph


(Marvin) #1

Hi,

I’m new to Piwik, but I already like it a lot.

And two small things keep confusing me:

When I open my-domain/piwik, I always see the data for the previous day.
The dashboard link even contains “date=yesterday”.

Is there a way to get a last visits graph for the current day only?
I.e., to be able to see how many users accessed the page during the last hours?
I find it confusing that the graph displays data for the last days when I select “day” next to the date selection in the center of the screen. I would expect it to display the hours of the day…

Thanks in advance,
Marvin


(porto) #2

[quote=Marvin @ Nov 27 2009, 03:38 PM]1)
When I open my-domain/piwik, I always see the data for the previous day.
The dashboard link even contains “date=yesterday”.[/quote]

put row:
default_day=today
into your config file (/path/to/piwik/config/config.ini.php)


(Marvin) #3

[quote=porto @ Nov 27 2009, 06:10 PM]put row:
default_day=today
into your config file (/path/to/piwik/config/config.ini.php)[/quote]

Where do I have to put that?
I simply appended it at the end, that didn’t work.


(porto) #4

try find this row in global.ini.php and try to change its value to today in there


(Marvin) #5

Thanks, I figured it out:

Adding

[General]
default_day = today

to the config.ini.php did the trick.
Thanks a bunch!

Do you also happen to have a solution for my second problem?


(porto) #6

I’m afraid that i wont be able to help you with that…
im newbie to piwik either style_emoticons/<#EMO_DIR#>/rolleyes.gif
but as far as i know…request to get data for such graf contains period and date,
if date is something like last10 and period is day, you will get data for last 10 days
so logically to get data for last 10 hours you would have to set period to hours, but piwik doesnt offer this…
But maybe somebody more advanced does have solution…


(Marvin) #7

Thanks anyway. style_emoticons/<#EMO_DIR#>/smile.gif


(vipsoft) #8

Piwik does not currently summarize by hours. There’s an open ticket if someone wants to pursue it. (The main concern is the extra storage and archiving time.)


(Marvin) #9

Ok, thanks.

I still find it confusing, though, that when I select “Week” as the period, the last visits graph contains data since April.
That’s kind of a long week… style_emoticons/<#EMO_DIR#>/huh.gif


(Matthieu Aubry) #10

You have the widget Visits by local time, Visits by server time, that show the number visit by hour. If you select today in the calendar, it would show today’s visits by hour.