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!

remove AI

Blue Mouse5887c02719cf
diff --git a/backend/.env.example b/backend/.env.example
index ca77def2d..5f7cce1d5 100644
--- a/backend/.env.example
+++ b/backend/.env.example
@@ -89,9 +89,6 @@ IS_PRIMARY_NODE=true
# Generic
EMAIL_ACTION_ENCRYPTION_KEY=
-# AI
-AI_URL=http://192.168.0.1:8000
-
# Uptime monitoring
MONITOR_QUEUE_URL=amqp://localhost:5672
diff --git a/backend/apps/cloud/src/project/project.controller.ts b/backend/apps/cloud/src/project/project.controller.ts
index 8288323a8..919d6ed50 100644
--- a/backend/apps/cloud/src/project/project.controller.ts
+++ b/backend/apps/cloud/src/project/project.controller.ts
@@ -2198,27 +2198,6 @@ export class ProjectController {
await this.projectsViewsRepository.deleteProjectView(params.viewId)
}
- @ApiOperation({ summary: 'Get AI prediction' })
- @ApiBearerAuth()
- @HttpCode(HttpStatus.OK)
- @Get(':projectId/predict')
- @Auth([], true, true)
- async getAiPrediction(
- @Param() params: ProjectIdDto,
- @CurrentUserId() userId: string,
- @Headers() headers: { 'x-password'?: string },
- ) {
- const project = await this.projectService.getFullProject(params.projectId)
-
- if (!project) {
- throw new NotFoundException('Project not found.')
- }
-
- this.projectService.allowedToView(project, userId, headers['x-password'])
-
- return this.projectService.sendPredictAiRequest(params.projectId)
- }
-
@ApiOperation({ summary: 'Get monitors for a project' })
@ApiBearerAuth()
@ApiOkResponse({ type: MonitorEntity })
diff --git a/backend/apps/cloud/src/project/project.module.ts b/backend/apps/cloud/src/project/project.module.ts
index d0945a5f2..27d6aab3c 100644
--- a/backend/apps/cloud/src/project/project.module.ts
+++ b/backend/apps/cloud/src/project/project.module.ts
@@ -1,7 +1,5 @@
import { Module, forwardRef } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
-import { HttpModule } from '@nestjs/axios'
-import { ConfigModule, ConfigService } from '@nestjs/config'
import { ClientsModule, Transport } from '@nestjs/microservices'
import { BullModule } from '@nestjs/bull'
@@ -32,13 +30,6 @@ import { OrganisationModule } from '../organisation/organisation.module'
]),
forwardRef(() => UserModule),
forwardRef(() => OrganisationModule),
- HttpModule.registerAsync({
- imports: [ConfigModule],
- inject: [ConfigService],
- useFactory: (configService: ConfigService) => ({
- baseURL: configService.get('AI_URL'),
- }),
- }),
ClientsModule.register([
{
name: 'MONITOR_SERVICE',
diff --git a/backend/apps/cloud/src/project/project.service.ts b/backend/apps/cloud/src/project/project.service.ts
index 14b75f917..b48a7dd56 100644
--- a/backend/apps/cloud/src/project/project.service.ts
+++ b/backend/apps/cloud/src/project/project.service.ts
@@ -35,9 +35,6 @@ import _reduce from 'lodash/reduce'
import dayjs from 'dayjs'
import utc from 'dayjs/plugin/utc'
import { compareSync } from 'bcrypt'
-import { firstValueFrom } from 'rxjs'
-import { HttpService } from '@nestjs/axios'
-import { AxiosError } from 'axios'
import { InjectQueue } from '@nestjs/bull'
import { Queue } from 'bullmq'
@@ -86,7 +83,6 @@ import { ReportFrequency } from './enums'
import { nFormatter } from '../common/utils'
import { browserArgs } from '../og-image/og-image.service'
import { CreateProjectViewDto } from './dto/create-project-view.dto'
-import { AppLoggerService } from '../logger/logger.service'
import { CreateMonitorHttpRequestDTO } from './dto/create-monitor.dto'
import { MonitorEntity } from './entity/monitor.entity'
import { UpdateMonitorHttpRequestDTO } from './dto/update-monitor.dto'
@@ -329,8 +325,6 @@ export class ProjectService {
private readonly monitorRepository: Repository<MonitorEntity>,
private readonly actionTokens: ActionTokensService,
private readonly mailerService: MailerService,
- private readonly httpService: HttpService,
- private readonly logger: AppLoggerService,
private readonly userService: UserService,
@InjectQueue('monitor') private monitorQueue: Queue,
) {}
@@ -1692,27 +1686,6 @@ export class ProjectService {
)
}
- async sendPredictAiRequest(id: string) {
- try {
- const { data } = await firstValueFrom(
- this.httpService.get('/predict/', {
- params: { pid: id },
- }),
- )
- return data
- } catch (error) {
- if (error instanceof AxiosError && error.response?.status === 404) {
- throw new NotFoundException(
- 'Data not found. Prediction is not available for this timeframe.',
- )
- }
- this.logger.error(
- `Error receiving prediction from AI service: ${error.message}`,
- )
- return null
- }
- }
-
async findMonitorById(
id: number,
projectId: string,
diff --git a/backend/apps/cloud/src/task-manager/task-manager.module.ts b/backend/apps/cloud/src/task-manager/task-manager.module.ts
index 1d1c264a5..d99a41475 100644
--- a/backend/apps/cloud/src/task-manager/task-manager.module.ts
+++ b/backend/apps/cloud/src/task-manager/task-manager.module.ts
@@ -1,5 +1,3 @@
-import { HttpModule } from '@nestjs/axios'
-import { ConfigModule, ConfigService } from '@nestjs/config'
import { Module, forwardRef } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { AlertModule } from '../alert/alert.module'
@@ -25,13 +23,6 @@ import { SlackModule } from '../integrations/slack/slack.module'
ActionTokensModule,
AlertModule,
forwardRef(() => AnalyticsModule),
- HttpModule.registerAsync({
- imports: [ConfigModule],
- inject: [ConfigService],
- useFactory: (configService: ConfigService) => ({
- baseURL: configService.get('AI_URL'),
- }),
- }),
ExtensionsModule,
AppLoggerModule,
TypeOrmModule.forFeature([Message]),
diff --git a/backend/apps/cloud/src/task-manager/task-manager.service.ts b/backend/apps/cloud/src/task-manager/task-manager.service.ts
index 3b8807004..f0ae5f3b7 100644
--- a/backend/apps/cloud/src/task-manager/task-manager.service.ts
+++ b/backend/apps/cloud/src/task-manager/task-manager.service.ts
@@ -16,8 +16,6 @@ import _includes from 'lodash/includes'
import _toNumber from 'lodash/toNumber'
import _reduce from 'lodash/reduce'
import _filter from 'lodash/filter'
-import { HttpService } from '@nestjs/axios'
-import { firstValueFrom } from 'rxjs'
import { AlertService } from '../alert/alert.service'
import { QueryCondition, QueryMetric, QueryTime } from '../alert/dto/alert.dto'
@@ -299,7 +297,6 @@ export class TaskManagerService {
private readonly configService: ConfigService,
private readonly discordService: DiscordService,
private readonly slackService: SlackService,
- private readonly httpService: HttpService,
) {}
generateUnsubscribeUrl(
@@ -1439,27 +1436,4 @@ export class TaskManagerService {
},
)
}
-
- @Cron(CronExpression.EVERY_WEEK)
- async sendTrainingAiRequest() {
- try {
- await firstValueFrom(this.httpService.post('/run_training/', {}))
- } catch (error) {
- this.logger.error(
- `Error triggering training on the AI service: ${error.message}`,
- )
- }
- }
-
- // Every week at 01:00 AM
- @Cron('0 1 * * 0')
- async sendPredictAiRequest() {
- try {
- await firstValueFrom(this.httpService.post('/run_prediction/', {}))
- } catch (error) {
- this.logger.error(
- `Error triggering prediction from AI service: ${error.message}`,
- )
- }
- }
}
diff --git a/web/.env.example b/web/.env.example
index 7f25fbd79..0d9514962 100644
--- a/web/.env.example
+++ b/web/.env.example
@@ -1,7 +1,6 @@
API_URL=https://api.swetrix.com/
API_STAGING_URL=http://localhost:5005/
CDN_URL=https://cdn.swetrix.com/
-AIAPI_URL=https://aiapi.swetrix.com/
DISABLE_MARKETING_PAGES=
PADDLE_CLIENT_SIDE_TOKEN=
diff --git a/web/app/api/ai.ts b/web/app/api/ai.ts
deleted file mode 100644
index 150f9b427..000000000
--- a/web/app/api/ai.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/* eslint-disable implicit-arrow-linebreak */
-import axios from 'axios'
-import _isEmpty from 'lodash/isEmpty'
-import { AIAPI_URL } from '~/lib/constants'
-
-const api = axios.create({
- baseURL: AIAPI_URL,
-})
-
-/**
- * Returns the prediction for the given data.
- *
- * @param {*} chart The chart data, i.e. the `chart` key here -> https://docs.swetrix.com/statistics-api#get-v1log
- * @param {*} periodToForecast How many new entries should be added to the chart data array.
- * @param {*} frequency The frequency of the chart data, e.g. h | w | m
- * @returns The prediction for the given data.
- */
-export const getChartPrediction = (chart: any, periodToForecast: any, frequency: any) =>
- api
- .post('/', {
- ...chart,
- period_to_forecast: periodToForecast,
- frequency,
- })
- .then((response) => response.data)
- .catch((error) => {
- throw _isEmpty(error.response.data?.message) ? error.response.data : error.response.data.message
- })
diff --git a/web/app/api/index.ts b/web/app/api/index.ts
index 1b3a350e3..289fbb577 100644
--- a/web/app/api/index.ts
+++ b/web/app/api/index.ts
@@ -16,7 +16,6 @@ import { Project, Overall, LiveStats, Funnel } from '~/lib/models/Project'
import { Alerts } from '~/lib/models/Alerts'
import { Subscriber } from '~/lib/models/Subscriber'
import { Filter, ProjectViewCustomEvent } from '~/pages/Project/View/interfaces/traffic'
-import { AIResponse } from '~/pages/Project/View/interfaces/ai'
import { Monitor, MonitorOverall } from '~/lib/models/Uptime'
import { Role } from '~/lib/models/Organisation'
import { logout } from '~/utils/auth'
@@ -1600,18 +1599,6 @@ export const updateErrorStatus = (pid: string, status: 'resolved' | 'active', ei
throw _isEmpty(error.response.data?.message) ? error.response.data : error.response.data.message
})
-export const getDetailsPrediction = (pid: string, password: string | undefined = ''): Promise<AIResponse> =>
- api
- .get(`project/${pid}/predict`, {
- headers: {
- 'x-password': password,
- },
- })
- .then((response) => response.data)
- .catch((error) => {
- throw _isEmpty(error.response.data?.message) ? error.response.data : error.response.data.message
- })
-
export const setFeatureFlags = (featureFlags: FeatureFlag[]) =>
api
.put('/user/feature-flags', { featureFlags })
diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.ts
index 91a6c2594..1abd8fcd5 100644
--- a/web/app/lib/constants/index.ts
+++ b/web/app/lib/constants/index.ts
@@ -31,14 +31,6 @@ const getCustomLabel = (dates: Date[], t: Function, language?: string): string =
return t('project.custom')
}
-export const FORECAST_MAX_MAPPING: {
- [key: string]: number
-} = {
- hour: 72,
- day: 21,
- month: 12,
-}
-
export const KEY_FOR_ALL_TIME = 'all'
export const ALL_PERIODS = ['minute', 'hour', 'day', 'month', 'year']
@@ -380,11 +372,9 @@ export const isDisableMarketingPages =
(isBrowser ? window.REMIX_ENV?.DISABLE_MARKETING_PAGES : process.env.DISABLE_MARKETING_PAGES) === 'true'
const apiUrlUnprocessed = isSelfhosted || !isStaging ? PRODUCTION_API_URL : STAGING_API_URL
-const aiApiUrlUnprocessed = isBrowser ? window.REMIX_ENV?.AIAPI_URL : process.env.AIAPI_URL
const cdnUrlUnprocessed = isBrowser ? window.REMIX_ENV?.CDN_URL : process.env.CDN_URL
export const API_URL = _endsWith(apiUrlUnprocessed, '/') ? apiUrlUnprocessed : `${apiUrlUnprocessed}/`
-export const AIAPI_URL = _endsWith(aiApiUrlUnprocessed, '/') ? aiApiUrlUnprocessed : `${aiApiUrlUnprocessed}/`
export const CDN_URL = _endsWith(cdnUrlUnprocessed, '/') ? cdnUrlUnprocessed : `${cdnUrlUnprocessed}/`
const NODE_ENV = isBrowser ? window.REMIX_ENV?.NODE_ENV : process.env.NODE_ENV
diff --git a/web/app/modals/Forecast.tsx b/web/app/modals/Forecast.tsx
deleted file mode 100644
index 61c0b1f96..000000000
--- a/web/app/modals/Forecast.tsx
+++ /dev/null
@@ -1,165 +0,0 @@
-import React, { useMemo, useState } from 'react'
-import { useTranslation } from 'react-i18next'
-import _isNaN from 'lodash/isNaN'
-import _map from 'lodash/map'
-import cx from 'clsx'
-
-import Modal from '~/ui/Modal'
-import Input from '~/ui/Input'
-import { FORECAST_MAX_MAPPING } from '~/lib/constants'
-import _toString from 'lodash/toString'
-import { Bars3BottomRightIcon } from '@heroicons/react/24/outline'
-import { ChartNoAxesColumnIcon } from 'lucide-react'
-
-const DEFAULT_PERIOD = '3'
-
-interface ForecastProps {
- onClose: () => void
- onSubmit: (
- type: 'chart' | 'details',
- options?: {
- period: string
- },
- ) => void
- isOpened: boolean
- activeTB: string
- tb: string
-}
-
-const Forecast = ({ onClose, onSubmit, isOpened, activeTB, tb }: ForecastProps) => {
- const { t } = useTranslation('common')
- const [period, setPeriod] = useState(DEFAULT_PERIOD)
- const [error, setError] = useState<string | null>(null)
- const [activeTab, setActiveTab] = useState<'chart' | 'details'>('chart')
-
- const tabs = useMemo(() => {
- return [
- {
- id: 'chart' as const,
- label: t('modals.forecast.chart'),
- icon: ChartNoAxesColumnIcon,
- },
- {
- id: 'details' as const,
- label: t('modals.forecast.details'),
- icon: Bars3BottomRightIcon,
- },
- ]
- }, [t])
-
- const handleInput = (e: React.ChangeEvent<HTMLInputElement>) => {
- const { value } = e.target
-
- setPeriod(value)
- setError(null)
- }
-
- const _onSubmit = () => {
- if (activeTab === 'details') {
- return onSubmit(activeTab)
- }
-
- const processedPeriod = Number(period)
-
- if (_isNaN(processedPeriod)) {
- setError(t('apiNotifications.enterACorrectNumber'))
- return
- }
-
- if (processedPeriod <= 0) {
- setError(t('apiNotifications.numberCantBeNegative'))
- return
- }
-
- if (processedPeriod > FORECAST_MAX_MAPPING[tb]) {
- setError(
- t('apiNotifications.forecastNumberCantBeBigger', {
- max: FORECAST_MAX_MAPPING[tb],
- }),
- )
- return
- }
-
- onSubmit(activeTab, {
- period: _toString(processedPeriod),
- })
- }
-
- const _onClose = () => {
- setPeriod(DEFAULT_PERIOD)
- setError(null)
- onClose()
- }
-
- return (
- <Modal
- onClose={_onClose}
- onSubmit={_onSubmit}
- submitText={t('common.continue')}
- closeText={t('common.cancel')}
- message={
- <div>
- <div className='mb-4 flex space-x-4 overflow-x-auto' aria-label='Forecast type selector'>
- {_map(tabs, (tab) => {
- const isCurrent = tab.id === activeTab
-
- return (
- <div
- key={tab.id}
- onClick={() => {
- setActiveTab(tab.id)
- }}
- className={cx(
- 'text-md group inline-flex cursor-pointer items-center whitespace-nowrap border-b-2 px-1 py-2 font-bold',
- {
- 'border-slate-900 text-slate-900 dark:border-gray-50 dark:text-gray-50': isCurrent,
- 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-400 dark:hover:border-gray-300 dark:hover:text-gray-300':
- !isCurrent,
- },
- )}
- aria-current={isCurrent ? 'page' : undefined}
- >
- <tab.icon
- className={cx(
- isCurrent
- ? 'text-slate-900 dark:text-gray-50'
- : 'text-gray-500 group-hover:text-gray-500 dark:text-gray-400 dark:group-hover:text-gray-300',
- '-ml-0.5 mr-2 h-5 w-5',
- )}
- aria-hidden='true'
- strokeWidth={1.5}
- />
- <span>{tab.label}</span>
- </div>
- )
- })}
- </div>
-
- {activeTab === 'chart' && (
- <>
- {t('modals.forecast.desc')}
-
- <Input
- name='forecast-input'
- label={t('modals.forecast.input', {
- frequency: activeTB,
- })}
- value={period}
- placeholder={DEFAULT_PERIOD}
- className='mt-4'
- onChange={handleInput}
- error={error}
- />
- </>
- )}
-
- {activeTab === 'details' && t('modals.forecast.detailsDesc')}
- </div>
- }
- title={t('modals.forecast.title')}
- isOpened={isOpened}
- />
- )
-}
-
-export default Forecast
diff --git a/web/app/modals/ViewProjectHotkeys.tsx b/web/app/modals/ViewProjectHotkeys.tsx
index 79b715dfa..7108ba136 100644
--- a/web/app/modals/ViewProjectHotkeys.tsx
+++ b/web/app/modals/ViewProjectHotkeys.tsx
@@ -41,7 +41,6 @@ const getHotkeys = (t: TFunction) => ({
[t('common.settings')]: 'Shift + E',
},
[t('common.general')]: {
- [t('modals.forecast.title')]: 'Alt + F',
[t('project.search')]: 'Alt + S',
[t('project.barChart')]: 'Alt + B',
[t('project.lineChart')]: 'Alt + L',
diff --git a/web/app/pages/Project/View/ViewProject.helpers.tsx b/web/app/pages/Project/View/ViewProject.helpers.tsx
index 658a575e4..c3ccd6bfb 100644
--- a/web/app/pages/Project/View/ViewProject.helpers.tsx
+++ b/web/app/pages/Project/View/ViewProject.helpers.tsx
@@ -16,7 +16,6 @@ import _size from 'lodash/size'
import _round from 'lodash/round'
import _fill from 'lodash/fill'
import _reduce from 'lodash/reduce'
-import _last from 'lodash/last'
import _toNumber from 'lodash/toNumber'
import _toString from 'lodash/toString'
import _includes from 'lodash/includes'
@@ -62,32 +61,6 @@ const getSum = (arr: any) => {
return _reduce(arr, (acc, c) => acc + c, 0)
}
-const transformAIChartData = (data: { [key: string]: any }) => {
- const transformedData = {
- x: [],
- sdur: [],
- uniques: [],
- visits: [],
- }
-
- _forEach(data, (d) => {
- if (d.x) {
- transformedData.x = d.x
- }
- if (d.sdur) {
- transformedData.sdur = d.sdur
- }
- if (d.uniques) {
- transformedData.uniques = d.uniques
- }
- if (d.visits) {
- transformedData.visits = d.visits
- }
- })
-
- return transformedData
-}
-
const trendline = (data: any[]): string[] => {
const xData = _map(_fill(new Array(_size(data)), 0), (_, i) => i + 1)
const yData = data
@@ -481,9 +454,6 @@ const getSettings = (
},
applyRegions: boolean,
timeFormat: string,
- forecasedChartData: {
- [key: string]: string[]
- },
rotateXAxis: boolean,
chartType: string,
customEvents?: {
@@ -516,17 +486,6 @@ const getSettings = (
})
}
- if (!_isEmpty(forecasedChartData) && _isEmpty(compareChart)) {
- lines.push({
- value: _last(chart?.x) as string,
- text: 'Forecast',
- })
- modifiedChart.x = [...modifiedChart.x, ...forecasedChartData.x]
- modifiedChart.uniques = [...modifiedChart.uniques, ...forecasedChartData.uniques]
- modifiedChart.visits = [...modifiedChart.visits, ...forecasedChartData.visits]
- modifiedChart.sdur = [...modifiedChart.sdur, ...forecasedChartData.sdur]
- }
-
const columns = getColumns(modifiedChart, activeChartMetrics, compareChart)
if (applyRegions) {
@@ -1658,7 +1617,6 @@ export {
CHART_METRICS_MAPPING,
CHART_METRICS_MAPPING_PERF,
getSettingsPerf,
- transformAIChartData,
getSettingsFunnels,
getSettingsSession,
SHORTCUTS_TABS_MAP,
diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsx
index cf51c4ed8..4e983c8f3 100644
--- a/web/app/pages/Project/View/ViewProject.tsx
+++ b/web/app/pages/Project/View/ViewProject.tsx
@@ -29,8 +29,6 @@ import {
DownloadIcon,
SettingsIcon,
BanIcon,
- BotIcon,
- BotOffIcon,
} from 'lucide-react'
import cx from 'clsx'
import dayjs from 'dayjs'
@@ -38,8 +36,6 @@ import { useTranslation } from 'react-i18next'
import { useHotkeys } from 'react-hotkeys-hook'
import _keys from 'lodash/keys'
import _map from 'lodash/map'
-import _reduce from 'lodash/reduce'
-import _split from 'lodash/split'
import _includes from 'lodash/includes'
import _last from 'lodash/last'
import _isEmpty from 'lodash/isEmpty'
@@ -104,7 +100,6 @@ import Select from '~/ui/Select'
import FlatPicker from '~/ui/Flatpicker'
import LineChart from '~/ui/icons/LineChart'
import BarChart from '~/ui/icons/BarChart'
-import Forecast from '~/modals/Forecast'
import NewFunnel from '~/modals/NewFunnel'
import ViewProjectHotkeys from '~/modals/ViewProjectHotkeys'
import routes from '~/utils/routes'
@@ -135,9 +130,7 @@ import {
getPropertyMetadata,
getProjectViews,
deleteProjectView,
- getDetailsPrediction,
} from '~/api'
-import { getChartPrediction } from '~/api/ai'
import { Panel, Metadata } from './Panels'
import {
onCSVExportClick,
@@ -150,7 +143,6 @@ import {
CHART_METRICS_MAPPING,
CHART_METRICS_MAPPING_PERF,
getSettingsPerf,
- transformAIChartData,
getSettingsFunnels,
SHORTCUTS_TABS_LISTENERS,
SHORTCUTS_TABS_MAP,
@@ -209,7 +201,6 @@ import {
} from './utils/filters'
import AddAViewModal from './components/AddAViewModal'
import CustomMetrics from './components/CustomMetrics'
-import { AIProcessedResponse, AIResponse } from './interfaces/ai'
import { useRequiredParams } from '~/hooks/useRequiredParams'
import BrowserDropdown from './components/BrowserDropdown'
import OSDropdown from './components/OSDropdown'
@@ -334,7 +325,6 @@ const ViewProject = () => {
const [overall, setOverall] = useState<Partial<OverallObject>>({})
const [overallPerformance, setOverallPerformance] = useState<Partial<OverallPerformanceObject>>({})
const [isPanelsDataEmpty, setIsPanelsDataEmpty] = useState(false)
- const [isForecastOpened, setIsForecastOpened] = useState(false)
const [isNewFunnelOpened, setIsNewFunnelOpened] = useState(false)
const [isAddAViewOpened, setIsAddAViewOpened] = useState(false)
const [analyticsLoading, setAnalyticsLoading] = useState(true)
@@ -427,38 +417,6 @@ const ViewProject = () => {
const [projectViewDeleting, setProjectViewDeleting] = useState(false)
const [projectViewToUpdate, setProjectViewToUpdate] = useState<ProjectView | undefined>()
- // AI stuff
- const [forecasedChartData, setForecasedChartData] = useState({})
- const [isInAIDetailsMode, setIsInAIDetailsMode] = useState(false)
- const [aiDetails, setAiDetails] = useState<AIProcessedResponse | null>(null)
- const [activeAiDetail, setActiveAIDetail] = useState<keyof AIResponse | null>(null)
-
- const sortedAIKeys = useMemo(() => {
- if (!aiDetails) {
- return []
- }
-
- const hours = _map(aiDetails, (_, key) => parseInt(_split(key, '_')[1], 10)).sort((a, b) => a - b)
-
- return _map(hours, (hour) => {
- const key = `next_${hour}_hour` as keyof AIResponse
-
- if (hour === 1) {
- return {
- key,
- label: t('project.nextOneHour'),
- }
- }
-
- return {
- key,
- label: t('project.nextXHours', {
- x: hour,
- }),
- }
- })
- }, [aiDetails, t])
-
const mode = activeChartMetrics[CHART_METRICS_MAPPING.cumulativeMode] ? 'cumulative' : 'periodical'
const loadProjectViews = async (forced?: boolean) => {
@@ -1126,7 +1084,6 @@ const ViewProject = () => {
activeChartMetrics,
applyRegions,
timeFormat,
- forecasedChartData,
rotateXAxis,
chartType,
events,
@@ -1373,7 +1330,6 @@ const ViewProject = () => {
activeChartMetrics,
applyRegions,
timeFormat,
- forecasedChartData,
rotateXAxis,
chartType,
customEventsChart,
@@ -2215,111 +2171,13 @@ const ViewProject = () => {
}
}
- const onForecastOpen = () => {
- if (authLoading || dataLoading || isSelfhosted) {
- return
- }
-
- if (!_isEmpty(forecasedChartData)) {
- setForecasedChartData({})
- return
- }
-
- setIsForecastOpened(true)
- }
-
- const forecastChart = async (periodToForecast: string) => {
- try {
- const result = await getChartPrediction(chartData, periodToForecast, timeBucket)
- const transformed = transformAIChartData(result)
- setForecasedChartData(transformed)
- } catch (reason) {
- console.error(`[forecastChart] Error: ${reason}`)
- }
- }
-
- const forecastDetails = async () => {
- try {
- const data = await getDetailsPrediction(id, projectPassword)
-
- if (_isEmpty(data)) {
- throw new Error('getDetailsPrediction returned an empty object')
- }
-
- const result: AIProcessedResponse = {}
-
- const dataKeys = _keys(data) as (keyof AIResponse)[]
-
- for (let i = 0; i < dataKeys.length; ++i) {
- const dataKey = dataKeys[i]
-
- const processed = _reduce(
- data[dataKey],
- (prev, curr, key) => {
- return {
- ...prev,
- [key]: _map(_keys(curr), (key) => ({
- name: key,
- count: curr?.[key] || 0,
- })),
- }
- },
- {},
- )
-
- result[dataKey] = processed
- }
-
- setAiDetails(result)
- setActiveAIDetail(_keys(data)[0] as keyof AIResponse)
- setIsInAIDetailsMode(true)
- } catch (reason) {
- console.error(`[forecastDetails] Error: ${reason}`)
- toast.error(t('apiNotifications.noAIForecastAvailable'))
- }
- }
-
- const onForecastSubmit = async (type: 'chart' | 'details', options: any = {}) => {
- if (isSelfhosted) {
- return
- }
-
- setIsForecastOpened(false)
- setDataLoading(true)
-
- if (type === 'chart') {
- const { period: periodToForecast } = options
- await forecastChart(periodToForecast)
- }
-
- if (type === 'details') {
- await forecastDetails()
- }
-
- setDataLoading(false)
-
- trackCustom('TRAFFIC_FORECAST', {
- type,
- })
- }
-
useEffect(() => {
if (!areFiltersParsed || activeTab !== PROJECT_TABS.traffic || authLoading || !project) return
loadAnalytics()
// eslint-disable-next-line react-hooks/exhaustive-deps
- }, [
- forecasedChartData,
- mode,
- areFiltersParsed,
- activeTab,
- customMetrics,
- filters,
- authLoading,
- project,
- isActiveCompare,
- ])
+ }, [mode, areFiltersParsed, activeTab, customMetrics, filters, authLoading, project, isActiveCompare])
useEffect(() => {
if (!areFiltersParsed || activeTab !== PROJECT_TABS.performance || authLoading || !project) return
@@ -2427,7 +2285,6 @@ const ViewProject = () => {
activeChartMetrics,
applyRegions,
timeFormat,
- forecasedChartData,
rotateXAxis,
chartType,
customEventsChartData,
@@ -2755,7 +2612,6 @@ const ViewProject = () => {
timeBucket: tb,
dateRange: newPeriod.period === 'custom' ? dateRange : null,
})
- setForecasedChartData({})
}
const updateTimebucket = (newTimebucket: string) => {
@@ -2779,7 +2635,6 @@ const ViewProject = () => {
timeBucket: newTimebucket,
dateRange,
})
- setForecasedChartData({})
}
const onMeasureChange = (measure: string) => {
@@ -2857,8 +2712,6 @@ const ViewProject = () => {
'¬': () => setChartTypeOnClick(chartTypes.line),
S: () => setShowFiltersSearch(true),
ß: () => setShowFiltersSearch(true),
- F: onForecastOpen,
- ƒ: onForecastOpen,
r: refreshStats,
}
@@ -3012,34 +2865,6 @@ const ViewProject = () => {
</div>
)
- const AITabsSelector = () => (
- <div className='-mb-px flex space-x-4 overflow-x-auto' aria-label='Tabs'>
- {_map(sortedAIKeys, ({ key, label }) => {
- const isCurrent = activeAiDetail === key
-
- return (
- <div
- key={key}
- onClick={() => {
- setActiveAIDetail(key)
- }}
- className={cx(
- 'text-md group inline-flex cursor-pointer items-center whitespace-nowrap border-b-2 px-1 py-2 font-bold',
- {
- 'border-slate-900 text-slate-900 dark:border-gray-50 dark:text-gray-50': isCurrent,
- 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-400 dark:hover:border-gray-300 dark:hover:text-gray-300':
- !isCurrent,
- },
- )}
- aria-current={isCurrent}
- >
- <span>{label}</span>
- </div>
- )
- })}
- </div>
- )
-
if (authLoading || !project) {
return (
<>
@@ -3183,27 +3008,8 @@ const ViewProject = () => {
})}
ref={dashboardRef}
>
- {isInAIDetailsMode ? (
- <>
- <button
- onClick={() => {
- setIsInAIDetailsMode(false)
- setAiDetails(null)
- setActiveAIDetail(null)
- }}
- className='mx-auto mb-4 mt-2 flex items-center text-base font-normal text-gray-900 underline decoration-dashed hover:decoration-solid dark:text-gray-100 lg:mx-0 lg:mt-0'
- >
- <ChevronLeftIcon className='h-4 w-4' />
- {t('project.exitForecastingMode')}
- </button>
- <AITabsSelector />
- <span className='mt-6 text-sm'>{t('project.aiDetailsDesc')}</span>
- </>
- ) : (
- <TabsSelector />
- )}
- {!isInAIDetailsMode &&
- activeTab !== PROJECT_TABS.alerts &&
+ <TabsSelector />
+ {activeTab !== PROJECT_TABS.alerts &&
activeTab !== PROJECT_TABS.uptime &&
(activeTab !== PROJECT_TABS.sessions || !activePSID) &&
(activeFunnel || activeTab !== PROJECT_TABS.funnels) && (
@@ -3240,33 +3046,6 @@ const ViewProject = () => {
>
<RotateCw className='h-5 w-5 text-gray-700 dark:text-gray-50' />
</button>
- {!isSelfhosted && !isActiveCompare && id === 'STEzHcB1rALV' && (
- <div
- className={cx({
- hidden: activeTab !== PROJECT_TABS.traffic || _isEmpty(chartData),
- })}
- >
- <button
- type='button'
- title={t('modals.forecast.title')}
- onClick={onForecastOpen}
- disabled={!_isEmpty(filters)}
- className={cx(
- 'relative rounded-md bg-gray-50 p-2 text-sm font-medium hover:bg-white hover:shadow-sm focus:z-10 focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 dark:bg-slate-900 dark:hover:bg-slate-800 focus:dark:border-gray-200 focus:dark:ring-gray-200',
- {
- 'cursor-not-allowed opacity-50':
- authLoading || dataLoading || !_isEmpty(filters),
- },
- )}
- >
- {_isEmpty(forecasedChartData) ? (
- <BotIcon className='size-5 stroke-2 text-gray-700 dark:text-gray-50' />
- ) : (
- <BotOffIcon className='size-5 stroke-2 text-gray-700 dark:text-gray-50' />
- )}
- </button>
- </div>
- )}
<div
className={cx('border-gray-200 dark:border-gray-600', {
// @ts-expect-error
@@ -4239,7 +4018,7 @@ const ViewProject = () => {
)}
{activeTab === PROJECT_TABS.traffic && (
<div className={cx('pt-2', { hidden: isPanelsDataEmpty || analyticsLoading })}>
- {!isInAIDetailsMode && !_isEmpty(overall) && (
+ {!_isEmpty(overall) && (
<div className='mb-5 flex flex-wrap justify-center gap-5 lg:justify-start'>
<MetricCards
overall={overall}
@@ -4273,26 +4052,22 @@ const ViewProject = () => {
)}
<div
className={cx('h-80', {
- hidden: checkIfAllMetricsAreDisabled || isInAIDetailsMode,
+ hidden: checkIfAllMetricsAreDisabled,
})}
>
<div className='mt-5 h-80 md:mt-0 [&_svg]:!overflow-visible' id='dataChart' />
</div>
- {!isInAIDetailsMode && (
- <>
- <Filters
- onRemoveFilter={filterHandler}
- onChangeExclusive={onChangeExclusive}
- tnMapping={tnMapping}
- resetFilters={resetActiveTabFilters}
- />
- <CustomMetrics
- metrics={customMetrics}
- onRemoveMetric={(id) => onRemoveCustomMetric(id)}
- resetMetrics={resetCustomMetrics}
- />
- </>
- )}
+ <Filters
+ onRemoveFilter={filterHandler}
+ onChangeExclusive={onChangeExclusive}
+ tnMapping={tnMapping}
+ resetFilters={resetActiveTabFilters}
+ />
+ <CustomMetrics
+ metrics={customMetrics}
+ onRemoveMetric={(id) => onRemoveCustomMetric(id)}
+ resetMetrics={resetCustomMetrics}
+ />
{dataLoading && (
<div className='static mt-4 !bg-transparent' id='loader'>
<div className='loader-head dark:!bg-slate-800'>
@@ -4309,8 +4084,6 @@ const ViewProject = () => {
const panelIcon = panelIconMapping[type]
const customTabs = _filter(customPanelTabs, (tab) => tab.panelID === type)
- const dataSource = isInAIDetailsMode ? aiDetails?.[activeAiDetail!] || {} : panelsData.data
-
if (type === 'cc') {
const ccPanelName = tnMapping[countryActiveTab]
@@ -4331,7 +4104,7 @@ const ViewProject = () => {
id={countryActiveTab}
onFilter={filterHandler}
name={<CountryDropdown onSelect={setCountryActiveTab} title={ccPanelName} />}
- data={dataSource[countryActiveTab]}
+ data={panelsData.data[countryActiveTab]}
customTabs={customTabs}
rowMapper={rowMapper}
/>
@@ -4375,7 +4148,7 @@ const ViewProject = () => {
id={browserActiveTab}
onFilter={filterHandler}
name={<BrowserDropdown onSelect={setBrowserActiveTab} title={brPanelName} />}
- data={dataSource[browserActiveTab]}
+ data={panelsData.data[browserActiveTab]}
rowMapper={rowMapper}
/>
)
@@ -4425,7 +4198,7 @@ const ViewProject = () => {
id={osActiveTab}
onFilter={filterHandler}
name={<OSDropdown onSelect={setOsActiveTab} title={osPanelName} />}
- data={dataSource[osActiveTab]}
+ data={panelsData.data[osActiveTab]}
rowMapper={rowMapper}
/>
)
@@ -4439,7 +4212,7 @@ const ViewProject = () => {
id={type}
onFilter={filterHandler}
name={panelName}
- data={dataSource[type]}
+ data={panelsData.data[type]}
customTabs={customTabs}
rowMapper={(entry: { name: keyof typeof deviceIconMapping }) => {
const { name: entryName } = entry
@@ -4471,7 +4244,7 @@ const ViewProject = () => {
id={type}
onFilter={filterHandler}
name={panelName}
- data={dataSource[type]}
+ data={panelsData.data[type]}
customTabs={customTabs}
rowMapper={({ name: entryName }) => <RefRow rowName={entryName} />}
/>
@@ -4488,7 +4261,7 @@ const ViewProject = () => {
id={utmActiveTab}
onFilter={filterHandler}
name={<UTMDropdown onSelect={setUtmActiveTab} title={ccPanelName} />}
- data={dataSource[utmActiveTab]}
+ data={panelsData.data[utmActiveTab]}
customTabs={customTabs}
rowMapper={({ name: entryName }) => decodeURIComponent(entryName)}
/>
@@ -4527,7 +4300,7 @@ const ViewProject = () => {
<PageDropdown onSelect={setPageActiveTab} title={tnMapping[pageActiveTab]} />
)
}
- data={dataSource[pageActiveTab]}
+ data={panelsData.data[pageActiveTab]}
customTabs={customTabs}
/>
)
@@ -4541,7 +4314,7 @@ const ViewProject = () => {
id={type}
onFilter={filterHandler}
name={panelName}
- data={dataSource[type]}
+ data={panelsData.data[type]}
rowMapper={({ name: entryName }: { name: string }) =>
getLocaleDisplayName(entryName, language)
}
@@ -4557,12 +4330,12 @@ const ViewProject = () => {
id={type}
onFilter={filterHandler}
name={panelName}
- data={dataSource[type]}
+ data={panelsData.data[type]}
customTabs={customTabs}
/>
)
})}
- {!isInAIDetailsMode && !_isEmpty(panelsData.data) && (
+ {!_isEmpty(panelsData.data) && (
<Metadata
customs={panelsData.customs}
properties={panelsData.properties}
@@ -4778,13 +4551,6 @@ const ViewProject = () => {
)}
</div>
</div>
- <Forecast
- isOpened={isForecastOpened}
- onClose={() => setIsForecastOpened(false)}
- onSubmit={onForecastSubmit}
- activeTB={t(`project.${timeBucket}`)}
- tb={timeBucket}
- />
<ViewProjectHotkeys isOpened={isHotkeysHelpOpened} onClose={() => setIsHotkeysHelpOpened(false)} />
<NewFunnel
project={project}
diff --git a/web/app/pages/Project/View/interfaces/ai.tsx b/web/app/pages/Project/View/interfaces/ai.tsx
deleted file mode 100644
index 5b0745a6a..000000000
--- a/web/app/pages/Project/View/interfaces/ai.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { Params } from './traffic'
-
-interface AIProperty {
- [key: string]: number
-}
-
-interface AIResponseObject {
- dv?: AIProperty
- br?: AIProperty
- os?: AIProperty
- lc?: AIProperty
- cc?: AIProperty
- unique?: AIProperty
-}
-
-export interface AIResponse {
- next_1_hour?: AIResponseObject
- next_4_hour?: AIResponseObject
- next_8_hour?: AIResponseObject
- next_12_hour?: AIResponseObject
- next_24_hour?: AIResponseObject
- next_72_hour?: AIResponseObject
- next_168_hour?: AIResponseObject
-}
-
-export interface AIProcessedResponse {
- next_1_hour?: Params
- next_4_hour?: Params
- next_8_hour?: Params
- next_12_hour?: Params
- next_24_hour?: Params
- next_72_hour?: Params
- next_168_hour?: Params
-}
diff --git a/web/app/root.tsx b/web/app/root.tsx
index 878ecea08..4f2047264 100644
--- a/web/app/root.tsx
+++ b/web/app/root.tsx
@@ -182,7 +182,6 @@ export async function loader({ request }: LoaderFunctionArgs) {
const REMIX_ENV = {
NODE_ENV: process.env.NODE_ENV,
- AIAPI_URL: process.env.AIAPI_URL,
API_URL: process.env.API_URL,
API_STAGING_URL: process.env.API_STAGING_URL,
CDN_URL: process.env.CDN_URL,
diff --git a/web/public/locales/de.json b/web/public/locales/de.json
index de823c9ad..f38d8ff0f 100644
--- a/web/public/locales/de.json
+++ b/web/public/locales/de.json
@@ -31,7 +31,6 @@
"enterACorrectNumber": "Bitte geben Sie eine korrekte Zahl ein",
"numberCantBeNegative": "Die Zahl darf nicht negativ sein",
"numberCantBeBigger": "Die Zahl darf nicht größer als {{max}} sein",
- "forecastNumberCantBeBigger": "Die prognostizierte Zahl kann nicht größer sein als {{max}} für die gewählte Frequenz",
"invalidToken": "Ungültiger Token",
"transferRequestSent": "Transferanfrage gesendet",
"transferProjectReject": "Die Anfrage zum Projekttransfer wurde abgebrochen",
@@ -51,7 +50,6 @@
"enterViewName": "Bitte geben Sie einen Namen für die Ansicht an",
"inputCannotBeEmpty": "Dieses Eingabefeld darf nicht leer sein",
"viewDeleted": "Die Ansicht wurde gelöscht",
- "noAIForecastAvailable": "Die KI-Prognose ist für dieses Projekt noch nicht verfügbar",
"organisationCreated": "Organisation has been created",
"organisationCreateError": "Error occurred while creating the organisation",
"organisationDeleted": "Organisation has been deleted",
@@ -140,6 +138,10 @@
"dashboard-analytics-tabs": {
"title": "Dashboard Analytics Tabs",
"description": "Enables analytics tabs in the dashboard, providing different views of your data such as high / low traffic sites, abandoned projects, and more."
+ },
+ "dashboard-hostname-cards": {
+ "title": "Dashboard Hostname-based navigation",
+ "description": "Replaces traditional project-based navigation with hostname-based navigation - instead of seeing individual projects, you see the hostnames from the analytics data instead. This is useful if you have a lot of websites and don't want to create a project for each one, so you can create one project and collect all the data in it."
}
},
"performance": {
@@ -846,7 +848,6 @@
"metadata": "Metadaten",
"nextOneHour": "Nächste Stunde",
"nextXHours": "Nächste {{x}} Stunden",
- "exitForecastingMode": "Prognosemodus beenden",
"aiDetailsDesc": "Mit den Schaltflächen oben können Sie eine Schätzung des Verkehrsaufkommens anzeigen, das Sie in den nächsten X Stunden innerhalb einer Stunde erwarten können.",
"search": "Suche",
"views": "Ansichten",
@@ -941,6 +942,7 @@
},
"trendlineTotal": "Seitenansichten Trendlinie",
"noEvContent": "Für den angegebenen Zeitraum wurden keine Ereignisse erfasst. Bitte versuchen Sie einen anderen Zeitraum.",
+ "noEventsFiltersDesc": "No events have been recorded for the specified period or applied filters, please try a different period or change the filters applied.",
"noCaptchaEv": "Für den angegebenen Zeitraum wurden keine Ereignisse erfasst.\nWenn Sie CAPTCHA noch nicht eingerichtet haben, können Sie sich unsere <url>Docs</url> anschauen, um es einfach in Ihre App zu integrieren.",
"mapping": {
"cc": "Land",
@@ -1181,14 +1183,6 @@
"add": "Fügen Sie folgendes Snippet in den <bsect></bsect> Bereich Ihrer Website ein.",
"docs": "Lesen Sie unsere <pdocs>Dokumentation</pdocs> für Details und weitere Integrationsanleitungen."
},
- "forecast": {
- "title": "Traffic-Prognose",
- "desc": "Diese Art der Prognose gibt Ihnen auf dem Hauptdiagramm eine grobe Schätzung, wie viel Traffic Sie auf Ihrer Website erwarten können.",
- "detailsDesc": "Diese Art der Prognose bietet Ihnen eine flexiblere Vorhersage, die Ihnen zeigt, welche Art von Nutzern (aus welchem Land, Browser, Gebietsschema usw.) und wie viele davon Sie innerhalb des von Ihnen gewählten Zeitraums erwarten können.\n\nSie ist möglicherweise nicht für neu erstellte Websites oder Websites mit geringem Besucheraufkommen verfügbar, da wir unsere Prognosemodelle regelmäßig trainieren und solche Websites möglicherweise nicht im Trainingsdatensatz enthalten sind.\n\nWenn Sie mit dieser Art der Vorhersage fortfahren möchten, klicken Sie bitte auf „Weiter“.",
- "input": "Die Menge von '{{frequency}}' die Sie vorhersagen möchten",
- "chart": "Prognosediagramm",
- "details": "Detailvorhersage"
- },
"funnels": {
"addTitle": "Trichter hinzufügen",
"editTitle": "Trichter bearbeiten",
diff --git a/web/public/locales/el.json b/web/public/locales/el.json
index be3555ebb..f5f36c652 100644
--- a/web/public/locales/el.json
+++ b/web/public/locales/el.json
@@ -31,7 +31,6 @@
"enterACorrectNumber": "Please enter a correct number",
"numberCantBeNegative": "The number cannot be negative",
"numberCantBeBigger": "The number cannot be bigger than {{max}}",
- "forecastNumberCantBeBigger": "The forecast number cannot be bigger than {{max}} for the selected frequency",
"invalidToken": "Invalid token",
"transferRequestSent": "Transfer request sent",
"transferProjectReject": "The project transfer request has been cancelled",
@@ -51,7 +50,6 @@
"enterViewName": "Please enter a view name",
"inputCannotBeEmpty": "This input field must not be empty",
"viewDeleted": "View has been deleted",
- "noAIForecastAvailable": "AI forecast is not available for this project yet",
"organisationCreated": "Organisation has been created",
"organisationCreateError": "Error occurred while creating the organisation",
"organisationDeleted": "Organisation has been deleted",
@@ -140,6 +138,10 @@
"dashboard-analytics-tabs": {
"title": "Dashboard Analytics Tabs",
"description": "Enables analytics tabs in the dashboard, providing different views of your data such as high / low traffic sites, abandoned projects, and more."
+ },
+ "dashboard-hostname-cards": {
+ "title": "Dashboard Hostname-based navigation",
+ "description": "Replaces traditional project-based navigation with hostname-based navigation - instead of seeing individual projects, you see the hostnames from the analytics data instead. This is useful if you have a lot of websites and don't want to create a project for each one, so you can create one project and collect all the data in it."
}
},
"performance": {
@@ -846,7 +848,6 @@
"metadata": "Metadata",
"nextOneHour": "Next 1 hour",
"nextXHours": "Next {{x}} hours",
- "exitForecastingMode": "Exit forecasting mode",
"aiDetailsDesc": "The buttons above allow you to see an estimate of what kind of traffic you can expect within an hour in the next X hours.",
"search": "Search",
"views": "Views",
@@ -941,6 +942,7 @@
},
"trendlineTotal": "Pageviews trendline",
"noEvContent": "No events have been recorded for the specified period, please try a different period.",
+ "noEventsFiltersDesc": "No events have been recorded for the specified period or applied filters, please try a different period or change the filters applied.",
"noCaptchaEv": "No events have been captured for the specified timeframe.\nIf you haven't set up CAPTCHA yet, you can check out our <url>Docs</url> to easily integrate it into your app.",
"mapping": {
"cc": "Χώρα",
@@ -1181,14 +1183,6 @@
"add": "Add the following snippet into the <bsect></bsect> section of your site.",
"docs": "Check our <pdocs>our documentation</pdocs> for details and more integration guides."
},
- "forecast": {
- "title": "Traffic forecast",
- "desc": "This type of forecast gives you a rough estimate on the main graph of how much traffic you can expect to get to your website.",
- "detailsDesc": "This type of forecast provides you with a more flexible prediction, showing you what type of users (from what country, browser, locale, etc.) and how many of them you can expect to visit within your chosen timeframe.\n\nIt may not be available for newly created or low traffic sites, as we train our prediction models regularly and such sites may not be included in the training dataset.\n\nIf you wish to continue with this type of forecast, please press 'Continue'.",
- "input": "The quantity of '{{frequency}}' you want to forecast",
- "chart": "Chart forecast",
- "details": "Details forecast"
- },
"funnels": {
"addTitle": "Add funnel",
"editTitle": "Edit funnel",
diff --git a/web/public/locales/en.json b/web/public/locales/en.json
index 49e7db2cc..b81541675 100644
--- a/web/public/locales/en.json
+++ b/web/public/locales/en.json
@@ -31,7 +31,6 @@
"enterACorrectNumber": "Please enter a correct number",
"numberCantBeNegative": "The number cannot be negative",
"numberCantBeBigger": "The number cannot be bigger than {{max}}",
- "forecastNumberCantBeBigger": "The forecast number cannot be bigger than {{max}} for the selected frequency",
"invalidToken": "Invalid token",
"transferRequestSent": "Transfer request sent",
"transferProjectReject": "The project transfer request has been cancelled",
@@ -51,7 +50,6 @@
"enterViewName": "Please enter a view name",
"inputCannotBeEmpty": "This input field must not be empty",
"viewDeleted": "View has been deleted",
- "noAIForecastAvailable": "AI forecast is not available for this project yet",
"organisationCreated": "Organisation has been created",
"organisationCreateError": "Error occurred while creating the organisation",
"organisationDeleted": "Organisation has been deleted",
@@ -850,7 +848,6 @@
"metadata": "Metadata",
"nextOneHour": "Next 1 hour",
"nextXHours": "Next {{x}} hours",
- "exitForecastingMode": "Exit forecasting mode",
"aiDetailsDesc": "The buttons above allow you to see an estimate of what kind of traffic you can expect within an hour in the next X hours.",
"search": "Search",
"views": "Views",
@@ -1186,14 +1183,6 @@
"add": "Add the following snippet into the <bsect></bsect> section of your site.",
"docs": "Check our <pdocs>our documentation</pdocs> for details and more integration guides."
},
- "forecast": {
- "title": "Traffic forecast",
- "desc": "This type of forecast gives you a rough estimate on the main graph of how much traffic you can expect to get to your website.",
- "detailsDesc": "This type of forecast provides you with a more flexible prediction, showing you what type of users (from what country, browser, locale, etc.) and how many of them you can expect to visit within your chosen timeframe.\n\nIt may not be available for newly created or low traffic sites, as we train our prediction models regularly and such sites may not be included in the training dataset.\n\nIf you wish to continue with this type of forecast, please press 'Continue'.",
- "input": "The quantity of '{{frequency}}' you want to forecast",
- "chart": "Chart forecast",
- "details": "Details forecast"
- },
"funnels": {
"addTitle": "Add funnel",
"editTitle": "Edit funnel",
diff --git a/web/public/locales/es.json b/web/public/locales/es.json
index ddeef7e71..e447c60f9 100644
--- a/web/public/locales/es.json
+++ b/web/public/locales/es.json
@@ -31,7 +31,6 @@
"enterACorrectNumber": "Por favor, introduce un número correcto",
"numberCantBeNegative": "El número no puede ser negativo",
"numberCantBeBigger": "The number cannot be bigger than {{max}}",
- "forecastNumberCantBeBigger": "El número de previsión no puede ser mayor que {{max}} para la frecuencia seleccionada",
"invalidToken": "Token inválido",
"transferRequestSent": "Solicitud de transferencia enviada",
"transferProjectReject": "La solicitud de transferencia del proyecto ha sido cancelada",
@@ -51,7 +50,6 @@
"enterViewName": "Please enter a view name",
"inputCannotBeEmpty": "This input field must not be empty",
"viewDeleted": "View has been deleted",
- "noAIForecastAvailable": "AI forecast is not available for this project yet",
"organisationCreated": "Organisation has been created",
"organisationCreateError": "Error occurred while creating the organisation",
"organisationDeleted": "Organisation has been deleted",
@@ -140,6 +138,10 @@
"dashboard-analytics-tabs": {
"title": "Dashboard Analytics Tabs",
"description": "Enables analytics tabs in the dashboard, providing different views of your data such as high / low traffic sites, abandoned projects, and more."
+ },
+ "dashboard-hostname-cards": {
+ "title": "Dashboard Hostname-based navigation",
+ "description": "Replaces traditional project-based navigation with hostname-based navigation - instead of seeing individual projects, you see the hostnames from the analytics data instead. This is useful if you have a lot of websites and don't want to create a project for each one, so you can create one project and collect all the data in it."
}
},
"performance": {
@@ -846,7 +848,6 @@
"metadata": "Metadata",
"nextOneHour": "Next 1 hour",
"nextXHours": "Next {{x}} hours",
- "exitForecastingMode": "Exit forecasting mode",
"aiDetailsDesc": "The buttons above allow you to see an estimate of what kind of traffic you can expect within an hour in the next X hours.",
"search": "Search",
"views": "Views",
@@ -941,6 +942,7 @@
},
"trendlineTotal": "Pageviews trendline",
"noEvContent": "No events have been recorded for the specified period, please try a different period.",
+ "noEventsFiltersDesc": "No events have been recorded for the specified period or applied filters, please try a different period or change the filters applied.",
"noCaptchaEv": "No events have been captured for the specified timeframe.\nIf you haven't set up CAPTCHA yet, you can check out our <url>Docs</url> to easily integrate it into your app.",
"mapping": {
"cc": "Country",
@@ -1181,14 +1183,6 @@
"add": "Add the following snippet into the <bsect></bsect> section of your site.",
"docs": "Check our <pdocs>our documentation</pdocs> for details and more integration guides."
},
- "forecast": {
- "title": "Traffic forecast",
- "desc": "This type of forecast gives you a rough estimate on the main graph of how much traffic you can expect to get to your website.",
- "detailsDesc": "This type of forecast provides you with a more flexible prediction, showing you what type of users (from what country, browser, locale, etc.) and how many of them you can expect to visit within your chosen timeframe.\n\nIt may not be available for newly created or low traffic sites, as we train our prediction models regularly and such sites may not be included in the training dataset.\n\nIf you wish to continue with this type of forecast, please press 'Continue'.",
- "input": "The quantity of '{{frequency}}' you want to forecast",
- "chart": "Chart forecast",
- "details": "Details forecast"
- },
"funnels": {
"addTitle": "Add funnel",
"editTitle": "Edit funnel",
diff --git a/web/public/locales/fr.json b/web/public/locales/fr.json
index e69d26c19..4008d64a0 100644
--- a/web/public/locales/fr.json
+++ b/web/public/locales/fr.json
@@ -31,7 +31,6 @@
"enterACorrectNumber": "Veuillez entrer un numéro correct",
"numberCantBeNegative": "Le nombre ne peut pas être négatif",
"numberCantBeBigger": "Le nombre ne peut pas être plus grand que {{max}}",
- "forecastNumberCantBeBigger": "Le nombre prévu ne peut pas être supérieur à {{max}} pour la fréquence sélectionnée",
"invalidToken": "Jeton invalide",
"transferRequestSent": "Demande de transfert envoyée",
"transferProjectReject": "La demande de transfert de projet a été annulée",
@@ -51,7 +50,6 @@
"enterViewName": "Veuillez entrer un nom de vue",
"inputCannotBeEmpty": "Ce champ de saisie ne doit pas être vide",
"viewDeleted": "La vue a été supprimée",
- "noAIForecastAvailable": "Les prévisions IA ne sont pas encore disponibles pour ce projet",
"organisationCreated": "Organisation has been created",
"organisationCreateError": "Error occurred while creating the organisation",
"organisationDeleted": "Organisation has been deleted",
@@ -140,6 +138,10 @@
"dashboard-analytics-tabs": {
"title": "Dashboard Analytics Tabs",
"description": "Enables analytics tabs in the dashboard, providing different views of your data such as high / low traffic sites, abandoned projects, and more."
+ },
+ "dashboard-hostname-cards": {
+ "title": "Dashboard Hostname-based navigation",
+ "description": "Replaces traditional project-based navigation with hostname-based navigation - instead of seeing individual projects, you see the hostnames from the analytics data instead. This is useful if you have a lot of websites and don't want to create a project for each one, so you can create one project and collect all the data in it."
}
},
"performance": {
@@ -846,7 +848,6 @@
"metadata": "Metadata",
"nextOneHour": "Next 1 hour",
"nextXHours": "Next {{x}} hours",
- "exitForecastingMode": "Exit forecasting mode",
"aiDetailsDesc": "The buttons above allow you to see an estimate of what kind of traffic you can expect within an hour in the next X hours.",
"search": "Search",
"views": "Views",
@@ -941,6 +942,7 @@
},
"trendlineTotal": "Tendance des pages vues",
"noEvContent": "Aucun événement n'a été capturé pour la période spécifiée.\nSi vous n'avez pas encore suivi d'événements, vous pouvez consulter notre <url>Documentation</url> pour intégrer facilement le suivi dans votre application.",
+ "noEventsFiltersDesc": "No events have been recorded for the specified period or applied filters, please try a different period or change the filters applied.",
"noCaptchaEv": "Aucun événement n'a été capturé pour la période spécifiée.\nSi vous n'avez pas encore configuré CAPTCHA, vous pouvez consulter notre <url>Documentation</url> pour l'intégrer facilement dans votre application.",
"mapping": {
"cc": "Pays",
@@ -1181,14 +1183,6 @@
"add": "Add the following snippet into the <bsect></bsect> section of your site.",
"docs": "Check our <pdocs>our documentation</pdocs> for details and more integration guides."
},
- "forecast": {
- "title": "Prévision du trafic",
- "desc": "Ceci est une estimation approximative du trafic que vous pouvez attendre sur votre site web, basée sur les modèles d'IA de Swetrix.",
- "detailsDesc": "This type of forecast provides you with a more flexible prediction, showing you what type of users (from what country, browser, locale, etc.) and how many of them you can expect to visit within your chosen timeframe.\n\nIt may not be available for newly created or low traffic sites, as we train our prediction models regularly and such sites may not be included in the training dataset.\n\nIf you wish to continue with this type of forecast, please press 'Continue'.",
- "input": "La quantité de '{{frequency}}' que vous souhaitez prévoir",
- "chart": "Chart forecast",
- "details": "Details forecast"
- },
"funnels": {
"addTitle": "Add funnel",
"editTitle": "Edit funnel",
diff --git a/web/public/locales/pl.json b/web/public/locales/pl.json
index 3dd47a146..6112fc089 100644
--- a/web/public/locales/pl.json
+++ b/web/public/locales/pl.json
@@ -31,7 +31,6 @@
"enterACorrectNumber": "Wprowadź poprawną liczbę",
"numberCantBeNegative": "Liczba nie może być ujemna",
"numberCantBeBigger": "The number cannot be bigger than {{max}}",
- "forecastNumberCantBeBigger": "Liczba prognozy nie może być większa niż {{max}} dla wybranej częstotliwości",
"invalidToken": "Nieważny token",
"transferRequestSent": "Wysłany wniosek o przekazanie",
"transferProjectReject": "Wniosek o przeniesienie projektu został anulowany",
@@ -51,7 +50,6 @@
"enterViewName": "Please enter a view name",
"inputCannotBeEmpty": "This input field must not be empty",
"viewDeleted": "View has been deleted",
- "noAIForecastAvailable": "AI forecast is not available for this project yet",
"organisationCreated": "Organisation has been created",
"organisationCreateError": "Error occurred while creating the organisation",
"organisationDeleted": "Organisation has been deleted",
@@ -140,6 +138,10 @@
"dashboard-analytics-tabs": {
"title": "Dashboard Analytics Tabs",
"description": "Enables analytics tabs in the dashboard, providing different views of your data such as high / low traffic sites, abandoned projects, and more."
+ },
+ "dashboard-hostname-cards": {
+ "title": "Dashboard Hostname-based navigation",
+ "description": "Replaces traditional project-based navigation with hostname-based navigation - instead of seeing individual projects, you see the hostnames from the analytics data instead. This is useful if you have a lot of websites and don't want to create a project for each one, so you can create one project and collect all the data in it."
}
},
"performance": {
@@ -846,7 +848,6 @@
"metadata": "Metadata",
"nextOneHour": "Next 1 hour",
"nextXHours": "Next {{x}} hours",
- "exitForecastingMode": "Exit forecasting mode",
"aiDetailsDesc": "The buttons above allow you to see an estimate of what kind of traffic you can expect within an hour in the next X hours.",
"search": "Search",
"views": "Views",
@@ -941,6 +942,7 @@
},
"trendlineTotal": "Linia trendu odsłon witryny",
"noEvContent": "No events have been recorded for the specified period, please try a different period.",
+ "noEventsFiltersDesc": "No events have been recorded for the specified period or applied filters, please try a different period or change the filters applied.",
"noCaptchaEv": "Nie przechwycono żadnych zdarzeń dla określonych ram czasowych.\nJeśli jeszcze nie skonfigurowałeś CAPTCHA, możesz sprawdzić nasze <url>Docs</url>, aby łatwo zintegrować go z aplikacją.",
"mapping": {
"cc": "Kraj",
@@ -1181,14 +1183,6 @@
"add": "Add the following snippet into the <bsect></bsect> section of your site.",
"docs": "Check our <pdocs>our documentation</pdocs> for details and more integration guides."
},
- "forecast": {
- "title": "Prognoza ruchu",
- "desc": "This type of forecast gives you a rough estimate on the main graph of how much traffic you can expect to get to your website.",
- "detailsDesc": "This type of forecast provides you with a more flexible prediction, showing you what type of users (from what country, browser, locale, etc.) and how many of them you can expect to visit within your chosen timeframe.\n\nIt may not be available for newly created or low traffic sites, as we train our prediction models regularly and such sites may not be included in the training dataset.\n\nIf you wish to continue with this type of forecast, please press 'Continue'.",
- "input": "Liczba '{{frequency}}' którą chcesz prognozować",
- "chart": "Chart forecast",
- "details": "Details forecast"
- },
"funnels": {
"addTitle": "Add funnel",
"editTitle": "Edit funnel",
diff --git a/web/public/locales/sv.json b/web/public/locales/sv.json
index e4676381a..127855add 100644
--- a/web/public/locales/sv.json
+++ b/web/public/locales/sv.json
@@ -31,7 +31,6 @@
"enterACorrectNumber": "Please enter a correct number",
"numberCantBeNegative": "The number cannot be negative",
"numberCantBeBigger": "The number cannot be bigger than {{max}}",
- "forecastNumberCantBeBigger": "The forecast number cannot be bigger than {{max}} for the selected frequency",
"invalidToken": "Invalid token",
"transferRequestSent": "Transfer request sent",
"transferProjectReject": "The project transfer request has been cancelled",
@@ -51,7 +50,6 @@
"enterViewName": "Please enter a view name",
"inputCannotBeEmpty": "This input field must not be empty",
"viewDeleted": "View has been deleted",
- "noAIForecastAvailable": "AI forecast is not available for this project yet",
"organisationCreated": "Organisation has been created",
"organisationCreateError": "Error occurred while creating the organisation",
"organisationDeleted": "Organisation has been deleted",
@@ -140,6 +138,10 @@
"dashboard-analytics-tabs": {
"title": "Dashboard Analytics Tabs",
"description": "Enables analytics tabs in the dashboard, providing different views of your data such as high / low traffic sites, abandoned projects, and more."
+ },
+ "dashboard-hostname-cards": {
+ "title": "Dashboard Hostname-based navigation",
+ "description": "Replaces traditional project-based navigation with hostname-based navigation - instead of seeing individual projects, you see the hostnames from the analytics data instead. This is useful if you have a lot of websites and don't want to create a project for each one, so you can create one project and collect all the data in it."
}
},
"performance": {
@@ -846,7 +848,6 @@
"metadata": "Metadata",
"nextOneHour": "Next 1 hour",
"nextXHours": "Next {{x}} hours",
- "exitForecastingMode": "Exit forecasting mode",
"aiDetailsDesc": "The buttons above allow you to see an estimate of what kind of traffic you can expect within an hour in the next X hours.",
"search": "Search",
"views": "Views",
@@ -941,6 +942,7 @@
},
"trendlineTotal": "Pageviews trendline",
"noEvContent": "No events have been recorded for the specified period, please try a different period.",
+ "noEventsFiltersDesc": "No events have been recorded for the specified period or applied filters, please try a different period or change the filters applied.",
"noCaptchaEv": "No events have been captured for the specified timeframe.\nIf you haven't set up CAPTCHA yet, you can check out our <url>Docs</url> to easily integrate it into your app.",
"mapping": {
"cc": "Land",
@@ -1181,14 +1183,6 @@
"add": "Add the following snippet into the <bsect></bsect> section of your site.",
"docs": "Check our <pdocs>our documentation</pdocs> for details and more integration guides."
},
- "forecast": {
- "title": "Traffic forecast",
- "desc": "This type of forecast gives you a rough estimate on the main graph of how much traffic you can expect to get to your website.",
- "detailsDesc": "This type of forecast provides you with a more flexible prediction, showing you what type of users (from what country, browser, locale, etc.) and how many of them you can expect to visit within your chosen timeframe.\n\nIt may not be available for newly created or low traffic sites, as we train our prediction models regularly and such sites may not be included in the training dataset.\n\nIf you wish to continue with this type of forecast, please press 'Continue'.",
- "input": "The quantity of '{{frequency}}' you want to forecast",
- "chart": "Chart forecast",
- "details": "Details forecast"
- },
"funnels": {
"addTitle": "Add funnel",
"editTitle": "Edit funnel",
diff --git a/web/public/locales/uk.json b/web/public/locales/uk.json
index 518b49310..00cd9ef25 100644
--- a/web/public/locales/uk.json
+++ b/web/public/locales/uk.json
@@ -31,7 +31,6 @@
"enterACorrectNumber": "Будь ласка, введіть коректне число",
"numberCantBeNegative": "Число не може бути від'ємним",
"numberCantBeBigger": "The number cannot be bigger than {{max}}",
- "forecastNumberCantBeBigger": "Кількість прогнозу не може бути більшим {{max}} для обраної частоти",
"invalidToken": "Недійсний токен",
"transferRequestSent": "Запит на передачу проєкту надіслано",
"transferProjectReject": "Запит на передачу проєкту був скасований",
@@ -51,7 +50,6 @@
"enterViewName": "Please enter a view name",
"inputCannotBeEmpty": "This input field must not be empty",
"viewDeleted": "View has been deleted",
- "noAIForecastAvailable": "AI forecast is not available for this project yet",
"organisationCreated": "Organisation has been created",
"organisationCreateError": "Error occurred while creating the organisation",
"organisationDeleted": "Organisation has been deleted",
@@ -140,6 +138,10 @@
"dashboard-analytics-tabs": {
"title": "Dashboard Analytics Tabs",
"description": "Enables analytics tabs in the dashboard, providing different views of your data such as high / low traffic sites, abandoned projects, and more."
+ },
+ "dashboard-hostname-cards": {
+ "title": "Dashboard Hostname-based navigation",
+ "description": "Replaces traditional project-based navigation with hostname-based navigation - instead of seeing individual projects, you see the hostnames from the analytics data instead. This is useful if you have a lot of websites and don't want to create a project for each one, so you can create one project and collect all the data in it."
}
},
"performance": {
@@ -846,7 +848,6 @@
"metadata": "Метадані",
"nextOneHour": "Next 1 hour",
"nextXHours": "Next {{x}} hours",
- "exitForecastingMode": "Exit forecasting mode",
"aiDetailsDesc": "The buttons above allow you to see an estimate of what kind of traffic you can expect within an hour in the next X hours.",
"search": "Пошук",
"views": "Views",
@@ -941,6 +942,7 @@
},
"trendlineTotal": "Тренд кількості переглядів",
"noEvContent": "За вказаний період не було зафіксовано жодної події, будь ласка, спробуйте інший період.",
+ "noEventsFiltersDesc": "No events have been recorded for the specified period or applied filters, please try a different period or change the filters applied.",
"noCaptchaEv": "За вказаний період часу не було зафіксовано жодної події.\nЯкщо ви ще не інтегрували віджет CAPTCHA в ваш вебсайт, ви можете ознайомитися з <url>документацією</url>, щоб легко це зробити.",
"mapping": {
"cc": "Країна",
@@ -1181,14 +1183,6 @@
"add": "Додайте наступний фрагмент до розділу <bsect></bsect> вашого сайту.",
"docs": "Перегляньте нашу <pdocs>документацію</pdocs> для отримання детальної інформації та інших посібників з інтеграції."
},
- "forecast": {
- "title": "Прогноз трафіку",
- "desc": "This type of forecast gives you a rough estimate on the main graph of how much traffic you can expect to get to your website.",
- "detailsDesc": "This type of forecast provides you with a more flexible prediction, showing you what type of users (from what country, browser, locale, etc.) and how many of them you can expect to visit within your chosen timeframe.\n\nIt may not be available for newly created or low traffic sites, as we train our prediction models regularly and such sites may not be included in the training dataset.\n\nIf you wish to continue with this type of forecast, please press 'Continue'.",
- "input": "Кількість '{{frequency}}', яку ви хочете прогнозувати",
- "chart": "Chart forecast",
- "details": "Details forecast"
- },
"funnels": {
"addTitle": "Додати воронку",
"editTitle": "Редагувати воронку",