📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Enable experiments tab on selfhosted installations
Blue Mouse2ff5207a8f8a
diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.tsindex bc9641516..084752ed0 100644--- a/web/app/lib/constants/index.ts+++ b/web/app/lib/constants/index.ts@@ -561,6 +561,7 @@ const SELFHOSTED_PROJECT_TABS = {sessions: 'sessions',errors: 'errors',goals: 'goals',+ experiments: 'experiments',featureFlags: 'featureFlags',captcha: 'captcha',} as constdiff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsxindex 70eae0f1a..a9ef664b0 100644--- a/web/app/pages/Project/View/ViewProject.tsx+++ b/web/app/pages/Project/View/ViewProject.tsx@@ -758,6 +758,11 @@ const ViewProjectContent = () => {label: t('dashboard.featureFlags'),icon: ToggleRightIcon,},+ {+ id: PROJECT_TABS.experiments,+ label: t('dashboard.experiments'),+ icon: FlaskIcon,+ },{id: PROJECT_TABS.captcha,label: t('common.captcha'),@@ -775,17 +780,9 @@ const ViewProjectContent = () => {]: []- const experimentsTab = PROJECT_TABS.experiments- ? {- id: PROJECT_TABS.experiments,- label: t('dashboard.experiments'),- icon: FlaskIcon,- }- : null-const newTabs = (isSelfhosted- ? [...baseTabs, experimentsTab, ...adminTabs]+ ? [...baseTabs, ...adminTabs]: [...baseTabs,{@@ -793,7 +790,6 @@ const ViewProjectContent = () => {label: t('dashboard.askAi'),icon: SparkleIcon,},- experimentsTab,...adminTabs,]).filter((x) => !!x)