Skip to content

Date range

P2Lab Stats uses the same date range picker across every report and KPI widget. Two values matter: the current range you pick, and the previous period the plugin computes automatically for comparison.

The picker offers 9 presets that cover the most common analysis windows:

PresetRange
Last 7 daysToday − 7 days to today
Last 14 daysToday − 14 days to today
Last 30 daysToday − 30 days to today
Current monthFirst day of current month to today
Previous monthWhole previous calendar month
Last 3 monthsToday − 90 days to today
Last 6 monthsToday − 180 days to today
Last 12 monthsToday − 365 days to today
Current yearJanuary 1 of current year to today

Click Custom in the picker to open a dual-month calendar. Pick a start and an end day; the previous period is recomputed automatically.

The custom range supports arbitrary lengths down to a single day. For very long ranges, consider whether cache warming should be enabled — a 2-year range over a 200 000-order shop will recompute on the spot otherwise.

The previous period is always of equal length, ending immediately before the current range starts.

Examples:

CurrentPrevious
Last 7 daysThe 7 days before that (so 14 days ago to 7 days ago)
Last 30 daysThe 30 days before that
Current month (1st–13th)Previous calendar month’s 1st–13th
2024-06-01 to 2024-06-30 (custom)2024-05-02 to 2024-05-31

This logic mirrors how Google Analytics computes “previous period” comparisons.

A toggle next to the picker excludes today from both the current and previous range. Useful because today is always partial — including it makes the Δ % look artificially low.

The toggle defaults to on for the KPI widgets and off for the in-module reports. You can override either default per profile.

The picker state is serialised to the URL so links remain stable when shared. The serialised form encodes:

  • The preset key (or custom)
  • Start / end dates (for custom)
  • The exclude-today flag

A link with explicit URL parameters wins over any loaded profile’s date preset.