The page overlay function only offers 5 predefined date ranges: Today, Yesterday, Current Week, Current Month, Current Year.
Compared with Piwik’s default date range picker this is very limiting. I think I am not the only one to want to analyse pages based on May vs September, etc.
Am I overlooking something or should this really be added to the issue queue as a feature request?
matthieu
(Matthieu Aubry)
November 6, 2014, 5:44am
2
fschaap
November 17, 2014, 4:25pm
3
Okay, I figured out that I can use the browser address bar to get what I want.
I have a question though. How is the month period calculated when I have a Page Overlay request like this:
https://mypiwikinstall.tld/index.php?module=Overlay&period=month&date=2014-01-01&idSite=1#l=https$3A$2F$2Fmypiwikinstall.tld$2F
Does the overlay show the current month? In the example 2014-01-01 until 2014-01-31?
Does it matter what day of the month I pick or does it only parse the YYYY-MM part of the URI?
fschaap
November 17, 2014, 4:40pm
4
Right, so I can answer my own question. For everyone wondering how to get the Page Overlay results for a user defined period.
Open the Page Overlay for the page you want to inspect
The URI for the page overlay looks like:
http://piwik/index.php?module=Overlay&period=month&date=today&idSite=1#l=http$3A$2F$2Fdomain.tld$2F
You can change the period and date parameters right there in the browser address bar
The date parameter uses the format YYYY-MM-DD and this date is the STARTING date for the period parameter
The period parameter takes the values: day, week, month or year
Example:
http://piwik/index.php?module=Overlay&period=month&date=2014-01-01&idSite=1#l=http$3A$2F$2Fdomain.tld$2F
This will show the page overlay for January 2014 (2014-01-01 through 2014-01-31).
Tip: when using period values of month and year you can even omit the day and month respectively. So this will work:
http://piwik/index.php?module=Overlay&period=year&date=2014&idSite=1#l=http$3A$2F$2Fdomain.tld$2F
Tested on Piwik 2.9.0.