Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added today/yesterday filters

Blue Mouse01614bf9bca4
diff --git a/public/locales/en.json b/public/locales/en.json
index 9054373c2..016a9468d 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -290,6 +290,8 @@
"unique": "Unique visitors",
"total": "Total page views",
"today": "Today",
+ "yesterday": "Yesterday",
+ "last24h": "Last 24 hours",
"lastXDays": "Last {{amount}} days",
"lastXWeeks": "Last {{amount}} weeks",
"lastXMonths": "Last {{amount}} months",
diff --git a/src/redux/constants/index.js b/src/redux/constants/index.js
index 9e3037758..3c4ec3e89 100644
--- a/src/redux/constants/index.js
+++ b/src/redux/constants/index.js
@@ -1,5 +1,15 @@
export const tbPeriodPairs = (t) => [{
label: t('project.today'),
+ period: 'today',
+ tbs: ['hour'],
+ access: 'free',
+}, {
+ label: t('project.yesterday'),
+ period: 'yesterday',
+ tbs: ['hour'],
+ access: 'free',
+}, {
+ label: t('project.last24h'),
period: '1d',
tbs: ['hour'],
access: 'free',