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.
Presets
Section titled “Presets”The picker offers 9 presets that cover the most common analysis windows:
| Preset | Range |
|---|---|
| Last 7 days | Today − 7 days to today |
| Last 14 days | Today − 14 days to today |
| Last 30 days | Today − 30 days to today |
| Current month | First day of current month to today |
| Previous month | Whole previous calendar month |
| Last 3 months | Today − 90 days to today |
| Last 6 months | Today − 180 days to today |
| Last 12 months | Today − 365 days to today |
| Current year | January 1 of current year to today |
Custom range
Section titled “Custom range”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.
Previous period
Section titled “Previous period”The previous period is always of equal length, ending immediately before the current range starts.
Examples:
| Current | Previous |
|---|---|
| Last 7 days | The 7 days before that (so 14 days ago to 7 days ago) |
| Last 30 days | The 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.
Exclude today
Section titled “Exclude today”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.
URL persistence
Section titled “URL persistence”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.
Tips & gotchas
Section titled “Tips & gotchas”Related
Section titled “Related”- Reports overview
- Cache warming — pre-compute heavy ranges
- Profiles — store date presets per profile