📈 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
fix: Gate brandKeywords behind the cloud-only settings path
Blue Mouse0df29b04732d
diff --git a/web/app/pages/Project/Settings/ProjectSettings.tsx b/web/app/pages/Project/Settings/ProjectSettings.tsxindex 11753be0e..3bbf83f73 100644--- a/web/app/pages/Project/Settings/ProjectSettings.tsx+++ b/web/app/pages/Project/Settings/ProjectSettings.tsx@@ -323,7 +323,9 @@ const ProjectSettings = () => {(initialProject.botsProtectionLevel as 'off' | 'basic') || 'basic',gscPropertyUri: initialProject.gscPropertyUri || null,websiteUrl: initialProject.websiteUrl || null,- brandKeywords: initialProject.brandKeywords?.join(', ') || '',+ ...(!isSelfhosted && {+ brandKeywords: initialProject.brandKeywords?.join(', ') || '',+ }),}))const [validated, setValidated] = useState(false)const [errors, setErrors] = useState<{@@ -704,7 +706,7 @@ const ProjectSettings = () => {formData.set('countryBlacklist', JSON.stringify(data.countryBlacklist))if (data.websiteUrl !== undefined)formData.set('websiteUrl', data.websiteUrl || '')- if (data.brandKeywords !== undefined)+ if (!isSelfhosted && data.brandKeywords !== undefined)formData.set('brandKeywords', data.brandKeywords || '')fetcher.submit(formData, { method: 'post' })diff --git a/web/app/pages/Project/Settings/tabs/General.tsx b/web/app/pages/Project/Settings/tabs/General.tsxindex eb3c3b22f..b4ca39707 100644--- a/web/app/pages/Project/Settings/tabs/General.tsx+++ b/web/app/pages/Project/Settings/tabs/General.tsx@@ -2,6 +2,7 @@ import React from 'react'import { useTranslation } from 'react-i18next'import Input from '~/ui/Input'+import { isSelfhosted } from '~/lib/constants'interface GeneralProps {form: {@@ -61,16 +62,18 @@ const General = ({onChange={handleInput}error={beenSubmitted ? errors.websiteUrl : null}/>- <Input- name='brandKeywords'- label={t('project.settings.brandKeywords')}- hint={t('project.settings.brandKeywordsHint')}- value={form.brandKeywords || ''}- placeholder={t('project.settings.brandKeywordsPlaceholder')}- className='mt-4'- onChange={handleInput}- error={null}- />+ {!isSelfhosted && (+ <Input+ name='brandKeywords'+ label={t('project.settings.brandKeywords')}+ hint={t('project.settings.brandKeywordsHint')}+ value={form.brandKeywords || ''}+ placeholder={t('project.settings.brandKeywordsPlaceholder')}+ className='mt-4'+ onChange={handleInput}+ error={null}+ />+ )}<Inputname='sharableLink'label={t('project.settings.sharableLink')}