Page overlay for user specified date range

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?

Hi there, if you want to compare two periods / ranges together, this is the feature request: Compare data for two different dates in tables, charts and reports · Issue #5711 · matomo-org/matomo · GitHub

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?

Right, so I can answer my own question. For everyone wondering how to get the Page Overlay results for a user defined period.

  1. Open the Page Overlay for the page you want to inspect

  2. 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

  1. You can change the period and date parameters right there in the browser address bar

  2. The date parameter uses the format YYYY-MM-DD and this date is the STARTING date for the period parameter

  3. 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.